ATA6602-EK Atmel, ATA6602-EK Datasheet - Page 86

no-image

ATA6602-EK

Manufacturer Part Number
ATA6602-EK
Description
Manufacturer
Atmel
Datasheet

Specifications of ATA6602-EK

Lead Free Status / Rohs Status
Supplier Unconfirmed
4.10
4.10.1
86
I/O-Ports
ATA6602/ATA6603
Introduction
All AVR ports have true Read-Modify-Write functionality when used as general digital I/O ports.
This means that the direction of one port pin can be changed without unintentionally changing
the direction of any other pin with the SBI and CBI instructions. The same applies when chang-
ing drive value (if configured as output) or enabling/disabling of pull-up resistors (if configured as
input). Each output buffer has symmetrical drive characteristics with both high sink and source
capability. The pin driver is strong enough to drive LED displays directly. All port pins have indi-
vidually selectable pull-up resistors with a supply-voltage invariant resistance. All I/O pins have
protection diodes to both V
“Electrical Characteristics” on page 318
Assembly Code Example
C Code Example
• 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.
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);
CC
and Ground as indicated in
for a complete list of parameters.
Figure 4-22 on page
4921E–AUTO–09/09
87. Refer to