311
13.4 Registers of the Comparator
Table 13.4-2 Function of Each Bit of the Comparator Control Register 2 (COCR2)
Bit name
Function
Bit 7
Bit 6
Bit 5
Unused bits
The read value is undefined.
Writing has no efect on operation.
Bit 4
B3:
B3 control bit
This bit is used to allow comparator operation of the pin used
for battery 3.
When this bit is set to "0", the comparators for the VOL3,
VSI3, and SW3 pins operate and OFB3 and ALR3 pin
output is allowed.
When this bits is set to "1", the comparators for the VOL3,
VSI3, and SW3 pins stop. OFB3 and ALR3 pin output
becomes port output.
Bit 3
B2:
B2 control bit
This bit is used to allow comparator operation of the pin used
for battery 2.
When this bit is set to "0", the comparators for the VOL2,
VSI2, and SW2 pins operate and OFB2 and ALR2 pin
output is allowed.
When this bits is set to "1", the comparators for the VOL2,
VSI2, and SW2 pins stop. OFB2 and ALR2 pin output
becomes port output.
Bit 2
B1:
B1 control bit
This bit is used to allow comparator operation of the pin used
for battery 1.
When this bit is set to "0", the comparators for the VOL1,
VSI1, and SW1 pins operate and OFB1 and ALR1 pin
output is allowed.
When this bit is set to "1", the comparators for the VOL1,
VSI1, and SW1 pins stop. OFB1 and ALR1 pin output
becomes port output.
Bit 1
DC2:
DC2 control register
This bit is used to allow comparator operation of the DC2 pin.
When this bit is set to "0", the comparator for the DCIN2
pin operates
When this bit is set to "1", the comparator for the DCIN2
pin stops.
Bit 0
DC1:
DC1 control bit
This bit is used to allow comparator operation of the DC1 pin.
When this bit is set to "0", the comparator for the DCIN
pin operates and ACO pin output is allowed.
When this bit is set to "1", the comparator for the DCIN
pin stops and ACO pin output becomes port output.