324
CHAPTER 13 COMPARATOR
Table 13.4-8 Comparator Status Register 4 (COSR4) Bit Functions
Bit name
Function
Bit 7
COS8:
Comparator status
confirmation bit 8
Reading this bit to confirm OUT output from voltage
comparator 8. When this bit is "1", it indicates the power
level of battery 3 is enough. When this bit is "0", it indicates
the power level of battery 3 is in short.
Bit 6
COS7:
Comparator status
confirmation bit 7
Reading this bit to confirm OUT output from voltage
comparator 7. When this bit is "1", it indicates power is being
supplied from battery 3. When this bit is "0", it indicates
power supply from battery 3 has dropped.
Bit 5
COS6:
Comparator status
confirmation bit 6
Reading this bit to confirm OUT output from voltage
comparator 6. When this bit is "1", it indicates the power
level of battery 2 is enough. When this bit is "0", it indicates
the power level of battery 2 is in short.
Bit 4
COS5:
Comparator status
confirmation bit 5
Read this bit to confirm OUT output from voltage comparator
5. When this bit is "1", it indicates power is being supplied
from battery 2. When this bit is "0", it indicates power supply
from battery 2 has dropped.
Bit 3
COS4:
Comparator status
confirmation bit 4
Read this bit to confirm OUT output from voltage comparator
4. When this bit is "1", it indicates the power level of battery
1 is enough. When this bit is "0", it indicates the power level
of battery 1 is in short.
Bit 2
COS3:
Comparator status
confirmation bit 3
Reading this bit to confirm OUT output from voltage
comparator 3. When this bit is "1", it indicates power is being
supplied from battery 1. When this bit is "0", it indicates
power supply from battery 1 has dropped.
Bit 1
COS2:
Comparator status
confirmation bit 2
Read this bit to confirm OUT output from voltage comparator
2. When this bit is "1", it indicates power is being supplied
from the AC adapter connected to DCIN2. When this bit is
"0", it indicates power supply from the AC adapter connected
to DCIN2 has dropped.
Bit 0
COS1:
Comparator status
confirmation bit 1
Read this bit to confirm OUT output from voltage comparator
1. When this bit is "1", it indicates power is being supplied
from the AC adapter connected to DCIN. When this bit is
"0", it indicates power supply from the AC adapter connected
to DCIN has dropped.