Byte0: Unseal Key LSB
Byte1: Unseal Key MSB
Byte2: Full Access Key LSB
Byte3: Full Access Key MSB
Write block: command through
MACSubcmd()
starting address 0x3E, data block (hex) = [35 00 23 01 67 45 AB
89 EF CD].
Starting address 0x60, data block(hex) = [0A 0C] (checksum followed by length)
Checksum = 0x0A = ~(0x35 + 0x00 + 0x23 + 0x01 + 0x67 + 0x45 + 0xAB + 0x89 + 0xEF + 0xCD). The
checksum is the 8-bit sum of the MSB and LSB of the command plus the (command length) bytes in the buffer.
The final sum is the bitwise inversion of the result.
12.2.24 MACSubcmd() 0x0037 Authentication Key
This command enters a new authentication key into the device.
Status
Condition
Action
Initiate
OperationStatus()[SEC1,SEC0]
= 0,1 AND
0x0037 to
MACSubcmd()
OperationStatus()[AUTH]
= 1
160-bit random number available at
MACData()
Enter Key
Correct 128-bit Key written to
MACData()
in the format
0xAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPP,
where AA is LSB. In addition to this information, the
ch length data block is required.
Wait time 250 ms
OperationStatus()[AUTH]
= 0
Device returns 160-bit HMAC digest at
MACData()
in the
format:
0xAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSST
TT, where AA is LSB. The HMAC digest was calculated using
a challenge of all key.
The result can be used to verify the key without allowing a
plain text read back.
12.2.25 MACSubcmd() 0x0041 Device Reset
This command resets the device.
Status
Condition
Action
Enable
0x0041 to
MACSubcmd()
Reset the device
Note
Command 0x0012 also resets the device.
12.2.26 MACSubcmd() 0x0050 SafetyAlert
This command returns the
SafetyAlert()
flags on
MACSubcmd() or MACData()
.
Status
Condition
Action
Activate
0x0050 to
MACSubcmd()
Output
SafetyAlert()
flags on
MACData()
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
RSVD
RSVD
RSVD
RSVD
UTD
UTC
RSVD
RSVD
RSVD
RSVD
CTOS
RSVD
PTOS
RSVD
RSVD
RSVD
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RSVD
RSVD
OTD
OTC
RSVD
ASCD
RSVD
ASCC
RSVD
AOLD
RSVD
OCD
RSVD
OCC
COV
CUV
UTD (Bit 27)
: Undertemperature During Discharge
1 = Detected
I2C Commands
78
BQ28Z610-R2
Copyright © 2022 Texas Instruments Incorporated