English
Language : 

ATMEGA16A_1 Datasheet, PDF (48/352 Pages) ATMEL Corporation – 8-bit Microcontroller with 16K Bytes In-System Programmable Flash
.
Assembly Code Example
Move_interrupts:
; Enable change of interrupt vectors
ldi r16, (1<<IVCE)
out GICR, r16
; Move interrupts to boot Flash section
ldi r16, (1<<IVSEL)
out GICR, r16
ret
C Code Example
void Move_interrupts(void)
{
/* Enable change of interrupt vectors */
GICR = (1<<IVCE);
/* Move interrupts to boot Flash section */
GICR = (1<<IVSEL);
}
48 ATmega16A
8154B–AVR–07/09