50
ATmega8535(L)
2502K–AVR–10/06
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);
}
Summary of Contents for ATmega8535
Page 314: ...314 ATmega8535 L 2502K AVR 10 06 ...
Page 320: ...vi ATmega8535 L 2502K AVR 10 06 ...