English
Language : 

ATAR092-C_14 Datasheet, PDF (25/108 Pages) ATMEL Corporation – Up to 7 External/Internal Interrupt Sources
ATAR092-C/ATAR892-C
Figure 5-3. Bi-directional Port 2
I/O Bus
5.2.2.1
I/O Bus
(Data out)
DQ
P2DATy
S
Master reset
I/O Bus
D SQ
P2CRy
(Direction)
Port 2 Data Register (P2DAT)
(1)
(1)
(1) Mask options
Switched
pull-up
(1)
VDD
Static
(1) Pull-up
BP2y
VDD
(1)
(1) Static
Pull-down
Switched
pull-down
5.2.2.2
P2DAT
Bit 3
P2DAT3
Bit 2
P2DAT2
Bit 3 = MSB, Bit 0 = LSB
Bit 1
P2DAT1
Bit 0
P2DAT0
Primary register address: '2'hex
Reset value: 1111b
Port 2 Control Register (P2CR)
P2CR
Bit 3
P2CR3
Bit 2
P2CR2
Bit 1
P2CR1
Value 1111b means all pins in input mode
Bit 0
P2CR0
Auxiliary register address: '2'hex
Reset value: 1111b
Table 5-2.
Code
3210
xxx1
xxx0
xx1x
xx0x
x1xx
x0xx
1xxx
0xxx
Port 2 Control Register
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
25
4593D–4BMCU–05/06