Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/USART/DMA_Interrupt/readme.txt @ 0:c59513fd84fb
Initial commit of STM32 test code.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Mon, 03 Oct 2011 21:19:15 +1030 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c59513fd84fb |
---|---|
1 /** | |
2 @page USART_DMA_Interrupt USART DMA Interrupt example | |
3 | |
4 @verbatim | |
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics ******************* | |
6 * @file USART/DMA_Interrupt/readme.txt | |
7 * @author MCD Application Team | |
8 * @version V3.5.0 | |
9 * @date 08-April-2011 | |
10 * @brief Description of the USART DMA Interrupt example. | |
11 ****************************************************************************** | |
12 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS | |
13 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE | |
14 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY | |
15 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING | |
16 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE | |
17 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. | |
18 ****************************************************************************** | |
19 @endverbatim | |
20 | |
21 @par Example Description | |
22 | |
23 This example provides a basic communication between USARTy and USARTz using DMA | |
24 capability, flags and interrupts. USARTy and USARTz can be USART1 and USART2 or | |
25 USART2 and USART3, depending on the STMicroelectronics EVAL board you are using. | |
26 | |
27 First, the DMA transfers data from TxBuffer2 buffer to USARTz Transmit data register, | |
28 then this data is sent to USARTy. Data received by USARTy is transferred using | |
29 RXNE flag and stored in RxBuffer1 then compared with the sent ones and | |
30 the result of this comparison is stored in the "TransferStatus1" variable. | |
31 | |
32 In the same time, the DMA transfers data from TxBuffer1 buffer to USARTy Transmit | |
33 data register, then this data is sent to USARTz. Data received by USARTz is | |
34 transferred using Receive interrupt and stored in RxBuffer2 then compared with | |
35 the sent ones and the result of this comparison is stored in the "TransferStatus2" | |
36 variable. | |
37 | |
38 USARTy and USARTz configured as follow: | |
39 - BaudRate = 230400 baud | |
40 - Word Length = 8 Bits | |
41 - One Stop Bit | |
42 - No parity | |
43 - Hardware flow control disabled (RTS and CTS signals) | |
44 - Receive and transmit enabled | |
45 | |
46 @par Directory contents | |
47 | |
48 - USART/DMA_Interrupt/platform_config.h Evaluation board specific configuration file | |
49 - USART/DMA_Interrupt/stm32f10x_conf.h Library Configuration file | |
50 - USART/DMA_Interrupt/stm32f10x_it.h Interrupt handlers header file | |
51 - USART/DMA_Interrupt/stm32f10x_it.c Interrupt handlers | |
52 - USART/DMA_Interrupt/main.c Main program | |
53 - USART/DMA_Interrupt/system_stm32f10x.c STM32F10x system source file | |
54 | |
55 @par Hardware and Software environment | |
56 | |
57 - This example runs on STM32F10x Connectivity line, High-Density, High-Density | |
58 Value line, Medium-Density, XL-Density, Medium-Density Value line, Low-Density | |
59 and Low-Density Value line Devices. | |
60 | |
61 - This example has been tested with STMicroelectronics STM32100E-EVAL (High-Density | |
62 Value line), STM32100B-EVAL (Medium-Density Value line), STM3210C-EVAL (Connectivity line), | |
63 STM3210E-EVAL (High-Density and XL-Density) and STM3210B-EVAL (Medium-Density) | |
64 evaluation boards and can be easily tailored to any other supported device | |
65 and development board. | |
66 To select the STMicroelectronics evaluation board used to run the example, | |
67 uncomment the corresponding line in USART/DMA_Interrupt/platform_config.h file | |
68 | |
69 - STM32100E-EVAL Set-up | |
70 - Connect a null-modem female/female RS232 cable between CN10 (USART1) and | |
71 CN5 (USART2). | |
72 @note Make sure that jumper JP5 is not open. | |
73 | |
74 - STM32100B-EVAL Set-up | |
75 - Connect a null-modem female/female RS232 cable between CN10 (USART1) and | |
76 CN9 (USART2). | |
77 @note In this case USART2 Tx and Rx pins are remapped by software on PD.05 | |
78 and PD.06 respectively. | |
79 | |
80 - STM3210C-EVAL Set-up | |
81 - Connect USART2 Tx pin (PD.05) to USART3 Rx pin (PC.11) | |
82 - Connect USART2 Rx pin (PD.06) to USART3 Tx pin (PC.10) | |
83 @note In this case USART3 Tx and Rx pins are remapped by software. | |
84 Make sure that jumpers JP19 and JP18 are open. | |
85 | |
86 - STM3210E-EVAL Set-up | |
87 - Connect a null-modem female/female RS232 cable between CN12 (USART1) and | |
88 CN8 (USART2). | |
89 | |
90 - STM3210B-EVAL Set-up | |
91 - Connect a null-modem female/female RS232 cable between CN6 (USART1) and | |
92 CN5 (USART2). | |
93 - In this case USART2 Tx and Rx pins are remapped by software on PD.05 | |
94 and PD.06 respectively. | |
95 | |
96 | |
97 @par How to use it ? | |
98 | |
99 In order to make the program work, you must do the following : | |
100 - Copy all source files from this example folder to the template folder under | |
101 Project\STM32F10x_StdPeriph_Template | |
102 - Open your preferred toolchain | |
103 - Rebuild all files and load your image into target memory | |
104 - Run the example | |
105 | |
106 @note | |
107 - Low-density Value line devices are STM32F100xx microcontrollers where the | |
108 Flash memory density ranges between 16 and 32 Kbytes. | |
109 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
110 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. | |
111 - Medium-density Value line devices are STM32F100xx microcontrollers where | |
112 the Flash memory density ranges between 64 and 128 Kbytes. | |
113 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
114 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes. | |
115 - High-density Value line devices are STM32F100xx microcontrollers where | |
116 the Flash memory density ranges between 256 and 512 Kbytes. | |
117 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
118 the Flash memory density ranges between 256 and 512 Kbytes. | |
119 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
120 the Flash memory density ranges between 512 and 1024 Kbytes. | |
121 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. | |
122 | |
123 * <h3><center>© COPYRIGHT 2011 STMicroelectronics</center></h3> | |
124 */ |