STM32_DMA_FIFO_an3109

所属分类:单片机开发
开发工具:Visual C++
文件大小:1224KB
下载次数:64
上传日期:2011-08-12 10:43:31
上 传 者2896402
说明:  st company micro processor stm32f DMA FIFO communication.

文件列表:
Libraries (0, 2009-12-17)
Libraries\CMSIS (0, 2009-12-17)
Libraries\CMSIS\Core (0, 2009-12-17)
Libraries\CMSIS\Core\CM3 (0, 2009-12-17)
Libraries\CMSIS\Core\CM3\core_cm3.c (17206, 2009-12-17)
Libraries\CMSIS\Core\CM3\core_cm3.h (46533, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup (0, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\arm (0, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_cl.s (15600, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_hd.s (15872, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_ld.s (12164, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_md.s (12564, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\gcc (0, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_cl.s (12917, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.s (13560, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_ld.s (9830, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_md.s (10340, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\iar (0, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_cl.s (16309, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_hd.s (16709, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_ld.s (12333, 2009-12-17)
Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_md.s (12594, 2009-12-17)
Libraries\CMSIS\Core\CM3\stm32f10x.h (593385, 2009-12-17)
Libraries\CMSIS\Core\CM3\system_stm32f10x.c (30622, 2009-12-17)
Libraries\CMSIS\Core\CM3\system_stm32f10x.h (2404, 2009-12-17)
Libraries\CMSIS\Core\Documentation (0, 2009-12-17)
Libraries\CMSIS\Core\Documentation\CMSIS_Core.htm (50779, 2009-12-17)
Libraries\CMSIS\License.doc (39936, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver (0, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc (0, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc\misc.h (8893, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_adc.h (21441, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_bkp.h (7466, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_can.h (20503, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_crc.h (2073, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dac.h (13775, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dbgmcu.h (3134, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dma.h (20573, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_exti.h (6682, 2009-12-17)
Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_flash.h (19528, 2009-12-17)
... ...

/** @page USARTFIFO AN3109 USART_FIFO Readme file @verbatim ******************** (C) COPYRIGHT 2009 STMicroelectronics ******************* * @file USART_FIFO/readme.txt * @author MCD Application Team * @version V1.0.0 * @date 12/15/2009 * @brief Description of the FIFO emulation implementation for the USART. ****************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. ****************************************************************************** @endverbatim @par Example Description This example provides a circular FIFO software implementation using DMA for USART peripheral. In this example, data are transmitted from USART_Tx into USART_Rx. USART_Tx can be USART1 or USART3 depending on the STMicroelectronics EVAL board you are using. The USART_Rx is the USART2 receiving data using DMA with receive interrupt is enabled also. DMA1 Channel6 is configured to transfer data from the TxBuffer1 to the USART_Tx_DR register for transmission to USART_Rx. DMA1 Channel6 is configured to transfer data from USART2_DR to the RxBuffer2 (this buffer emulates the FIFO buffer). The incoming data are stored temporarily in the FIFO buffer, while the receive interrupts are serviced. Inside the receive interrupt routine, the data are retrieved from the FIFO and processed when it should. USART_Tx and USART_Rx are configured as follow: - BaudRate = 460800 baud - Word Length = 8 Bits - One Stop Bit - No parity - Hardware flow control disabled (RTS and CTS signals) - Receive and transmit enabled @par Directory contents - USART_FIFO/inc/stm32f10x_conf.h Library Configuration file - USART_FIFO/inc/platform_config.h Evaluation board specific configuration file - USART_FIFO/inc/stm32f10x_it.h Interrupt handlers header file - USART_FIFO/src/stm32f10x_it.c Interrupt handlers - USART_FIFO/src/main.c Main program @par Hardware and Software environment - This example runs on STM32F10x Connectivity line, High-Density, Medium-Density and Low-Density Devices. - This example has been tested with STMicroelectronics STM3210C-EVAL (STM32F10x Connectivity line), STM3210E-EVAL (STM32F10x High-Density) and STM3210B-EVAL (STM32F10x Medium-Density) evaluation boards and can be easily tailored to any other supported device and development board. - STM3210C-EVAL Set-up - Connect USART3 Tx pin (PC.10) to USART2 Rx pin (PD.06) @note In this case USART3 Tx and USART2 Rx pins are remapped by software on PC.10 and PD.06 respectively. Make sure that jumper JP19 and JP18 are open. - STM3210E-EVAL Set-up - Connect USART1 Tx pin (PA.9) to USART2 Rx pin (PA.03) - STM3210B-EVAL Set-up - Connect USART1 Tx pin (PA.9) to USART2 Rx pin (PD.06) - Note: in this case USART2 Rx pin is remapped by software on PD.06. @par How to use it ? - RVMDK (v4.00) - Open the USART_FIFO.uvopt project - In the build toolbar select the project config: - STM3210C-EVAL: to configure the project for STM32 Connectivity line devices - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - Rebuild all files: Project->Rebuild all target files - Load project image: Debug->Start/Stop Debug Session - Run program: Debug->Run (F5) - EWARMv5 (v5.40) - Open the USART_FIFO.eww workspace. - In the workspace toolbar select the project config: - STM3210C-EVAL: to configure the project for STM32 Connectivity line devices - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - Rebuild all files: Project->Rebuild all - Load project image: Project->Debug - Run program: Debug->Go(F5) - RIDE (RIDE7) - Open the USART_FIFO.rprj project. - In the configuration toolbar(Project->properties) select the project config: - STM3210C-EVAL: to configure the project for STM32 Connectivity line devices - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - Rebuild all files: Project->build project - Load project image: Debug->start(ctrl+D) - Run program: Debug->Run(ctrl+F9) - HiTOP (v5.31) - Open the HiTOP toolchain. - Browse to open the USART_FIFO.htp - A "Download application" window is displayed, click "cancel". - Rebuild all files: Project->Rebuild all - Load project image : Click "ok" in the "Download application" window. - Run the "RESET_GO_MAIN" script to set the PC at the "main" - Run program: Debug->Go(F5). @note - Low-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. - Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 32 and 128 Kbytes. - High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. *

© COPYRIGHT 2009 STMicroelectronics

*/

近期下载者

相关文件


收藏者