www.ti.com
3
SLUUBH1C – August 2016 – Revised March 2018
Submit Documentation Feedback
Copyright © 2016–2018, Texas Instruments Incorporated
Contents
10
SHA-1 Authentication
..........................................................................................................
32
10.1
Overview
.....................................................................................................................
32
10.2
HMAC Description
..........................................................................................................
32
10.3
Authentication
...............................................................................................................
32
10.4
AuthenticateData(): 0x40…0x53
.........................................................................................
33
10.5
AuthenticateChecksum(): 0x54
...........................................................................................
33
11
Data Commands
.................................................................................................................
34
11.1
Command Summary
.......................................................................................................
34
11.2
Control(): 0x00/0x01
.......................................................................................................
34
11.3
CONTROL_STATUS: 0x0000
............................................................................................
35
11.3.1
DEVICE_TYPE: 0x0001
.........................................................................................
37
11.3.2
FW_VERSION: 0x0002
.........................................................................................
37
11.3.3
HW_VERSION: 0x0003
.........................................................................................
37
11.3.4
STATIC_CHEM_DF_CHKSUM: 0x0005
......................................................................
37
11.3.5
CHEM_ID: 0x0006
...............................................................................................
37
11.3.6
PREV_MACWRITE: 0x0007
....................................................................................
37
11.3.7
BOARD_OFFSET: 0x0009
......................................................................................
37
11.3.8
CC_OFFSET: 0x000A
...........................................................................................
37
11.3.9
CC_OFFSET_SAVE: 0x000B
..................................................................................
37
11.3.10
GAUGE_START: 0x0011
......................................................................................
37
11.3.11
GAUGE_STOP: 0x0012
.......................................................................................
38
11.3.12
SEALED: 0x0020
...............................................................................................
38
11.3.13
CAL_ENABLE: 0x002D
........................................................................................
38
11.3.14
LT_ENABLE: 0x002E
..........................................................................................
38
11.3.15
RESET: 0x0041
.................................................................................................
38
11.3.16
NEW_BATTERY: 0xA613
.....................................................................................
38
11.4
AccumulatedCapacity(): 0x02/0x05
......................................................................................
38
11.5
Temperature(): 0x06/0x07
.................................................................................................
38
11.6
Voltage(): 0x08/0x09
.......................................................................................................
38
11.7
BatteryStatus() 0x0A
.......................................................................................................
38
11.8
BatteryAlert() 0x0B
.........................................................................................................
39
11.9
Current(): 0x0C/0x0D
......................................................................................................
39
11.10
ScaledR(): 0x16/0x17
.....................................................................................................
39
11.11
MeasuredZ(): 0x22/0x23
..................................................................................................
39
11.12
InternalTemperature(): 0x28/0x29
.......................................................................................
39
11.13
StateOfHealth(): 0x2E/0x2F
..............................................................................................
40
11.14
DesignCapacity(): 0x3C/3D
...............................................................................................
40
11.15
ManufacturerAccessControl(): 0x3E/0x3F
.............................................................................
40
11.16
MACData(): 0x40 through 0x5F
..........................................................................................
40
11.17
MACDataSum(): 0x60
.....................................................................................................
40
11.18
MACDataLen(): 0x61
.....................................................................................................
40
12
Data Flash
.........................................................................................................................
41
12.1
Accessing Data Flash
......................................................................................................
41
12.1.1
Write to DF Example
.............................................................................................
41
12.1.2
Read from DF Example
.........................................................................................
41
12.1.3
Auto-Increment Reading
........................................................................................
41
12.2
Access Modes
..............................................................................................................
41
12.2.1
Sealing/Unsealing Data Flash Access
.........................................................................
42
12.3
BlockDataChecksum(): 0x60
..............................................................................................
42
12.4
BlockDataLength(): 0x61
..................................................................................................
42
12.5
BlockDataControl(): 0x62
..................................................................................................
42
13
Data Flash Summary
...........................................................................................................
43