A000046 Arduino, A000046 Datasheet - Page 69

MCU, MPU & DSP Development Tools Uno

A000046

Manufacturer Part Number
A000046
Description
MCU, MPU & DSP Development Tools Uno
Manufacturer
Arduino
Series
-r
Type
MCUr
Datasheets

Specifications of A000046

Processor To Be Evaluated
ATmega328
Interface Type
USB, I2C, SPI
Dimensions
2.7 in x 2.1 in
Operating Supply Voltage
5 V
Contents
Board
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
ATmega328
8161D–AVR–10/09
IVSEL. If IVSEL is not written, interrupts remain disabled for four cycles. The I-bit in the Status
Register is unaffected by the automatic disabling.
Note:
• 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 cleared by
hardware four cycles after it is written or when IVSEL is written. Setting the IVCE bit will disable
interrupts, as explained in the IVSEL description above. See Code Example below.
Assembly Code Example
C Code Example
Move_interrupts:
void Move_interrupts(void)
{
}
; Enable change of Interrupt Vectors
ldi r16, (1<<IVCE)
out MCUCR, r16
; Move interrupts to Boot Flash section
ldi r16, (1<<IVSEL)
out MCUCR, r16
ret
/* Enable change of Interrupt Vectors */
MCUCR = (1<<IVCE);
/* Move interrupts to Boot Flash section */
MCUCR = (1<<IVSEL);
If Interrupt Vectors are placed in the Boot Loader section and Boot Lock bit BLB02 is programmed,
interrupts are disabled while executing from the Application section. If Interrupt Vectors are placed
in the Application section and Boot Lock bit BLB12 is programed, interrupts are disabled while
executing from the Boot Loader section. Refer to the section
Write Self-Programming, ATmega88PA, ATmega168PA and ATmega328P” on page 277
details on Boot Lock bits.
ATmega48PA/88PA/168PA/328P
”Boot Loader Support – Read-While-
for
69

Related parts for A000046