comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/USART/MultiProcessor/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_MultiProcessor USART Multi Processor example
3
4 @verbatim
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics *******************
6 * @file USART/MultiProcessor/readme.txt
7 * @author MCD Application Team
8 * @version V3.5.0
9 * @date 08-April-2011
10 * @brief Description of the USART Multi Processor 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 description of how to use the USART in multi-processor mode.
24 USARTy and USARTz can be USART1 and USART2 or USART2 and USART3 respectively,
25 depending on the STMicroelectronics EVAL board you are using.
26
27 First, the USARTy and USARTz address are set to 0x1 and 0x2. The USARTy send
28 continuously the character 0x33 to the USARTz. The USARTz toggle LED1, LED2, LED3
29 and LED4 pins while receiving 0x33.
30
31 When a falling edge is applied on BUTTON_KEY EXTI line, an interrupt is generated
32 and in the EXTI9_5_IRQHandler routine, the USARTz is entered in mute mode and still
33 in this mode (no LED toggling) until a rising edge is applied on BUTTON_WAKEUP
34 EXTI Line 0.
35 In this interrupt routine the USARTy send the character of address mark (0x102)
36 to wakeup USARTz. The LED restart toggling.
37
38 USARTy and USARTz configured as follow:
39 - BaudRate = 9600 baud
40 - Word Length = 9 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/MultiProcessor/platform_config.h Evaluation board specific configuration file
49 - USART/MultiProcessor/stm32f10x_conf.h Library Configuration file
50 - USART/MultiProcessor/stm32f10x_it.h Interrupt handlers header file
51 - USART/MultiProcessor/stm32f10x_it.c Interrupt handlers
52 - USART/MultiProcessor/main.c Main program
53 - USART/MultiProcessor/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/MultiProcessor/platform_config.h or stm32_eval.h file.
68
69 - STM32100E-EVAL Set-up
70 - Connect a null-modem female/female RS232 cable between CN5 and CN10.
71 - Use Key push-button connected to pin PG.08 (EXTI Line8)
72 - Use Wakeup push-button connected to pin PA.00 (EXTI Line0)
73 - Use LED1, LED2, LED3 and LED4 leds connected respectively to PF.06, PF.07,
74 PF.08 and PF.09 pins
75 @note Make sure that jumper JP5 is not open.
76 Make sure that jumper JP4 is in position 1<-->2.
77
78 - STM32100B-EVAL Set-up
79 - Connect a null-modem female/female RS232 cable between CN9 and CN10.
80 @note In this case USART2 Tx and Rx pins are remapped by software on
81 PD.05 and PD.06 respectively.
82 - Use Key push-button connected to pin PB.09 (EXTI Line9)
83 - Use Wakeup push-button connected to pin PA.00 (EXTI Line0)
84 - Use LED1, LED2, LED3 and LED4 leds connected respectively to PC.06, PC.07,
85 PC.08 and PC.09 pins
86
87 - STM3210C-EVAL Set-up
88 - Connect USART2 Tx pin (PD.05) to USART3 Rx pin (PC.11)
89 - Connect USART2 Rx pin (PD.06) to USART3 Tx pin (PC.10)
90 - Use Key push-button connected to pin PB.09 (EXTI Line9)
91 - Use Wakeup push-button connected to pin PA.00 (EXTI Line0)
92 - Use LED1, LED2, LED3 and LED4 connected respectively to PD.07, PD.13, PF.03
93 and PD.04 pins
94 @note In this case USART3 Tx and Rx pins are remapped by software.
95 Make sure that jumpers JP19 and JP18 are open.
96 Make sure that the Jumper 14 (JP14) is in position 2<-->3.
97
98 - STM3210E-EVAL Set-up
99 - Connect a null-modem female/female RS232 cable between CN12 and CN8.
100 - Use Key push-button connected to pin PG.08 (EXTI Line8)
101 - Use Wakeup push-button connected to pin PA.00 (EXTI Line0)
102 - Use LED1, LED2, LED3 and LED4 leds connected respectively to PF.06, PF0.7, PF.08
103 and PF.09 pins
104 @note Make sure that the Jumper 4 (JP4) is in position 1<-->2.
105
106 - STM3210B-EVAL Set-up
107 - Connect a null-modem female/female RS232 cable between CN5 and CN6.
108 @note In this case USART2 Tx and Rx pins are remapped by software on
109 PD.05 and PD.06 respectively.
110 - Use Key push-button connected to pin PB.09 (EXTI Line9)
111 - Use Wakeup push-button connected to pin PA.00 (EXTI Line0)
112 - Use LED1, LED2, LED3 and LED4 leds connected respectively to PC.06, PC.07, PC.08
113 and PC.09 pins
114
115 @par How to use it ?
116
117 In order to make the program work, you must do the following :
118 - Copy all source files from this example folder to the template folder under
119 Project\STM32F10x_StdPeriph_Template
120 - Open your preferred toolchain
121 - Rebuild all files and load your image into target memory
122 - Run the example
123
124 @note
125 - Low-density Value line devices are STM32F100xx microcontrollers where the
126 Flash memory density ranges between 16 and 32 Kbytes.
127 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
128 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
129 - Medium-density Value line devices are STM32F100xx microcontrollers where
130 the Flash memory density ranges between 64 and 128 Kbytes.
131 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
132 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
133 - High-density Value line devices are STM32F100xx microcontrollers where
134 the Flash memory density ranges between 256 and 512 Kbytes.
135 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where
136 the Flash memory density ranges between 256 and 512 Kbytes.
137 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where
138 the Flash memory density ranges between 512 and 1024 Kbytes.
139 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
140
141 * <h3><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h3>
142 */