
320
CHAPTER 13 COMPARATOR
Table 13.4-6 Comparator Interrupt Control Register 2 (CICR2) Bit Functions
Bit name
Function
Bit 7
Bit 6
Unused bits
The read value is undefined.
Writing has no efect on operation.
Bit 5
SW3:
Comparator 4 interrupt
enable bit
This bit is used to allow a comparator 4 interrupt.
If this bit is set to "1," an interrupt to the CPU will be
generated when the comparator 4 interrupt request bit is set
to "1" (COSR2:SW3=1).
Bit 4
SW2:
Comparator 3 interrupt
enable bit
This bit is used to allow a comparator 3 interrupt.
If this bit is set to "1," an interrupt to the CPU will be
generated when the comparator 3 interrupt request bit is set
to 1" (COSR2:SW2=1).
Bit 3
SW1:
Comparator 2 interrupt
enable bit
This bit is used to allow a comparator 2 interrupt.
If this bit is set to "1," an interrupt to the CPU will be
generated when the comparator 2 interrupt request bit is set
to 1" (COSR2:SW1=1).
Bit 2
VEN3:
Battery monitoring circuit 3
VALID interrupt enable bit
This bit is used to allow a battery monitoring circuit 3 VALID
interrupt.
If this bit is set to "1," an interrupt to the CPU will be
generated when the battery monitoring circuit 3 interrupt
request bit is set to "1" (COSR2:VAR3=1).
Bit 1
VEN2:
Battery monitoring circuit 2
VALID interrupt enable bit
This bit is used to allow a battery monitoring circuit 2 VALID
interrupt.
If this bit is set to "1," an interrupt to the CPU will be
generated when the battery monitoring circuit 2 interrupt
request bit is set to "1" (COSR2:VAR2=1).
Bit 0
VEN1:
Battery monitoring circuit 1
VALID interrupt enable bit
This bit is used to allow a battery monitoring circuit 1 VALID
interrupt.
If this bit is set to "1," an interrupt to the CPU will be
generated when the battery monitoring circuit 1 interrupt
request bit is set to "1" (COSR2:VAR1=1).