• No results found

Interrupt Register Descriptions

12. Interrupt Handler

12.4. Interrupt Register Descriptions

The SFRs used to enable the interrupt sources and set their priority level are described below. Refer to the data sheet section associated with a particular on-chip peripheral for information regarding valid interrupt conditions for the peripheral and the behavior of its interrupt-pending flag(s).

SFR Definition 12.1. IE: Interrupt Enable

Bit 7: EA: Global Interrupt Enable.

This bit globally enables/disables all interrupts. It overrides the individual interrupt mask set-tings.

0: Disable all interrupt sources.

1: Enable each interrupt according to its individual mask setting.

Bit 6: ESPI0: Enable Serial Peripheral Interface (SPI0) Interrupt.

This bit sets the masking of the SPI0 interrupts.

0: Disable all SPI0 interrupts.

1: Enable interrupt requests generated by SPI0.

Bit 5: ET2: Enable Timer 2 Interrupt.

This bit sets the masking of the Timer 2 interrupt.

0: Disable Timer 2 interrupt.

1: Enable interrupt requests generated by the TF2L or TF2H flags.

Bit 4: ES0: Enable UART0 Interrupt.

This bit sets the masking of the UART0 interrupt.

0: Disable UART0 interrupt.

1: Enable UART0 interrupt.

Bit 3: ET1: Enable Timer 1 Interrupt.

This bit sets the masking of the Timer 1 interrupt.

0: Disable all Timer 1 interrupt.

1: Enable interrupt requests generated by the TF1 flag.

Bit 2: EX1: Enable External Interrupt 1.

This bit sets the masking of External Interrupt 1.

0: Disable external interrupt 1.

1: Enable interrupt requests generated by the /INT1 input.

Bit 1: ET0: Enable Timer 0 Interrupt.

This bit sets the masking of the Timer 0 interrupt.

0: Disable all Timer 0 interrupt.

1: Enable interrupt requests generated by the TF0 flag.

Bit 0: EX0: Enable External Interrupt 0.

This bit sets the masking of External Interrupt 0.

0: Disable external interrupt 0.

1: Enable interrupt requests generated by the /INT0 input.

R/W R/W R/W R/W R/W R/W R/W R/W Reset Value

EA ESPI0 ET2 ES0 ET1 EX1 ET0 EX0 00000000

Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Bit

Addressable SFR Address:0xA8

SFR Definition 12.2. IP: Interrupt Priority

Bit 7: UNUSED. Read = 1, Write = don't care.

Bit 6: PSPI0: Serial Peripheral Interface (SPI0) Interrupt Priority Control.

This bit sets the priority of the SPI0 interrupt.

0: SPI0 interrupt set to low priority level.

1: SPI0 interrupt set to high priority level.

Bit 5: PT2: Timer 2 Interrupt Priority Control.

This bit sets the priority of the Timer 2 interrupt.

0: Timer 2 interrupt set to low priority level.

1: Timer 2 interrupt set to high priority level.

Bit 4: PS0: UART0 Interrupt Priority Control.

This bit sets the priority of the UART0 interrupt.

0: UART0 interrupt set to low priority level.

1: UART0 interrupt set to high priority level.

Bit 3: PT1: Timer 1 Interrupt Priority Control.

This bit sets the priority of the Timer 1 interrupt.

0: Timer 1 interrupt set to low priority level.

1: Timer 1 interrupt set to high priority level.

Bit 2: PX1: External Interrupt 1 Priority Control.

This bit sets the priority of the External Interrupt 1 interrupt.

0: External Interrupt 1 set to low priority level.

1: External Interrupt 1 set to high priority level.

Bit 1: PT0: Timer 0 Interrupt Priority Control.

This bit sets the priority of the Timer 0 interrupt.

0: Timer 0 interrupt set to low priority level.

1: Timer 0 interrupt set to high priority level.

Bit 0: PX0: External Interrupt 0 Priority Control.

This bit sets the priority of the External Interrupt 0 interrupt.

0: External Interrupt 0 set to low priority level.

1: External Interrupt 0 set to high priority level.

R R/W R/W R/W R/W R/W R/W R/W Reset Value

- PSPI0 PT2 PS0 PT1 PX1 PT0 PX0 10000000

Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Bit

Addressable SFR Address:0xB8

SFR Definition 12.3. EIE1: Extended Interrupt Enable 1

Bit 7: ET3: Enable Timer 3 Interrupt.

This bit sets the masking of the Timer 3 interrupt.

0: Disable Timer 3 interrupts.

1: Enable interrupt requests generated by the TF3L or TF3H flags.

Bit 6: ECP1: Enable Comparator1 (CP1) Interrupt.

This bit sets the masking of the CP1 interrupt.

0: Disable CP1 interrupts.

1: Enable interrupt requests generated by the CP1RIF or CP1FIF flags.

Bit 5: ECP0: Enable Comparator0 (CP0) Interrupt.

This bit sets the masking of the CP0 interrupt.

0: Disable CP0 interrupts.

1: Enable interrupt requests generated by the CP0RIF or CP0FIF flags.

Bit 4: EPCA0: Enable Programmable Counter Array (PCA0) Interrupt.

