ATSHA204A
Security Commands
Table 8-5. Zone Encoding (Param1)
Zone
Name
Config
Param1
Value
Size Read
704 bits
0
88 bytes Always available.
3 slots
Write
Partially, when unlocked.
Never when locked.
Never encrypted.
OTP
Not allowed when LockConfig is unlocked.
Never when unlocked.
All writeable when LockConfig is locked and
512 bits Always when locked, except LockValue is unlocked.
1
64 bytes in legacy mode.
Controlled by OTPmode when LockValue is
2 slots See Section One Time
locked.
Programmable (OTP) Zone.
See Section One Time Programmable (OTP)
Zone.
Data
Not allowed when LockConfig is unlocked.
All writeable when LockConfig is locked and
4096 bits Never when unlocked;
LockValue is unlocked.
2
512 bytes otherwise, controlled by
16 slots IsSecret and EncryptRead. Controlled by WriteConfig when LockValue is
locked.
See Section Device Locking.
8.5.4
Address Encoding
Param2 includes a single address that indicates the memory to be accessed. All Reads and Writes are in
units of Words (4-byte). The most-significant byte of a legal ATSHA204A address is always zero. All
unused address bits should always be set to zero. The least-significant bits in the address describe the
offset to the first word to be accessed within the Block/Slot, while the upper bits specify the Slot number
per the table below:
Table 8-6. Address Encoding (Param2)
Byte 0 (First Byte on the Bus)
Byte 1
Zone
Data
7654
3
0
Block
210
Offset
76543210
00000000
Config
000
Block
Offset
00000000
OTP
0000
Block
Offset
00000000
Within each zone, there are various access restrictions per the table below:
Table 8-7. Legal Block/slot Values
Zone
Data
Legal Block/Slot
(Inclusive)
Notes
0 – 15
All offsets in all slots available for both read and write.
4-byte access permitted on a particular slot only if SlotConfig.IsSecret is zero.
Config
0–2
Words above 16 (block 2, offset 6) can never be read.
© 2018 Microchip Technology Inc.
DS40002025A-page 46