Rainbow-electronics ATtiny43U Manuale Utente Pagina 57

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 182
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 56
57
8048B–AVR–03/09
10. Interrupts
This section describes the specifics of the interrupt handling as performed in ATtiny43U. For a
general explanation of the AVR interrupt handling, see “Reset and Interrupt Handling” on page
13.
10.1 Interrupt Vectors
If the program never enables an interrupt source, the Interrupt Vectors are not used, and regular
program code can be placed at these locations. The most typical and general program setup for
the Reset and Interrupt Vector Addresses in ATtiny43U is:
Address Labels Code Comments
0x0000 rjmp RESET ; Reset Handler
0x0001 rjmp INT0 ; IRQ0 Handler
0x0002 rjmp PCINT0 ; PCINT0 Handler
0x0003 rjmp PCINT1 ; PCINT1 Handler
0x0004 rjmp WDT ; Watchdog Interrupt Handler
0x0005 rjmp TIM1_COMPA ; Timer1 Compare A Handler
0x0006 rjmp TIM1_COMPB ; Timer1 Compare B Handler
0x0007 rjmp TIM1_OVF ; Timer1 Overflow Handler
Table 10-1. Reset and Interrupt Vectors
Vector No. Program Address Source Interrupt Definition
1 0x0000 RESET
External Pin, Power-on Reset,
Brown-out Reset, Watchdog Reset
2 0x0001 INT0 External Interrupt Request 0
3 0x0002 PCINT0 Pin Change Interrupt Request 0
4 0x0003 PCINT1 Pin Change Interrupt Request 1
5 0x0004 WDT Watchdog Time-out
6 0x0005 TIMER1_COMPA Timer/Counter1 Compare Match A
7 0x0006 TIMER1_COMPB Timer/Counter1 Compare Match B
8 0x0007 TIMER1_OVF Timer/Counter1 Overflow
9 0x0008 TIMER0_COMPA Timer/Counter0 Compare Match A
10 0x0009 TIMER0_COMPB Timer/Counter0 Compare Match B
11 0x000A TIMER0_OVF Timer/Counter0 Overflow
12 0x000B ANA_COMP Analog Comparator
13 0x000C ADC ADC Conversion Complete
14 0x000D EE_RDY EEPROM Ready
15 0x000E USI_START USI Start
16 0x000F USI_OVF USI Overflow
Vedere la pagina 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 181 182

Commenti su questo manuale

Nessun commento