ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 52 of 52
Appendix E. Physical and Logical Block/Sector
Calculation
1. Mifare 1K
•
Logical Sector is equal to Physical sector, which are 0 to 15
•
Logical block of each sector is from 0 to 3
•
Physical blocks = ((Sector * 4) + Logical block)
2. Mifare 4K
•
Case 1: If {0 <= Logical Sector <= 31}
o
Physical sector is equal to Logical
o
Logical block of each sector is from 0 to 3
o
Physical blocks = ((Sector * 4) + Logical block)
•
Case 2: If {32 <= Logical Sector <= 39}
o
Physical Sector = Logical ((Logical Sector - 32) * 3)
o
Logical block of each sector is from 0 to 15
o
Physical blocks = ((Logical Sector - 32) * 16) + 128 + Logical block