12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ATmega32A</strong>11. InterruptsThis section describes the specifics of the interrupt handling as performed in <strong>ATmega32A</strong>. For ageneral explanation of the AVR interrupt handling, refer to “Reset and Interrupt Handling” onpage 13.11.1 Interrupt Vectors in <strong>ATmega32A</strong>Table 11-1.Vector No.Reset and Interrupt VectorsProgramAddress (2) Source Interrupt Definition1 $000 (1) RESET External Pin, Power-on Reset, Brown-out Reset,Watchdog Reset, and JTAG AVR Reset2 $002 INT0 External Interrupt Request 03 $004 INT1 External Interrupt Request 14 $006 INT2 External Interrupt Request 25 $008 TIMER2 COMP Timer/Counter2 Compare Match6 $00A TIMER2 OVF Timer/Counter2 Overflow7 $00C TIMER1 CAPT Timer/Counter1 Capture Event8 $00E TIMER1 COMPA Timer/Counter1 Compare Match A9 $010 TIMER1 COMPB Timer/Counter1 Compare Match B10 $012 TIMER1 OVF Timer/Counter1 Overflow11 $014 TIMER0 COMP Timer/Counter0 Compare Match12 $016 TIMER0 OVF Timer/Counter0 Overflow13 $018 SPI, STC Serial Transfer Complete14 $01A USART, RXC USART, Rx Complete15 $01C USART, UDRE USART Data Register Empty16 $01E USART, TXC USART, Tx Complete17 $020 ADC ADC Conversion Complete18 $022 EE_RDY EEPROM Ready19 $024 ANA_COMP Analog Comparator20 $026 TWI Two-wire Serial Interface21 $028 SPM_RDY Store Program Memory ReadyNotes: 1. When the BOOTRST fuse is programmed, the device will jump to the Boot Loader address atreset, see “Boot Loader Support – Read-While-Write Self-Programming” on page 252.2. When the IVSEL bit in GICR is set, interrupt vectors will be moved to the start of the BootFlash section. The address of each Interrupt Vector will then be the address in this table addedto the start address of the Boot Flash section.Table 11-2 shows Reset and Interrupt Vectors placement for the various combinations ofBOOTRST and IVSEL settings. If the program never enables an interrupt source, the InterruptVectors are not used, and regular program code can be placed at these locations. This is also8155C–AVR–02/1145

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!