12.9.6 PIR1

Peripheral Interrupt Request Register 1
Note:
  1. RC1IF is read-only. User software must read RC1REG to clear RC1IF.
  2. TX1IF is read-only. User software must load TX1REG to clear TX1IF. TX1IF does not indicate a completed transmission (use TMRT for this purpose instead).
  3. Interrupt flag bits are set when an interrupt condition occurs, regardless of the state of its corresponding enable bit or the Global Interrupt Enable (GIE) bit. User software needs to ensure the appropriate interrupt flag bits are cleared before enabling an interrupt.
Name: PIR1
Offset: 0x70D

Bit 76543210 
 CCP1IFTMR2IFTMR1IFRC1IFTX1IFBCL1IFSSP1IFADIF 
Access R/W/HSR/W/HSR/W/HSRRR/W/HSR/W/HSR/W/HS 
Reset 00000000 

Bit 7 – CCP1IF CCP1 Interrupt Flag

ValueCCP Mode
CaptureComparePWM
1Capture occurred (must be cleared in software)Compare match occurred (must be cleared in software)Output trailing edge occurred (must be cleared in software)
0Capture did not occurCompare match did not occurOutput trailing edge did not occur

Bit 6 – TMR2IF TMR2 Interrupt Flag

ValueDescription
1Interrupt has occurred (must be cleared in software)
0Interrupt event has not occurred

Bit 5 – TMR1IF TMR1 Interrupt Flag

ValueDescription
1Interrupt has occurred (must be cleared in software)
0Interrupt event has not occurred

Bit 4 – RC1IF  EUSART1 Receive Interrupt Flag(1)

ValueDescription
1The EUSART1 receive buffer (RC1REG) is not empty (contains at least one byte)
0The EUSART1 receive buffer is empty

Bit 3 – TX1IF  EUSART1 Transmit Interrupt Flag(2)

ValueDescription
1The EUSART1 transmit buffer (TX1REG) is empty
0The EUSART1 transmit buffer is not empty

Bit 2 – BCL1IF MSSP1 Bus Collision Interrupt Flag

ValueDescription
1A bus collision was detected (must be cleared in software)
0No bus collision was detected

Bit 1 – SSP1IF MSSP1 Interrupt Flag

ValueDescription
1Interrupt has occurred (must be cleared in software)
0Interrupt event has not occurred

Bit 0 – ADIF ADC Interrupt Flag

ValueDescription
1Interrupt has occurred (must be cleared in software)
0Interrupt event has not occurred
RC1IF is read-only. User software must read RC1REG to clear RC1IF.TX1IF is read-only. User software must load TX1REG to clear TX1IF. TX1IF does not indicate a completed transmission (use TMRT for this purpose instead).Interrupt flag bits are set when an interrupt condition occurs, regardless of the state of its corresponding enable bit or the Global Interrupt Enable (GIE) bit. User software needs to ensure the appropriate interrupt flag bits are cleared before enabling an interrupt.