STM8L15x_DMA

所属分类:其他嵌入式/单片机内容
开发工具:C++
文件大小:2857KB
下载次数:79
上传日期:2013-06-05 11:14:29
上 传 者你四不四啥
说明:  STM8L超低功耗单片机的DMA应用代码和调试说明文档,非常的详细易读,
(DMA STM8L ultra-low power MCU and debug application code documentation, very detailed readable,)

文件列表:
STM8L15x_AN3117_FW_V1.0.0 (0, 2013-06-05)
使用STM8L15x的DMA控制器.pdf (440374, 2013-05-28)
STM8L15x_AN3117_FW_V1.0.0\_htmresc (0, 2010-01-22)
STM8L15x_AN3117_FW_V1.0.0\_htmresc\ar_s.gif (879, 2009-11-03)
STM8L15x_AN3117_FW_V1.0.0\_htmresc\bulb16.gif (857, 2009-11-03)
STM8L15x_AN3117_FW_V1.0.0\_htmresc\Footer.html (6472, 2009-11-03)
STM8L15x_AN3117_FW_V1.0.0\_htmresc\logo.bmp (6798, 2009-11-03)
STM8L15x_AN3117_FW_V1.0.0\_htmresc\rolling_enerywise_stm8l.gif (20881, 2009-12-04)
STM8L15x_AN3117_FW_V1.0.0\Libraries (0, 2010-01-22)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver (0, 2010-01-22)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc (0, 2010-01-22)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x.h (104476, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_adc.h (16968, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_beep.h (3560, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_clk.h (17108, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_comp.h (9945, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_dac.h (5972, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_dma.h (13419, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_exti.h (7862, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_flash.h (11932, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_gpio.h (6582, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_i2c.h (21672, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_irtim.h (2202, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_itc.h (7943, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_iwdg.h (4788, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_lcd.h (20464, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_pwr.h (4359, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_rst.h (3205, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_rtc.h (20788, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_spi.h (13681, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_syscfg.h (17631, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_tim1.h (35770, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_tim2.h (28118, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_tim3.h (28057, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_tim4.h (11256, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_usart.h (15112, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_wfe.h (6646, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x_wwdg.h (2581, 2009-12-10)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\src (0, 2010-01-22)
STM8L15x_AN3117_FW_V1.0.0\Libraries\STM8L15x_StdPeriph_Driver\src\stm8l15x_adc.c (19205, 2009-12-10)
... ...

/** @page DMA_WFE Use DMA to transfer during wfe low power mode. @par Firmware description This application provides a short description of how to use the DMA peripheral in circular mode to transfer data from USART1 peripheral to RAM memory. When the user sends a character using USART1, this character will be transferred using DMA to a specific RAM buffer and a DMA event is provided by USART1_RX. After configuring the DMA channel2 to transfer data (4 bytes) from USART1 data register to a RAM buffer, the MCU enters wfe mode. While waiting the “DMA Transfer complete” event, the MCU is in wfe mode. As soon as the “DMA Transfer complete” event occurs, the MCU returns to run mode, executes a specific action (activate/deactivate Leds) depending to the Data in the RAM buffer and returns to the wfe mode (by software). Since the DMA channel 2 is configured in circular mode, the same procedure will be repeated infinitely. Writing "led1" on HyperTerminal, will turn on LED1 and all the other leds will be turned off. Writing "led2" on HyperTerminal, will turn on LED2 and all the other leds will be turned off. Writing "led3" on HyperTerminal, will turn on LED3 and all the other leds will be turned off. Writing "led4" on HyperTerminal, will turn on LED4 and all the other leds will be turned off. Writing anything else than "led1", "led2", "led3" or "led4", will turn on all leds. @par Directory contents - include - stm8l15x_conf.h Library Configuration file - stm8l15x_it.h Interrupt routines declaration - main.h Main program header file - source - stm8_interrupt_vector.c Interrupt handlers - stm8l15x_it.c Interrupt routines source - main.c Main program - project\\STVD\\Cosmic - project.stw Contains the STVD workspace - project.stp Contains the STVD project - stm8_interrupt_vector.c Interrupt handlers - project\\STVD\\Raisonance - project.stw Contains the STVD workspace - project.stp Contains the STVD project - RIDE - project.rapp Contains the Ride workspace - project.rprj Contains the Ride project @par Hardware and Software environment - This application runs on STM8l15x devices. - This application note has been tested with STMicroelectronics STM8L1526-EVAL evaluation board and ST Visual Develop (STVD) toolchain (Cosmic and Raisonance compilers). - STM8L1526-EVAL Set-up - LCD glass daughter board (MB821) @note Make sure that the LCD glass daughter board (MB821) is mounted in IO position, for more details please refer to section "1.4 LCD glass Module" of the STM8L1526-EVAL User Manual. - LED1, LED2,LED3 and LED4. - Connect a null-modem female/female RS232 cable between the DB9 connector CN1 and PC serial port. @note Make sure that JP5 jumper is in RS232 position .. - HyperTerminal configuration: - Word Length = 8 Bits - One Stop Bit - No parity - BaudRate = 9600 baud - flow control: None @par How to use it with STVD ? - Open the STVD workspace - Rebuild all files: Project->Rebuild all - Load project image: Debug->Start/Stop Debug Session - Run program: Debug->Run (F5) @par How to use it with RIDE ? - Open the RIDE workspace - Rebuild all files: Project->Build project(Alt+F9) - Load project image: Debug->Start (Ctrl+D) - Run program: Debug->Run (Ctrl+F9) */ /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/

近期下载者

相关文件


收藏者