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