[Menu]>[Guide to use the PIC]>[628 Hardware]>[SFR]

SFR explanation for PIC16F628(2)

PIR1 ( Peripheral Interrupt register ) 0Ch
    This register contains various preipheral interrupts.

The value in the parenthesis is in the condition immediately after the turning on.

EEIF : EEPROM Write Operation Interrupt Flag ( Located on PIR2 in case of PIC16F873 )
1:The write operation completed (must be cleared in software)
0:The write operation has not completed or has not been started

CMIF : Comparator Interrupt Flag ( This bit is newly provided for PIC16F628 )
1:Comparator output has changed
0:Comparator output has not changed

RCIF : USART Receive Interrupt Flag ( Same as PIC16F873 )
1:The USART receive buffer is full
0:The USART receive buffer is empty

TXIF : USART Transmit Interrupt Flag ( Same as PIC16F873 )
1:The USART transmit buffer is empty
0:The USART transmit buffer is full

CCP1IF : CCP1 Interrupt Flag ( Same as PIC16F873 )
Capture Mode
1:A TMR1 register capture occurred (must be cleared in software)
0:No TMR1 register capture occurred

Compare Mode
1:A TMR1 register compare match occurred (must be cleared in software)
0:No TMR1 register compare match occurred

PWM Mode
    Unused in this mode

TMR2IF : TMR2 to PR2 Match Interrupt Flag ( Same as PIC16F873 )
1:TMR2 to PR2 match occurred (must be cleared in software)
0:No TMR2 to PR2 match occurred

TMR1IF : TMR1 Overflow Interrupt Flag ( Same as PIC16F873 )
1:TMR1 register overflowed (must be cleared in software)
0:TMR1 register did not overflow