Academic Program

Interrupt & Special Function Registers

Interrupt & Special Function Registers

Interrupt Control Register

INTCON is the control register for the PIC16F1xxx interrupts.

cr-interrupt.png

INTCON

intcon-register.png

  • GIE: Global Interrupt Enable
  • PEIE: Peripheral Interrupt Enable
  • TMR0IE: Timer 0 interrupt enable
  • INTE: External interrupt enable
  • IOCIE: Interrupt on change enable
  • TMR0IF: Timer 0 interrupt flag
  • INTF: External interrupt flag
  • IOCIF: Interrupt on change flag

 


 

Special Functions Registers ( SFRs)

In each of the PIC16F1xxx's data banks there are up to 20 Special Function Registers (SFRs). The SFRs are located just below the core registers starting at address xxCh. SFRs control the PIC16F1xxx peripheralsdigital I/O ports, and oscillator settings.

 

Unlike the core registers, SFRs are NOT duplicated on each bank. Application programs need to ensure the appropriate bank has been selected before accessing an SFR.

sfrs.png

 

The SFRs for each PIC® MCU will vary. Consult the data sheet for the name and location of the SFRs for the MCU you are using.