Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1527 Datasheet(PDF) 7 Page - STMicroelectronics

Part # AN1527
Description  DEVELOPING A USB SMARTCARD READER WITH ST7SCR
PDF  14 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1527 Datasheet(HTML) 7 Page - STMicroelectronics

Back Button AN1527 Datasheet HTML 3Page - STMicroelectronics AN1527 Datasheet HTML 4Page - STMicroelectronics AN1527 Datasheet HTML 5Page - STMicroelectronics AN1527 Datasheet HTML 6Page - STMicroelectronics AN1527 Datasheet HTML 7Page - STMicroelectronics AN1527 Datasheet HTML 8Page - STMicroelectronics AN1527 Datasheet HTML 9Page - STMicroelectronics AN1527 Datasheet HTML 10Page - STMicroelectronics AN1527 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 14 page
background image
7/14
DEVELOPING A USB SMARTCARD READER WITH ST7SCR
3 ISO 7816 UART LIBRARY (CRD)
3.1 GENERAL INTRODUCTION
The aim of this library is to provide the user with a set of functions for using the Smartcard In-
terface (ISO7816-3 UART Interface) to directly access the hardware and to communicate with
an Integrated Circuit Card (ICC) through a few simple functions. This library is composed of 4
files:
– crd.c
– crd.h
– int_crd.c
– int_crd.h
The crd.x files provide the general functions for the main loop program. The int_crd.x files are
used for interrupt management.
The transactions between the ST7 microcontroller and the ICC are performed by the ICC_xxx
functions. These functions poll flags waiting for the end of the transaction. The transaction it-
self and the flag settings are managed by interrupts.
3.2 SMARTCARD INTERFACE FUNCTIONS
The Smartcard Interface (CRD) functions described below are very low level functions used to
interact directly with the hardware.
s
void CRD_Init(void)
This function resets and initialize the CRD and the local software flags.
s
unsigned char CRD_GetHwError(unsigned char * pHwErrorCode)
This function checks the hardware state and returns one of the following error codes:
– Slot_No_Error
– SlotError_HW_Error
– SlotError_ICC_Mute (no card present)
If the function returns SlotError_HW_Error, pHwErrorCode will contain one of the following
error codes:
– HardwareErrorCode_OverCurrent
– HardwareErrorCode_VoltageError
– HardwareErrorCode_OverCurrent_IT
– HardwareErrorCode_VoltageError_IT
Note: In case of a hardware error, the slot is inactivated (VCC Card off).



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14


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