
322
CHAPTER 13 COMPARATOR
Table 13.4-7 Comparator Status Register 3 (COSR3) Bit Functions
Bit name
Function
Bit 7
Bit 6
Unused bits
The read value is undefined.
Writing has no efect on operation.
Bit 5
SWS3:
Comparator 4 status
confirmation bit
Read this bit to confirm the output value from comparator 4.
When this bit is "1", it indicates the battery is connected.
When this bit is "0", it indicates the battery is not connected.
Writing in this bit has no effect.
Bit 4
SWS2:
Comparator 3 status
confirmation bit
Read this bit to confirm the output value from comparator 3.
When this bit is "1", it indicates the battery is connected.
When this bit is "0", it indicates the battery is not connected.
Writing in this bit has no effect.
Bit 3
SWS1:
Comparator 2 status
confirmation bit
Read this bit to confirm the output value from comparator 2.
When this bit is "1", it indicates the battery is connected.
When this bit is "0", it indicates the battery is not connected.
Writing in this bit has no effect.
Bit 2
VAL3:
Battery 3 valid status
confirmation bit 3
Read this bit to confirm the VALID signal output value from
battery monitoring circuit 3.
When this bit is "1", it indicates battery 3 is valid. When this
bit is "0", it indicates battery 3 is invalid.
Writing in this bit has no effect.
Bit 1
VAL2:
Battery 2 valid status
confirmation bit 2
Read this bit to confirm the VALID signal output value from
battery monitoring circuit 2. When this bit is "1", it indicates
battery 2 is valid. When this bit is "0", it indicates battery 2 is
invalid.
Writing in this bit has no effect.
Bit 0
VAL1:
Battery 1 valid status
confirmation bit 1
Read this bit to confirm the VALID signal output value from
battery monitoring circuit 1.
When this bit is "1", it indicates battery 1 is valid. When this
bit is "0", it indicates battery 1 is invalid.
Writing in this bit has no effect.