This bit sets the masking of the PCA0 interrupts.

0: Disable all PCA0 interrupts.

1: Enable interrupt requests generated by PCA0.

Bit 3: EADC0: Enable ADC0 Conversion Complete Interrupt.

This bit sets the masking of the ADC0 Conversion Complete interrupt.

0: Disable ADC0 Conversion Complete interrupt.

1: Enable interrupt requests generated by the AD0INT flag.

Bit 2: EWADC0: Enable ADC0 Window Comparison Interrupt.

This bit sets the masking of the ADC0 Window Comparison interrupt.

0: Disable ADC0 Window Comparison interrupt.

1: Enable interrupt requests generated by the AD0WINT flag.

Bit 1: ERTC0: Enable smaRTClock Interrupt.

This bit sets the masking of the smaRTClock interrupt.

0: Disable smaRTClock interrupts.

1: Enable interrupt requests generated by the ALRM and OSCFAIL flag.

Bit 0: ESMB0: Enable SMBus (SMB0) Interrupt.

This bit sets the masking of the SMB0 interrupt.

0: Disable all SMB0 interrupts.

1: Enable interrupt requests generated by SMB0.

R/W R/W R/W R/W R/W R/W R/W R/W Reset Value

ET3 ECP1 ECP0 EPCA0 EADC0 EWADC0 ERTC0 ESMB0 00000000

Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0

SFR Address:0xE6

SFR Definition 12.4. EIP1: Extended Interrupt Priority 1

Bit 7: PT3: Timer 3 Interrupt Priority Control.

This bit sets the priority of the Timer 3 interrupt.

0: Timer 3 interrupts set to low priority level.

1: Timer 3 interrupts set to high priority level.

Bit 6: PCP1: Comparator1 (CP1) Interrupt Priority Control.

This bit sets the priority of the CP1 interrupt.

0: CP1 interrupt set to low priority level.

1: CP1 interrupt set to high priority level.

Bit 5: PCP0: Comparator0 (CP0) Interrupt Priority Control.

This bit sets the priority of the CP0 interrupt.

0: CP0 interrupt set to low priority level.

1: CP0 interrupt set to high priority level.

Bit 4: PPCA0: Programmable Counter Array (PCA0) Interrupt Priority Control.

This bit sets the priority of the PCA0 interrupt.

0: PCA0 interrupt set to low priority level.

1: PCA0 interrupt set to high priority level.

Bit 3: PADC0: ADC0 Conversion Complete Interrupt Priority Control.

This bit sets the priority of the ADC0 Conversion Complete interrupt.

0: ADC0 Conversion Complete interrupt set to low priority level.

1: ADC0 Conversion Complete interrupt set to high priority level.

Bit 2: PWADC0: ADC0 Window Comparison Interrupt Priority Control.

This bit sets the priority of the ADC0 Window Comparison interrupt.

0: ADC0 Window Comparison interrupt set to low priority level.

1: ADC0 Window Comparison interrupt set to high priority level.

Bit 1: PRTC0: smaRTClock Interrupt Priority Control.

This bit sets the priority of the smaRTClock interrupt.

0: smaRTClock interrupt set to low priority level.

1: smaRTClock interrupt set to high priority level.

Bit 0: PSMB0: SMBus (SMB0) Interrupt Priority Control.

This bit sets the priority of the SMB0 interrupt.

0: SMB0 interrupt set to low priority level.

1: SMB0 interrupt set to high priority level.

R/W R/W R/W R/W R/W R/W R/W R/W Reset Value

PT3 PCP1 PCP0 PPCA0 PADC0 PWADC0 PRTC0 PSMB0 00000000

Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0

SFR Address:0xF6

SFR Definition 12.5. EIE2: Extended Interrupt Enable 2

SFR Definition 12.6. EIP2: Extended Interrupt Priority 2

Bits 7–2: UNUSED. Read = 000000b. Write = don’t care.

Bit 1: EMAT: Enable Port Match Interrupt.

This bit sets the masking of the Port Match interrupt.

0: Disable the Port Match interrupt.

1: Enable the Port Match interrupt.

Bit 0: EREG0: Enable Voltage Regulator Interrupt.

This bit sets the masking of the Voltage Regulator Dropout interrupt.

0: Disable the Voltage Regulator Dropout interrupt.

1: Enable the Voltage Regulator Dropout interrupt.

R/W R/W R/W R/W R/W R/W R/W R/W Reset Value

- - - EMAT EREG0 00000000

Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0

SFR Address:0xE7

Bits 7–2: UNUSED. Read = 000000b. Write = don’t care.

Bit 1: EMAT: Port Match Interrupt Priority Control.

This bit sets the priority of the Port Match interrupt.

0: Port Match interrupt set to low priority level.

1: Port Match interrupt set to high priority level.

Bit 0: PREG0: Voltage Regulator Interrupt Priority Control.

This bit sets the priority of the Voltage Regulator interrupt.

0: Voltage Regulator interrupt set to low priority level.

1: Voltage Regulator interrupt set to high priority level.

R/W R/W R/W R/W R/W R/W R/W R/W Reset Value

- - - PMAT PREG0 00000000

Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0

SFR Address:0xF7