Gemplus GPR400 Reference Manual page 31

Smartcard reader / writer
Table of Contents

Advertisement

© GEMPLUS
APPENDIX C - SAMPLE GPR400 SCENARIOS
Open Session:
T.L.V. = 20.00.
write I/O @0242h 20h, @0243h 00h.
write I/O @0240h : bit 1 set to 1
wait for Interrupt Request ( IREQ )
then write I/O @0240h bit 2 reset to 0
read I/O @0242h 22h, @0243h 01h, @0244h 00h
APDU Exchange :
T.L.V. = 30.L.(Nad, Pcb, Le, Vinf, E)
write I/O @0242h: 30 L.(Nad, Pcb, Le, Vinf, E)
write I/O @0240h : bit 1 set to 1
wait for Interrupt Request ( IREQ )
then write I/O @0240h bit 2 reset to 0
read I/O @0242h : 32.L.(Nad, Pcb, Le, Vinf, E)
Close Session :
T.L.V. = 10.00.
write I/O @0242h: 10.00
write I/O @0240h : bit 1 set to 1
wait for Interrupt Request ( IREQ )
then write I/O @0240h bit 2 reset to 0
read I/O @0242h : 12.01.00
PowerDown GPR :
T.L.V. = 40.01.00.
write I/O @0242h: 40.01.00
write I/O @0240h : bit 1 set to 1
wait for Interrupt Request (IREQ)
then write I/O @0240h bit 2 reset to 0
read I/O @0242h : 42.01.00.
26

Advertisement

Table of Contents
loading

Table of Contents