beautypg.com

Atmega162/v – Rainbow Electronics ATmega162V User Manual

Page 61

background image

61

ATmega162/V

2513E–AVR–09/03

IVCE bit will disable interrupts, as explained in the IVSEL description above. See Code
Example below.

Assembly Code Example

Move_interrupts:

; Enable change of Interrupt Vectors

ldi r16, (1<

out GICR, r16

; Move interrupts to Boot Flash section

ldi r16, (1<

out GICR, r16

ret

C Code Example

void Move_interrupts(void)

{

/* Enable change of Interrupt Vectors */

GICR = (1<

/* Move interrupts to Boot Flash section */

GICR = (1<

}