Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/USART/Smartcard/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_Smartcard USART Smartcard example | |
3 | |
4 @verbatim | |
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics ******************* | |
6 * @file USART/Smartcard/readme.txt | |
7 * @author MCD Application Team | |
8 * @version V3.5.0 | |
9 * @date 08-April-2011 | |
10 * @brief Description of the USART Smartcard 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 Smartcard mode. | |
24 The example gives only the possibility to read the ATR and decode it into | |
25 predefined buffer. | |
26 First, the code is waiting for an card insertion. If a card is detected through | |
27 the EXTI Line interrupt (connected to the Smartcard detect pin), a reset signal | |
28 is applied to the card through its reset pin. | |
29 As response to this reset, the card transmit the ATR which will be stored in | |
30 predefined buffer. Once the ATR is received, it is decoded and stored in a specific | |
31 structure (SC_A2R) and the card protocol type is stored in a variable. | |
32 ATRDecodeStatus variable must be equal to 1 (PASSED) when the sequence succeed. | |
33 | |
34 The used Smartcard should be ISO7816-3 T=0 compatible. | |
35 | |
36 SC_USART configured as follow: | |
37 - Word Length = 9 Bits | |
38 - 0.5 Stop Bit | |
39 - Even parity | |
40 - BaudRate = 12096 baud | |
41 - Hardware flow control disabled (RTS and CTS signals) | |
42 - Tx and Rx enabled | |
43 - USART Clock enabled | |
44 - USART CPOL: Clock is active low | |
45 - USART CPHA: Data is captured on the second edge | |
46 - USART LastBit: The clock pulse of the last data bit is not output to | |
47 the SCLK pin | |
48 | |
49 | |
50 @par Directory contents | |
51 | |
52 - USART/Smartcard/platform_config.h Evaluation board specific configuration file | |
53 - USART/Smartcard/stm32f10x_conf.h Library Configuration file | |
54 - USART/Smartcard/stm32f10x_it.h Interrupt handlers header file | |
55 - USART/Smartcard/stm32f10x_it.c Interrupt handlers | |
56 - USART/Smartcard/main.c Main program | |
57 - USART/Smartcard/system_stm32f10x.c STM32F10x system source file | |
58 | |
59 @par Hardware and Software environment | |
60 | |
61 - This example runs on STM32F10x Connectivity line, High-Density, High-Density | |
62 Value line, Medium-Density, XL-Density, Medium-Density Value line, Low-Density | |
63 and Low-Density Value line Devices. | |
64 | |
65 - This example has been tested with STMicroelectronics STM3210C-EVAL (Connectivity line), | |
66 STM3210E-EVAL (High-Density and XL-Density) and STM3210B-EVAL (Medium-Density) | |
67 evaluation boards and can be easily tailored to any other supported device and | |
68 development board. | |
69 To select the STMicroelectronics evaluation board used to run the example, | |
70 uncomment the corresponding line in USART/Smartcard/platform_config.h file | |
71 | |
72 - STM3210C-EVAL Set-up | |
73 - Plug a Smartcard (ISO7816-3 T=0 compatible) into the dedicated Smartcard | |
74 connector CN5. | |
75 @note In this case USART3 Tx and CK pins are full remapped by software. | |
76 Make sure that Jumper 11 (JP11), Jumper 12 (JP12) and Jumper 13 (JP13) | |
77 are in position 1<-->2. | |
78 | |
79 - STM3210E-EVAL Set-up | |
80 - Plug a Smartcard (ISO7816-3 T=0 compatible) into the dedicated Smartcard | |
81 connector CN18. | |
82 @note Make sure that Jumper 15 (JP15) and Jumper 16 (JP16) are fitted. | |
83 | |
84 - STM3210B-EVAL Set-up | |
85 - Plug a Smartcard (ISO7816-3 T=0 compatible) into the dedicated Smartcard | |
86 connector CN16. | |
87 | |
88 | |
89 @par How to use it ? | |
90 | |
91 In order to make the program work, you must do the following : | |
92 - Copy all source files from this example folder to the template folder under | |
93 Project\STM32F10x_StdPeriph_Template | |
94 - Open your preferred toolchain | |
95 - Rebuild all files and load your image into target memory | |
96 - Run the example | |
97 | |
98 @note | |
99 - Low-density Value line devices are STM32F100xx microcontrollers where the | |
100 Flash memory density ranges between 16 and 32 Kbytes. | |
101 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
102 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. | |
103 - Medium-density Value line devices are STM32F100xx microcontrollers where | |
104 the Flash memory density ranges between 64 and 128 Kbytes. | |
105 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx | |
106 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes. | |
107 - High-density Value line devices are STM32F100xx microcontrollers where | |
108 the Flash memory density ranges between 256 and 512 Kbytes. | |
109 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
110 the Flash memory density ranges between 256 and 512 Kbytes. | |
111 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where | |
112 the Flash memory density ranges between 512 and 1024 Kbytes. | |
113 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. | |
114 | |
115 * <h3><center>© COPYRIGHT 2011 STMicroelectronics</center></h3> | |
116 */ |