ATA6020N ATMEL Corporation, ATA6020N Datasheet - Page 23

no-image

ATA6020N

Manufacturer Part Number
ATA6020N
Description
Low-current Microcontroller For Watchdog Function
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATA6020N
Manufacturer:
ATMEL
Quantity:
28
Part Number:
ATA6020N
Manufacturer:
ST
0
Part Number:
ATA6020N
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATA6020N-020-TKQY
Manufacturer:
ATMEL
Quantity:
230
Part Number:
ATA6020N-020-TKQY
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
5.2.1.1
5.2.1.2
5.2.2
4708D–4BMCU–09/05
Bi-directional Port 5
Port 2 Data Register (P2DAT)
Port 2 Control Register (P2CR)
Bit 3 = MSB, Bit 0 = LSB
Value: 1111b means all pins in input mode
Table 5-2.
This, and all other bi-directional ports include a bitwise-programmable Control Register (P5CR),
which allows individual programming of each port bit as input or output. It also opens up the pos-
sibility of reading the pin condition when in output mode. This is a useful feature for self testing
and for serial bus applications.
The port pins can also be used as external interrupt inputs (see
ure 5-4 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 then the high nibble (see sec-
tion
Code
3 2 1 0
x x x 1
x x x 0
x x 1 x
x x 0 x
x 1 x x
x 0 x x
1 x x x
0 x x x
P2DAT
P2CR
“Addressing Peripherals” on page
Bit 3
P2DAT3
Bit 3
P2CR3
Port 2 Control Register
24). The interrupts (INT1 and INT6) can be masked or independently configured
Bit 2
P2DAT2
Bit 2
P2CR2
Bit 1
P2DAT1
Bit 1
P2CR1
Function
BP20 in input mode
BP20 in output mode
BP21 in input mode
BP21 in output mode
BP22 in input mode
BP22 in output mode
BP23 in input mode
BP23 in output mode
20).
Bit 0
P2CR0
Bit 0
P2DAT0
Reset value: 1111b
Primary register address: ’2’hex
Reset value: 1111b
Auxiliary register address: ’2’hex
Figure 5-3 on page 24
ATA6020N
and
Fig-
23

Related parts for ATA6020N