Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/EXTI/EXTI_Config/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 EXTI_Config EXTI configuration example | |
3 | |
4 @verbatim | |
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics ******************* | |
6 * @file EXTI/EXTI_Config/readme.txt | |
7 * @author MCD Application Team | |
8 * @version V3.5.0 | |
9 * @date 08-April-2011 | |
10 * @brief Description of the EXTI configuration 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 shows how to configure external interrupt lines. | |
24 In this example, 2 EXTI lines (EXTI0 and EXTI8 or EXTI9) are configured | |
25 to generate an interrupt on each rising or falling edge. In the interrupt routine | |
26 a led connected to a specific GPIO pin is toggled. | |
27 | |
28 In this example: | |
29 - EXTI0 is mapped to PA.00 | |
30 - EXTI8 is mapped to PG.08 | |
31 - EXTI9 is mapped to PB.09 | |
32 | |
33 After EXTI configuration, a software interrupt is generated on the EXTI0 toggles LED1. | |
34 After that, | |
35 when rising edge is detected on EXTI0, LED1 toggles | |
36 when falling edge is detected on EXTI8, LED2 toggles | |
37 when falling edge is detected on EXTI9, LED2 toggles | |
38 | |
39 | |
40 If any STM3210XX-EVAL is used, | |
41 when Wakeup push-button is pressed, LED1 toggles | |
42 when Key push-button is pressed, LED2 toggles | |
43 | |
44 In this example, EXTI0_Config() function can be substituted by | |
45 STM_EVAL_PBInit(Button_WAKEUP, Mode_EXTI) and EXTI9_5_Config() by | |
46 STM_EVAL_PBInit(Button_KEY, Mode_EXTI) provided in the STM3210XX-EVAL driver. | |
47 | |
48 | |
49 @par Directory contents | |
50 | |
51 - EXTI/EXTI_Config/stm32f10x_conf.h Library Configuration file | |
52 - EXTI/EXTI_Config/stm32f10x_it.h Interrupt handlers header file | |
53 - EXTI/EXTI_Config/stm32f10x_it.c Interrupt handlers | |
54 - EXTI/EXTI_Config/main.c Main program | |
55 - EXTI/EXTI_Config/system_stm32f10x.c STM32F10x system source file | |
56 | |
57 @par Hardware and Software environment | |
58 | |
59 - This example runs on STM32F10x Connectivity line, High-Density, High-Density | |
60 Value line, Medium-Density, XL-Density, Medium-Density Value line, Low-Density | |
61 and Low-Density Value line Devices. | |
62 | |
63 - This example has been tested with STMicroelectronics STM32100E-EVAL (High-Density | |
64 Value line), STM32100B-EVAL (Medium-Density Value line), STM3210C-EVAL | |
65 (Connectivity line), STM3210E-EVAL (High-Density and XL-Density) and STM3210B-EVAL | |
66 (Medium-Density) evaluation boards and can be easily tailored to any other | |
67 supported device and development board. | |
68 To select the STMicroelectronics evaluation board used to run the example, | |
69 uncomment the corresponding line in stm32_eval.h file (under Utilities\STM32_EVAL) | |
70 | |
71 - STM32100E-EVAL Set-up | |
72 - Use LED1 and LED2 connected to PF.06 and PF.07 pin | |
73 - Use the Key push-button connected to pin PG.08 (EXTI Line8). | |
74 - Use the Wakeup push-button connected to pin PA.00 (EXTI Line0). | |
75 @note the jumper JP4 must be not fit to be able to use the Wakeup push-button | |
76 | |
77 - STM32100B-EVAL Set-up | |
78 - Use LED1 and LED2 connected to PC.06 and PC.07 pin | |
79 - Use the Key push-button connected to pin PB.09 (EXTI Line9). | |
80 - Use the Wakeup push-button connected to pin PA.00 (EXTI Line0). | |
81 | |
82 - STM3210C-EVAL Set-up | |
83 - Use LED1 and LED2 connected to PD.07 and PD.13 pin | |
84 - Use the Key push-button connected to pin PB.09 (EXTI Line9). | |
85 - Use the Wakeup push-button connected to pin PA.00 (EXTI Line0). Make sure | |
86 that the Jumper 14 is in position 2<->3. | |
87 | |
88 - STM3210E-EVAL Set-up | |
89 - Use LED1 and LED2 connected to PF.06 and PF.07 pin | |
90 - Use the Key push-button connected to pin PG.08 (EXTI Line8). | |
91 - Use the Wakeup push-button connected to pin PA.00 (EXTI Line0). | |
92 @note the jumper JP4 must be not fit to be able to use the Wakeup push-button | |
93 | |
94 - STM3210B-EVAL Set-up | |
95 - Use LED1 and LED2 connected to PC.06 and PC.07 pin | |
96 - Use the Key push-button connected to pin PB.09 (EXTI Line9). | |
97 - Use the Wakeup push-button connected to pin PA.00 (EXTI Line0). | |
98 | |
99 @par How to use it ? | |
100 | |
101 In order to make the program work, you must do the following : | |
102 - Copy all source files from this example folder to the template folder under | |
103 Project\STM32F10x_StdPeriph_Template | |
104 - Open your preferred toolchain | |
105 - Rebuild all files and load your image into target memory | |
106 - Run the example | |
107 | |
108 @note | |
109 - Low-density Value line devices are STM32F100xx microcontrollers where the | |
110 Flash memory density ranges between 16 and 32 Kbytes. | |
111 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
112 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. | |
113 - Medium-density Value line devices are STM32F100xx microcontrollers where | |
114 the Flash memory density ranges between 64 and 128 Kbytes. | |
115 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
116 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes. | |
117 - High-density Value line devices are STM32F100xx microcontrollers where | |
118 the Flash memory density ranges between 256 and 512 Kbytes. | |
119 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
120 the Flash memory density ranges between 256 and 512 Kbytes. | |
121 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
122 the Flash memory density ranges between 512 and 1024 Kbytes. | |
123 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. | |
124 | |
125 * <h3><center>© COPYRIGHT 2011 STMicroelectronics</center></h3> | |
126 */ |