| поискавой системы для электроныых деталей |
|
AN2271 датащи(PDF) 6 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2271 датащи(HTML) 6 Page - STMicroelectronics |
|
6 / 8 page ![]() Smart Card Interface AN2271 6/8 5 Smart Card Interface This interface provides the user with a set of functions for using the Timer and I/O to communicate with the smart card. It is composed of 3 files: ● HID_usb.c ● UARTT0.c ● Int_7265.c The HID_usb.c file provides the protocol conversion from the HID protocol to the ISO7816 APDU protocol for the main loop program. The UARTT0.c file implements the ISO7816 T0 protocol to communicate with the smart card. ● CardPowerOn() function is called by HID_usb.c to provide a voltage to smart card ● CardSend() function is called by HID_usb.c to start a UART communication ● T0SendData() function is called by timer interrupt to send one bit at a set time ● T0ReceiveData() function is called by timer interrupt to receive one bit at a set time The Int_7265.c file provides one timer interrupt management and one external interrupt management to implement the ISO7816 T0 protocol. ● INT_TIM() function is coded to call T0SendData() function or T0ReceiveData() function to receive or send one bit when a specific time is reached. ● INT_EI2() function is coded to start the timer when a UART start bit is detected. The MCO pin of ST72651 is used to provide a clock signal to the smart card. The output of the MCO pin is 6MHz. In this solution, it should reduce to 3MHz to use as smart card clock, if the user wants another clock frequency, an external crystal could provide different clock. The UsbVddf pin of ST72651 is used to provide Voltage to the smart card. The voltage output by this pin is 3.3V, so this interface is 3.3V. If you want another voltage interface, you should modify the I/O pins. In this solution, the baud rate of the ISO7816 interface uses a default value of 8.064kbps. If you require another baud rate, the timer value should be modified. |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |