AN202
V1.0 | Page 22/73
www.cmostek.com
4.1.8
PIR1
(
Addr:0x0C
)
Table 4-13. PIR1 Register
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
PIR1
EEIF
CKMEAIF
-
C2IF
C1IF
OSFIF
TMR2IF
-
Reset
0
0
-
0
0
0
0
-
Type
RW
RW
-
RW
RW
RW
RW
-
Table 4-14. PIR1 Bit Function Description
3
PAIE
PORTA Change Interrupt Enable bit
1 = Enable the PORTA<7:0> change interrupt
0 = Disable the PORTA<7:0> change interrupt
2
T0IF
Timer0 Overflow Interrupt Flag bit
1 = Timer0register has overflowed (must be cleared in software)
0 = Timer0 register has not overflowed
1
INTF
PA2/INT External Interrupt Flag bit
1 = PA2/INT external interrupt has occurred (must be cleared in software)
0 = PA2/INT external interrupt has not occurred
0
PAIF
PORTA Change Interrupt Flag bit
1 = Any one or more ports of PORTA<7:0>have changed state (must be cleared in software)
0 = None of the PORTA<7:0> have changed state
Bit
Name
Function
7
EEIF
EEPROM Write OperationInterrupt Flag bit
1 = The EE write operation completed(must be cleared in software)
0 = The EE write operation has not completed
6
CKMEAIF
Fast clock measuringslow clock operationInterruptFlag bit
1 = Fast clock measuringslow clock operation completed (must be cleaned in software.)
0 = Fast clock measuringslow clock operation has not completed
5
-
Reserved-bit, can not be written as
“1”
4
C2IF
Comparator2 Interrupt Flag bit
1 = Comparator2 output has changed
0 = Comparator2 output has not changed
3
C1IF
Comparator1 Interrupt Flag bit
1 = Comparator1 output has changed
0 = Comparator1 output has not changed
2
OSFIF
Oscillator FailInterrupt Flag bit
1 = System oscillator failed, clock input has changed to INTOSC(must be cleared in
software)
0 = System clock runs normally
Содержание CMT2189C
Страница 32: ...AN202 V1 0 Page 32 73 www cmostek com...