Rainbow-electronics ATtiny861_V Bedienungsanleitung Seite 48

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 236
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 47
48
2588B–AVR–11/06
ATtiny261/461/861
10. Interrupts
This section describes the specifics of the interrupt handling as performed in ATtiny261/461/861.
For a general explanation of the AVR interrupt handling, refer to Reset and Interrupt Handling”
on page 13.
10.1 Interrupt Vectors in ATtiny261/461/861
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 ATtiny261/461/861 is:
Address Labels Code Comments
0x0000 rjmp RESET ; Reset Handler
0x0001 rjmp EXT_INT0 ; IRQ0 Handler
0x0002 rjmp PCINT ; PCINT Handler
0x0003 rjmp TIM1_COMPA ; Timer1 CompareA Handler
0x0004 rjmp TIM1_COMPB ; Timer1 CompareB Handler
0x0005 rjmp TIM1_OVF ; Timer1 Overflow Handler
0x0006 rjmp TIM0_OVF ; Timer0 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 PCINT Pin Change Interrupt Request
4 0x0003 TIMER1_COMPA Timer/Counter1 Compare Match A
5 0x0004 TIMER1_COMPB Timer/Counter1 Compare Match B
6 0x0005 TIMER1_OVF Timer/Counter1 Overflow
7 0x0006 TIMER0_OVF Timer/Counter0 Overflow
8 0x0007 USI_START USI Start
9 0x0008 USI_OVF USI Overflow
10 0x0009 EE_RDY EEPROM Ready
11 0x000A ANA_COMP Analog Comparator
12 0x000B ADC ADC Conversion Complete
13 0x000C WDT Watchdog Time-out
14 0x000D INT1 External Interrupt Request 1
15 0x000E TIMER0_COMPA Timer/Counter0 Compare Match A
16 0x000F TIMER0_COMPB Timer/Counter0 Compare Match B
17 0x0010 TIMER0_CAPT Timer/Counter1 Capture Event
18 0x0011 TIMER1_COMPD Timer/Counter1 Compare Match D
19 0x0012 FAULT_PROTECTION Timer/Counter1 Fault Protection
Seitenansicht 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 235 236

Kommentare zu diesen Handbüchern

Keine Kommentare