|
BQ2063_15 Datasheet, PDF (21/60 Pages) Texas Instruments – SBS v1.1-COMPLIANT Li-ION GAS-GAUGE IC | |||
|
◁ |
Not Recommended For New Designs
bq2063
SBS v1.1ÄCOMPLIANT LiÄION GASÄGAUGE IC
WITH PROTECTOR INTERFACE
SLUS468Eâ MAY 2001 â REVISED APRIL 2002
PEC protocol (continued)
1
7
1
ÃÃÃÃÃÃ ÃÃÃÃ ÃÃÃÃÃÃ ÃÃÃÃÃÃ S
Battery Address
0001011
0
1
8
1
A Command Code A
8
1
8
1
Data Byte Low A Data Byte High A
8
PEC
Write Word
11
ÃÃÃÃA P
1
7
11
8
11
7
11
ÃÃÃÃÃÃ ÃÃÃÃ ÃÃÃÃ S
Battery Address
0001011
0
A Command Code A
S Battery Address 1
A
8
1
8
1
ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃ Data Byte Low A Data Byte High A
ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃ Read Word
8
PEC
11
AP
1
7
11
8
11
7
11
ÃÃÃ ÃÃ ÃÃ S Battery Address 0 A Command Code A S Battery Address 1 A
ÃÃÃ ÃÃ ÃÃ 0001011
8
1
ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃ ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃ ByteCount= N A
8
1
Data Byte 1 A
8
1
Data Byte 2 A
8
1
Data Byte N A
8
PEC
11
AP
Block Read
Host Processor
ÃÃÃÃÃÃbq2063
A â ACKNOWLEDGE
A â NOT ACKNOWLEDGE
S â START
P â STOP
Figure 9. SMBus Communication Protocol With PEC
PEC calculation
The basis of the PEC calculation is an 8-bit Cyclic Redundancy Check (CRC-8) based on the polynomial
C(X) = X8 + X2 + X1 + 1. The PEC calculation includes all bytes in the transmission, including address,
command, and data. The PEC calculation does not include ACKNOWLEDGE, NOT ACKNOWLEDGE, START,
STOP, and Repeated START bits.
For example, the host requests RemainingCapacity( ) from the bq2063. This includes the host following the
Read Word protocol. The bq2063 calculates the PEC based on the following 5 bytes of data, assuming the
remaining capacity of the battery is 1001 mAh.
D Battery Address with R/W = 0: 0x16
D Command Code for RemainingCapacity( ): 0x0f
D Battery Address with R/W = 1: 0x17
⢠POST OFFICE BOX 655303 DALLAS, TEXAS 75265
21
|
▷ |