
55
ATmega8515(L)
2512A–AVR–04/02
• Bit 0 – IVCE: Interrupt Vector Change Enable
The IVCE bit must be written to logic one to enable change of the IVSEL bit. IVCE is
clearedbyhardware four cycles after it iswritten orwhen IVSEL iswritten. Setting the
IVCE bit will disableinterrupts, as explained in the IVSEL description above. See Code
Example below.
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
CCode Example
void Move_interrupts(void)
{
/*
Enable change of interrupt vectors
*/
GICR = (1<<IVCE);
/* Move interrupts to boot flash section */
GICR = (1<<IVSEL);
}
Comentarios a estos manuales