stc3117
Generated with MrT Device Utility
Bus: I2C
RegMap: Register Map
Datasheet: https://www.st.com/conte…
DigiKey: 497-15387-1-ND
I2C Address: 0xE0
Description
Gas gauge IC with battery charger control
Register Map
Name |
Address |
Type |
Access |
Default |
Description |
---|---|---|---|---|---|
0x00 |
uint8 |
RW |
0x00 |
Mode register |
|
0x01 |
uint8 |
RW |
0x00 |
Control and status register |
|
0x02 |
uint16 |
RW |
0x0000 |
Battery SOC (LSB = 1/512 %) |
|
0x04 |
uint16 |
R |
0x0000 |
Number of conversions |
|
0x06 |
uint16 |
R |
0x0000 |
Battery current |
|
0x08 |
uint16 |
R |
0x0000 |
Battery voltage (LSB = 2.2 mV) |
|
0x0A |
uint8 |
R |
0x00 |
Temperature in degrees C (LSB = 1deg C ) |
|
0x0B |
uint16 |
RW |
0x0000 |
Battery average current or SOC change rate |
|
0x0D |
uint16 |
RW |
0x0000 |
OCV register (LSV = 0.55 mV) |
|
0x0F |
uint16 |
RW |
0x018B |
Battery average current or SOC change rate |
|
0x11 |
uint16 |
RW |
0x0141 |
Voltage gas gauge algorithm parameter |
|
0x13 |
uint8 |
RW |
0x02 |
SOC alarm level in (LSB = 0.5%) |
|
0x14 |
uint8 |
RW |
0xAA |
Battery low voltage alarm level (LSB = 17.6 mV) |
|
0x15 |
uint8 |
RW |
0x0A |
Current threshold for current monitoring (LSB = 47.04 uV ) |
|
0x16 |
uint8 |
R |
0x78 |
Current monitoring counter |
|
0x17 |
uint8 |
RW |
0x78 |
Maximum counter value for current monitoring |
|
0x18 |
uint8 |
R |
0x16 |
Part type ID = 16h |
|
0x1B |
uint16 |
R |
0x0000 |
Coulomb counter adjustment register |
|
0x1D |
uint16 |
R |
0x0000 |
Voltage mode adjustment register |
Registers
MODE
- Address:
[0x00]
Mode register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
FORCE_VM |
FORCE_CC |
GG_RUN |
ALM_ENA |
FORCE_CD |
BIBATD_PU |
VMODE |
Flags
- VMODE:
Power saving voltage mode
- BIBATD_PU:
BATD internal pull-up enable
- FORCE_CD:
Force CD output high
- ALM_ENA:
Enable Alarm function
- GG_RUN:
creates a flag at bit 1 of the DUMMY register
- FORCE_CC:
Force the relaxation timer to switch to the Coulomb counter (CC) state
- FORCE_VM:
Force the relaxation timer to switch to voltage mode (VM) state
CTRL
- Address:
[0x01]
Control and status register
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
CTRL |
SOC
- Address:
[0x02]
Battery SOC (LSB = 1/512 %)
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
Fields
- SOC:
Battery SOC (LSB = 1/512 %)
COUNTER
- Address:
[0x04]
- Default:
[0x0000]
Number of conversions
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
Fields
- COUNTER:
Number of conversions
CURRENT
- Address:
[0x06]
- Default:
[0x0000]
Battery current
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
Fields
- CURRENT:
Battery current
VOLTAGE
- Address:
[0x08]
- Default:
[0x0000]
Battery voltage (LSB = 2.2 mV)
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
Fields
- VOLTAGE:
Battery voltage (LSB = 2.2 mV)
TEMPERATURE
- Address:
[0x0A]
- Default:
[0x00]
Temperature in degrees C (LSB = 1deg C )
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- TEMPERATURE:
Temperature in degrees C (LSB = 1deg C )
AVG_CURRENT
- Address:
[0x0B]
- Default:
[0x0000]
Battery average current or SOC change rate
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
Fields
- AVG_CURRENT:
Battery average current or SOC change rate
OCV
- Address:
[0x0D]
- Default:
[0x0000]
OCV register (LSV = 0.55 mV)
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
Fields
- OCV:
OCV register (LSV = 0.55 mV)
CC_CNF
- Address:
[0x0F]
- Default:
[0x018B]
Battery average current or SOC change rate
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
Fields
- CC_CNF:
Battery average current or SOC change rate
VM_CNF
- Address:
[0x11]
- Default:
[0x0141]
Voltage gas gauge algorithm parameter
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
Fields
- VM_CNF:
Voltage gas gauge algorithm parameter
ALARM_SOC
- Address:
[0x13]
- Default:
[0x02]
SOC alarm level in (LSB = 0.5%)
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- ALARM_SOC:
SOC alarm level in (LSB = 0.5%)
ALARM_VOLTAGE
- Address:
[0x14]
- Default:
[0xAA]
Battery low voltage alarm level (LSB = 17.6 mV)
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- ALARM_VOLTAGE:
Battery low voltage alarm level (LSB = 17.6 mV)
CURRENT_THRES
- Address:
[0x15]
- Default:
[0x0A]
Current threshold for current monitoring (LSB = 47.04 uV )
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- CURRENT_THRES:
Current threshold for current monitoring (LSB = 47.04 uV )
CMONIT_COUNT
- Address:
[0x16]
- Default:
[0x78]
Current monitoring counter
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- CMONIT_COUNT:
Current monitoring counter
CMONIT_MAX
- Address:
[0x17]
- Default:
[0x78]
Maximum counter value for current monitoring
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- CMONIT_MAX:
Maximum counter value for current monitoring
ID
- Address:
[0x18]
- Default:
[0x16]
Part type ID = 16h
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|
Field |
Fields
- ID:
Part type ID = 16h
CC_ADJ
- Address:
[0x1B]
- Default:
[0x0000]
Coulomb counter adjustment register
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
Fields
- CC_ADJ:
Coulomb counter adjustment register
VM_ADJ
- Address:
[0x1D]
- Default:
[0x0000]
Voltage mode adjustment register
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Field |
Fields
- VM_ADJ:
Voltage mode adjustment register