
6. Interrupt controller
MC97F6108A User’s manual
58
6.12.8
Comparator Interrupt Flag Enable Register (CIENAB)
Comparator Interrupt Flag Enable Register (CIENAB) determined to enable each comparator
(comparator0 to comparator4) interrupt to occur by writing ‘1’
. Also, these flags can be cleared to disable
external interrupt by writing ‘0’ on to themselves
.
6.12.9
Comparator Interrupt Flag Register (CIFLAG)
Comparator Interrupt Flag Register (CIFLAG) is
set to ‘1’ when the
comparator (comparator0 to
comparator 4) interrupt generating condition is satisfied while CIENAB is set to
‘1’
. These flags are
cleared when the interrupt service routine is executed. Alternatively, these flags can be cleared by
writing ‘0’ on to themselves.
6.12.10
Comparator Interrupt Flag Edge Register (CIEDGE)
Comparator Interrupt Flag Edge Register (CIEDGE) determined a level or an edge type of comparator
(comparator0 to comparator 4) interrupt.
6.12.11
Comparator Interrupt Polarity Flag Register (CIPOLA)
Comparator Interrupt Polarity Flag Register (CIPOLA) determines a level type from high and low level
or determined an edge type from rising and falling edge of comparator (comparator0 to comparator 4)
interrupt. Initially, default value is to occur interrupt at high level or rising edge.
6.12.12
Comparator Interrupt Flag Both Edge Enable Register (CIBOTH)
Comparator Interrupt Flag Both Edge Enable Register (CIBOTH) determines to enable the
corresponding comparator (comparator0 to comparator 4) interrupt to occur by both edges (no level).
And the value of CIEDGE and CIPOLA register are ignored.
6.12.13
Comparator Flag Enable Register (CFENAB)
Comparator Flag Enable Register (CFENAB) determines whether the comparator (comparator0 to
comparator 4) interrupt generating condition flag is occurred or not.
6.12.14
Comparator Flag Register (CFFLAG)
Comparator Flag Register (CFFLAG) is
set to ‘1’ when the
comparator (comparator0 to comparator 4)
interrupt generating condition is satisfied while CFENAB is set to
‘1’. These flags are NOT cleared when
the interrupt service routine is executed, but some flags are cleared when PPG period is matching. And,
these flags can be cleared by writing ‘0’ on to themselves.