Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/USART/Polling/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_Polling USART Polling example | |
3 | |
4 @verbatim | |
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics ******************* | |
6 * @file USART/Polling/readme.txt | |
7 * @author MCD Application Team | |
8 * @version V3.5.0 | |
9 * @date 08-April-2011 | |
10 * @brief Description of the USART Polling 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 flags. | |
24 USARTy and USARTz can be USART1 and USART2 or USART2 and USART3, depending on | |
25 the STMicroelectronics EVAL board you are using. | |
26 | |
27 First, the USARTy sends TxBuffer to USARTz. The USARTz reads the received data and | |
28 store it into RxBuffer. | |
29 The received data is then compared with the send ones and the result of this | |
30 comparison is stored in the "TransferStatus" variable. | |
31 | |
32 USARTy and USARTz configured as follow: | |
33 - BaudRate = 230400 baud | |
34 - Word Length = 8 Bits | |
35 - One Stop Bit | |
36 - Even parity | |
37 - Hardware flow control disabled (RTS and CTS signals) | |
38 - Receive and transmit enabled | |
39 | |
40 | |
41 @par Directory contents | |
42 | |
43 - USART/Polling/platform_config.h Evaluation board specific configuration file | |
44 - USART/Polling/stm32f10x_conf.h Library Configuration file | |
45 - USART/Polling/stm32f10x_it.h Interrupt handlers header file | |
46 - USART/Polling/stm32f10x_it.c Interrupt handlers | |
47 - USART/Polling/main.c Main program | |
48 - USART/Polling/system_stm32f10x.c STM32F10x system source file | |
49 | |
50 @par Hardware and Software environment | |
51 | |
52 - This example runs on STM32F10x Connectivity line, High-Density, High-Density | |
53 Value line, Medium-Density, XL-Density, Medium-Density Value line, Low-Density | |
54 and Low-Density Value line Devices. | |
55 | |
56 - This example has been tested with STMicroelectronics STM32100E-EVAL (High-Density | |
57 Value line), STM32100B-EVAL (Medium-Density Value line), STM3210C-EVAL (Connectivity line), | |
58 STM3210E-EVAL (High-Density and XL-Density) and STM3210B-EVAL (Medium-Density) | |
59 evaluation boards and can be easily tailored to any other supported device | |
60 and development board. | |
61 To select the STMicroelectronics evaluation board used to run the example, | |
62 uncomment the corresponding line in USART/Polling/platform_config.h file | |
63 | |
64 - STM32100E-EVAL Set-up | |
65 - Connect a null-modem female/female RS232 cable between CN10 (USART1) and | |
66 CN5 (USART2). | |
67 @ note Make sure that jumper JP5 is not open. | |
68 | |
69 - STM32100B-EVAL Set-up | |
70 - Connect a null-modem female/female RS232 cable between CN10 (USART1) and | |
71 CN9 (USART2). | |
72 @note In this case USART2 Tx and Rx pins are remapped by software on PD.05 | |
73 and PD.06 respectively. | |
74 | |
75 - STM3210C-EVAL Set-up | |
76 - Connect USART2 Tx pin (PD.05) to USART3 Rx pin (PC.11) | |
77 - Connect USART2 Rx pin (PD.06) to USART3 Tx pin (PC.10) | |
78 @note In this case USART3 Tx and Rx pins are remapped by software. | |
79 Make sure that jumpers JP19 and JP18 are open. | |
80 | |
81 - STM3210E-EVAL Set-up | |
82 - Connect a null-modem female/female RS232 cable between CN12 (USART1) and | |
83 CN8 (USART2). | |
84 | |
85 - STM3210B-EVAL Set-up | |
86 - Connect a null-modem female/female RS232 cable between CN6 (USART1) and | |
87 CN5 (USART2). | |
88 - In this case USART2 Tx and Rx pins are remapped by software on PD.05 | |
89 and PD.06 respectively. | |
90 | |
91 | |
92 @par How to use it ? | |
93 | |
94 In order to make the program work, you must do the following : | |
95 - Copy all source files from this example folder to the template folder under | |
96 Project\STM32F10x_StdPeriph_Template | |
97 - Open your preferred toolchain | |
98 - Rebuild all files and load your image into target memory | |
99 - Run the example | |
100 | |
101 @note | |
102 - Low-density Value line devices are STM32F100xx microcontrollers where the | |
103 Flash memory density ranges between 16 and 32 Kbytes. | |
104 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
105 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. | |
106 - Medium-density Value line devices are STM32F100xx microcontrollers where | |
107 the Flash memory density ranges between 64 and 128 Kbytes. | |
108 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
109 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes. | |
110 - High-density Value line devices are STM32F100xx microcontrollers where | |
111 the Flash memory density ranges between 256 and 512 Kbytes. | |
112 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
113 the Flash memory density ranges between 256 and 512 Kbytes. | |
114 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
115 the Flash memory density ranges between 512 and 1024 Kbytes. | |
116 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. | |
117 | |
118 * <h3><center>© COPYRIGHT 2011 STMicroelectronics</center></h3> | |
119 */ |