Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2284 Datasheet(PDF) 36 Page - STMicroelectronics

Part # AN2284
Description  Smart Card Interface with the STR71xx
PDF  40 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2284 Datasheet(HTML) 36 Page - STMicroelectronics

Back Button AN2284 Datasheet HTML 32Page - STMicroelectronics AN2284 Datasheet HTML 33Page - STMicroelectronics AN2284 Datasheet HTML 34Page - STMicroelectronics AN2284 Datasheet HTML 35Page - STMicroelectronics AN2284 Datasheet HTML 36Page - STMicroelectronics AN2284 Datasheet HTML 37Page - STMicroelectronics AN2284 Datasheet HTML 38Page - STMicroelectronics AN2284 Datasheet HTML 39Page - STMicroelectronics AN2284 Datasheet HTML 40Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 36 / 40 page
background image
10 SC Reader Example
AN2284
36/40
PublicDir[3]={0xDD,0x00,DF};
Figure 12. Smart Card Example: File System Description
At the end of the example:
- the
PrivateDir directory will contains the PrivateFile file;
- the
PublicDir directory will contains the PublicFile file;
- the
MasterRoot directory will contains the PwdFile file;
The definition and the related file identifier code:
PrivateFile[3]={0xCA,0xA1,EF};
PublicFile[3]={0xCD,0x00,EF};
PwdFile[3]={0xDD,0xDD,EF};
10.2.1 Smart Card Start Up: Answer to Reset (A2R)
The first action to perform when the reader wants to access a card is the answer to reset
procedure. To this aim user has to invoke the SC_Handler as follows:
SC_state=SC_POWER_ON;
while (SC_state!=SC_ACTIVE_ON_T0)
SC_Handler (SC_GET_A2R, pvoid, NULL_PARAM, NULL_PARAM,
NULL_PARAM, &SC_state, &u16_status, card);
When a card is detected the A2R sequence is genereted, received and decoded. If the
recognized protocol is the T0 protocol, the smart card state of the reader will be active
(SC_ACTIVE_ON_T0) and the smart card will be available for operations on the file system.
10.2.2 Reading a File at aSpecified Path
Suppose the specified path reading begins is:
MasterRoot/PrivateDir/PrivateFile
To reach it the user has to perform the following actions:
SC_Handler (SC_SELECT_FILE, (u8 *) MasterRoot, NULL_PARAM, NULL_PARAM,
NULL_PARAM, &SC_state, &u16_status, card);
SC_Handler (SC_SELECT_FILE, (u8 *) PrivateDir, NULL_PARAM, NULL_PARAM,
NULL_PARAM, &SC_state, &u16_status, response);



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


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