ATAM894X-TNQY ATMEL [ATMEL Corporation], ATAM894X-TNQY Datasheet - Page 27

no-image

ATAM894X-TNQY

Manufacturer Part Number
ATAM894X-TNQY
Description
8k-flash Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
6.2.3
Figure 6-5.
4679D–4BMCU–05/05
Bi-directional Port 5
BP52
BP53
Port 5 External Interrupts
Bidir. Port
Bidir. Port
IN_Enable
IN_Enable
Data in
Data in
As all other bi-directional ports, this port includes a bit-wise-programmable Control Register
(P5CR), which allows the individual programming of each port bit as input or output. It also
opens up the possibility of reading the pin condition when in output mode. This is a useful fea-
ture for self-testing and for serial bus applications.
The port pins can also be used as external interrupt inputs (see
ure 6-5 on page
to trigger on either edge. The interrupt configuration and port direction is controlled by the Port 5
Control Register (P5CR). An additional low resistance pull-up/-down transistor mask option pro-
vides an internal bus pull-up for serial bus applications.
The Port 5 Data Register (P5DAT) is I/O mapped to the primary address register of address '5'h
and the Port 5 Control Register (P5CR) to the corresponding auxiliary register. The P5CR is a
byte-wide register and is configured by writing first the low nibble and then the high nibble (see
section
Figure 6-4.
P5CR:
I/O-bus
”Addressing Peripherals” on page
P53M2
I/O Bus
I/O Bus
Master reset
IN enable
Decoder
Bi-directional Port 5
27). The interrupts (INT1 and INT6) can be masked or independently configured
P53M1
(Data out)
P5DATy
D
P52M2
S
Decoder
Q
INT1
P52M1
P51M2
Decoder
INT6
(1)
Flash options
P51M1
22).
P50M2
V
Decoder
DD
P50M1
(1)
(1)
I/O-bus
Switched
pull-up
(1)
(1)
pull-down
Switched
Figure 6-4 on page 27
Data in
IN_Enable
Data in
IN_Enable
V
Bidir. Port
Bidir. Port
DD
(1)
(1)
Static
pull-up
BP5y
Static
pull-down
V
DD
ATAM894
1376
BP5
BP5
and
Fig-
27

Related parts for ATAM894X-TNQY