Document Title Here
Document Title Here
Document Title Here
ACR33U-A1 SmartDuo Reference Manual
Version 1.00
Page 38 of 56
www.acs.com.hk
8.2.10.4. READ_PROTECTION_BIT
Command format (abData field in the PC_to_RDR_XfrBlock)
Pseudo-APDU
CLA
INS
Byte Address MEM_L
MSB
LSB
FF
H
B2
H
MSB Byte Address
= 0000 00A
9
A
8
b
is the memory address location of the memory card.
LSB Byte Address
= A
7
A
6
A
5
A
4
A
3
A
2
A
1
A
0
b
is the memory address location of the
memory card.
MEM_L
Length of protection bits to be read from the card, in multiples of 8
bits. Maximum value is 32.
MEM_L = 1 + INT( (number of bits-1)/8 )
For example, to read eight protection bits starting from memory
0x0010
, the following pseudo-APDU should be issued:
0xFF 0xB1 0x00 0x10 0x01
Response data format (abData field in the RDR_to_PC_DataBlock)
PROT
1
…
…
PROT
L
SW1
SW2
PROT y
Bytes containing the protection bits
SW1,SW2
=
90
H
00
H
if no error
The arrangement of the protection bits in the PROT bytes is as follows:
PROT 1
PROT 2
….
P8
P7
P6
P5
P4
P3
P2
P1
P16
P15
P14
P13
P12
P11
P10
P9
..
..
..
..
..
..
P18
P17
Px is the protection bit of BYTE x in the response data
‘0’ byte is write protected
‘1’ byte can be written