[
Menu
]>[
Guide to use the PIC
]>[
873 Hardware
]>[
SFR
]
SFR explanation for PIC16F873(6)
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.
PSPIF :
Parallel Slave Port Read/Write Interrupt Flag
( Not used )
ADIF :
A/D Converter Interrupt Flag
1
:
A/D conversion completed
0
:
A/D conversion is not complete
RCIF :
USART Receive Interrupt Flag
1
:
USART receive buffer is full
0
:
USART receive buffer is empty
TXIF :
USART Transmit Interrupt Flag
1
:
USART transmit buffer is empty
0
:
USART transmit buffer is full
SSPIF :
Synchronous Serial Port(SSP) Interrupt Flag
1
:
SSP interrupt condition has occurred ( must be cleared in software )
0
:
No SSP interrupt condition occurred
CCP1IF :
CCP1 Interrupt Flag
Capture Mode
1
:
TMR1 register capture occurred ( must be cleared in software )
0
:
No TMR1 register cpature occurred
Compare Mode
1
:
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
1
:
TMR2 to PR2 match occurred ( must be cleared in software )
0
:
No TMR2 to PR2 match occurred
TMR1IF :
TMR1 Overflow Interrupt Flag
1
:
TMR1 register overflowed ( must be cleared in software )
0
:
TMR1 register did not overflow