7.2.3 Peripherals Interrupt Request Register
The peripherals interrupt request register is PIR1 and PIR2. When an interrupt condition occurs,
regardless of the state of the corresponding interrupt enable bit or the global enable bit GIE, the interrupt flag
bit will be set to 1. The user software should ensure that the interrupt is set before allowing an interrupt. The
corresponding interrupt flag bit is cleared.
Peripherals interrupt request register PIR1 (0CH)
Program EEPROM write operation interrupt bit;
program EEPROM write operation complete (must clear through software);
program EEPROM write operation not complete or not start.
USART receive interrupt flag bit;
USART receive buffer full (clear through reading RCREG);
USART receive buffer empty.
USART transmit interrupt flag bit;
USART transmit buffer full (clear through TXREG);
USART transmit buffer empty.
SPI receive /transmit interrupt happens (must clear through software);
No SPI interrupt condition is met.
PWM interrupt happens (must clear through software);
TIMER2 and PR2 match interrupt flag bit.
TIMER2 and PR2 match happens (must clear through software);
TIMER2 and PR2 not match.
A/D converter interrupt flag bit;
A/D conversion complete (must clear through software);
A/D conversion not complete or not start.