PIR1

Peripheral Interrupt Request Register 1
Notes:
  1. 1.RC1IF is read-only. User software must read RC1REG to clear RC1IF.
  2. 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. 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
Reset:
Access:
Bit76543210
CCP1IFTMR2IFTMR1IFRC1IFTX1IFBCL1IFSSP1IFADIF
AccessR/W/HSR/W/HSR/W/HSRRR/W/HSR/W/HSR/W/HS
Reset00000000

Bit 7 – CCP1IF: CCP1 Interrupt Flag

CCP1 Interrupt Flag

Value CCP Mode
Capture Compare PWM
1 Capture occurred (must be cleared in software) Compare match occurred (must be cleared in software) Output trailing edge occurred (must be cleared in software)
0 Capture did not occur Compare match did not occur Output trailing edge did not occur

Bit 6 – TMR2IF: TMR2 Interrupt Flag

TMR2 Interrupt Flag

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

Bit 5 – TMR1IF: TMR1 Interrupt Flag

TMR1 Interrupt Flag

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

Bit 4 – RC1IF: EUSART1 Receive Interrupt Flag(1)

EUSART1 Receive Interrupt Flag(1)

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

Bit 3 – TX1IF: EUSART1 Transmit Interrupt Flag(2)

EUSART1 Transmit Interrupt Flag(2)

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

Bit 2 – BCL1IF: MSSP1 Bus Collision Interrupt Flag

MSSP1 Bus Collision Interrupt Flag

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

Bit 1 – SSP1IF: MSSP1 Interrupt Flag

MSSP1 Interrupt Flag

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

Bit 0 – ADIF: ADC Interrupt Flag

ADC Interrupt Flag

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