Datasheet
51
ATtiny828 [DATASHEET]
8371A–AVR–08/12
Note: See “Code Examples” on page 7.
The following is a program example for the case where:
z The BOOTRST fuse is programmed
z Boot section size set to 2K bytes
z The IVSEL bit in MCUCR is set before any interrupts are enabled
9.2 External Interrupts
External Interrupts are triggered by the INT0 and INT1 pins, or by any of the PCINTn pins. Note that, if enabled, the
interrupts will trigger even if the INTn or PCINTn pins are configured as outputs. This feature provides a way of
generating software interrupts.
Assembly Code Example
.org 0x0001 ; Set address of next statement
rjmp INT0_ISR ; Address 0x0001
rjmp INT1_ISR ; Address 0x0002
...
rjmp SPM_RDY_ISR ; Address 0x0018
rjmp RESERVED ; Address 0x0019
.org 0x0C00 ; Set address of next statement
RESET: ; Main program start
<instr> ; Address 0x0C00
...
Assembly Code Example
.org 0x0C00 ; Set address of next statement
rjmp RESET ; Address 0x0C00
rjmp INT0_ISR ; Address 0x0C01
rjmp INT1_ISR ; Address 0x0C02
...
rjmp SPM_RDY_ISR ; Address 0x0C18
rjmp RESERVED ; Address 0x0C19
RESET: ; Main program start
<instr> ; Address 0x0C1A
...