Electronic Components Datasheet Search
  English  ▼

X  

AN2271 Datasheet(PDF) 6 Page - STMicroelectronics

Part # AN2271
Description  Ekey-Udisk solution
PDF  8 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2271 Datasheet(HTML) 6 Page - STMicroelectronics

  AN2271 Datasheet HTML 1Page - STMicroelectronics AN2271 Datasheet HTML 2Page - STMicroelectronics AN2271 Datasheet HTML 3Page - STMicroelectronics AN2271 Datasheet HTML 4Page - STMicroelectronics AN2271 Datasheet HTML 5Page - STMicroelectronics AN2271 Datasheet HTML 6Page - STMicroelectronics AN2271 Datasheet HTML 7Page - STMicroelectronics AN2271 Datasheet HTML 8Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 6 / 8 page
background image
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.



Html Pages

1 2 3 4 5 6 7 8


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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