| Electronic Components Datasheet Search |
|
ATTINY45 Datasheet(PDF) 49 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATTINY45 Datasheet(HTML) 49 Page - ATMEL Corporation |
|
49 / 222 page ![]() 49 2586J–AVR–12/06 ATtiny25/45/85 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 ATtiny25/45/85 is: Address Labels Code Comments 0x0000 rjmp RESET ; Reset Handler 0x0001 rjmp EXT_INT0 ; IRQ0 Handler 0x0002 rjmp PCINT0 ; PCINT0 Handler 0x0003 rjmp TIM1_COMPA ; Timer1 CompareA Handler 0x0004 rjmp TIM1_OVF ; Timer1 Overflow Handler 0x0005 rjmp TIM0_OVF ; Timer0 Overflow Handler 0x0006 rjmp EE_RDY ; EEPROM Ready Handler 0x0007 rjmp ANA_COMP ; Analog Comparator Handler 0x0008 rjmp ADC ; ADC Conversion Handler 0x0009 rjmp TIM1_COMPB ; Timer1 CompareB Handler 0x000A rjmp TIM0_COMPA ; 0x000B rjmp TIM0_COMPB ; 0x000C rjmp WDT ; 0x000D rjmp USI_START ; 0x000E rjmp USI_OVF ; 0x000F RESET: ldi r16, low(RAMEND); Main program start 0x0010 ldi r17, high(RAMEND); Tiny45/85 also has SPH 0x0011 out SPL, r16 ; Set Stack Pointer to top of RAM 0x0012 out SPH, r17 ; Tiny45/85 als has SPH 0x0013 sei ; Enable interrupts 0x0014 <instr> xxx ... ... ... ... |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |