|
Lazuli
|
Interrupt codes of ATmega328P. More...
Go to the source code of this file.
Macros | |
| #define | INT_RESET (0) |
| Code for interrupt: Reset, Entry point at boot. | |
| #define | INT_INT0 (1) |
| Code for interrupt: External interrupt request 0. | |
| #define | INT_INT1 (2) |
| Code for interrupt: External interrupt request 1. | |
| #define | INT_PCINT0 (3) |
| Code for interrupt: Pin change interrupt request 0. | |
| #define | INT_PCINT1 (4) |
| Code for interrupt: Pin change interrupt request 1. | |
| #define | INT_PCINT2 (5) |
| Code for interrupt: Pin change interrupt request 2. | |
| #define | INT_WDT (6) |
| Code for interrupt: Watchdog time-out interrupt. | |
| #define | INT_TIMER2COMPA (7) |
| Code for interrupt: Timer/counter2 compare match A. | |
| #define | INT_TIMER2COMPB (8) |
| Code for interrupt: Timer/counter2 compare match B. | |
| #define | INT_TIMER2OVF (9) |
| Code for interrupt: Timer/counter2 overflow. | |
| #define | INT_TIMER1CAPT (10) |
| Code for interrupt: Timer/counter1 capture event. | |
| #define | INT_TIMER1COMPA (11) |
| Code for interrupt: Timer/counter1 compare match A. | |
| #define | INT_TIMER1COMPB (12) |
| Code for interrupt: Timer/counter1 compare match B. | |
| #define | INT_TIMER1OVF (13) |
| Code for interrupt: Timer/counter1 overflow. | |
| #define | INT_TIMER0COMPA (14) |
| Code for interrupt: Timer/counter0 compare match A. | |
| #define | INT_TIMER0COMPB (15) |
| Code for interrupt: Timer/counter0 compare match B. | |
| #define | INT_TIMER0OVF (16) |
| Code for interrupt: Timer/counter0 overflow. | |
| #define | INT_SPISTC (17) |
| Code for interrupt: SPI serial transfer complete. | |
| #define | INT_USARTRX (18) |
| Code for interrupt: USART Rx complete. | |
| #define | INT_USARTUDRE (19) |
| Code for interrupt: USART data register empty. | |
| #define | INT_USARTTX (20) |
| Code for interrupt: USART Tx complete. | |
| #define | INT_ADC (21) |
| Code for interrupt: ADC conversion complete. | |
| #define | INT_EEREADY (22) |
| Code for interrupt: EEPROM ready. | |
| #define | INT_ANALOGCOMP (23) |
| Code for interrupt: Analog comparator. | |
| #define | INT_TWI (24) |
| Code for interrupt: 2-wire serial interface. | |
| #define | INT_SPMREADY (25) |
| Code for interrupt: Store program memory ready. | |
| #define | INT_LAST_ENTRY INT_SPMREADY |
| Alias for the last code used. | |
| #define | INT_TOTAL (INT_LAST_ENTRY + 1) |
| Total interrupt codes used. | |
Interrupt codes of ATmega328P.
This file describes the codes associated to each interrupt of the ATmega328P. We can't use a C enum here because these interrupt codes need to be manipulated in ASM code.
Definition in file interrupts.h.
| #define INT_RESET (0) |
Code for interrupt: Reset, Entry point at boot.
Definition at line 23 of file interrupts.h.
| #define INT_INT0 (1) |
Code for interrupt: External interrupt request 0.
Definition at line 28 of file interrupts.h.
| #define INT_INT1 (2) |
Code for interrupt: External interrupt request 1.
Definition at line 33 of file interrupts.h.
| #define INT_PCINT0 (3) |
Code for interrupt: Pin change interrupt request 0.
Definition at line 38 of file interrupts.h.
| #define INT_PCINT1 (4) |
Code for interrupt: Pin change interrupt request 1.
Definition at line 43 of file interrupts.h.
| #define INT_PCINT2 (5) |
Code for interrupt: Pin change interrupt request 2.
Definition at line 48 of file interrupts.h.
| #define INT_WDT (6) |
Code for interrupt: Watchdog time-out interrupt.
Definition at line 53 of file interrupts.h.
| #define INT_TIMER2COMPA (7) |
Code for interrupt: Timer/counter2 compare match A.
Definition at line 58 of file interrupts.h.
| #define INT_TIMER2COMPB (8) |
Code for interrupt: Timer/counter2 compare match B.
Definition at line 63 of file interrupts.h.
| #define INT_TIMER2OVF (9) |
Code for interrupt: Timer/counter2 overflow.
Definition at line 68 of file interrupts.h.
| #define INT_TIMER1CAPT (10) |
Code for interrupt: Timer/counter1 capture event.
Definition at line 73 of file interrupts.h.
| #define INT_TIMER1COMPA (11) |
Code for interrupt: Timer/counter1 compare match A.
Definition at line 78 of file interrupts.h.
| #define INT_TIMER1COMPB (12) |
Code for interrupt: Timer/counter1 compare match B.
Definition at line 83 of file interrupts.h.
| #define INT_TIMER1OVF (13) |
Code for interrupt: Timer/counter1 overflow.
Definition at line 88 of file interrupts.h.
| #define INT_TIMER0COMPA (14) |
Code for interrupt: Timer/counter0 compare match A.
Definition at line 93 of file interrupts.h.
| #define INT_TIMER0COMPB (15) |
Code for interrupt: Timer/counter0 compare match B.
Definition at line 98 of file interrupts.h.
| #define INT_TIMER0OVF (16) |
Code for interrupt: Timer/counter0 overflow.
Definition at line 103 of file interrupts.h.
| #define INT_SPISTC (17) |
Code for interrupt: SPI serial transfer complete.
Definition at line 108 of file interrupts.h.
| #define INT_USARTRX (18) |
Code for interrupt: USART Rx complete.
Definition at line 113 of file interrupts.h.
| #define INT_USARTUDRE (19) |
Code for interrupt: USART data register empty.
Definition at line 118 of file interrupts.h.
| #define INT_USARTTX (20) |
Code for interrupt: USART Tx complete.
Definition at line 123 of file interrupts.h.
| #define INT_ADC (21) |
Code for interrupt: ADC conversion complete.
Definition at line 128 of file interrupts.h.
| #define INT_EEREADY (22) |
Code for interrupt: EEPROM ready.
Definition at line 133 of file interrupts.h.
| #define INT_ANALOGCOMP (23) |
Code for interrupt: Analog comparator.
Definition at line 138 of file interrupts.h.
| #define INT_TWI (24) |
Code for interrupt: 2-wire serial interface.
Definition at line 143 of file interrupts.h.
| #define INT_SPMREADY (25) |
Code for interrupt: Store program memory ready.
Definition at line 148 of file interrupts.h.
| #define INT_LAST_ENTRY INT_SPMREADY |
Alias for the last code used.
Definition at line 153 of file interrupts.h.
| #define INT_TOTAL (INT_LAST_ENTRY + 1) |
Total interrupt codes used.
Definition at line 158 of file interrupts.h.