|
Z8F042ASJ020EG2156 Datasheet, PDF (62/280 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers | |||
|
◁ |
Z8 Encore! XP® F082A Series
Product Specification
46
Port AâD Control Registers
The Port AâD Control registers set the GPIO port operation. The value in the correspond-
ing Port AâD Address Register determines which subregister is read from or written to by
a Port AâD Control Register transaction; see Table 20.
Table 20. Port AâD Control Registers (PxCTL)
Bit
7
6
5
4
3
2
1
0
Field
PCTL
RESET
00H
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Address
FD1H, FD5H, FD9H, FDDH
Bit
Description
[7:0]ï
PCTLx
Port Control
The Port Control Register provides access to all subregisters that configure the GPIO port
operation.
Note: x indicates the specific GPIO port pin number (7â0).
Port AâD Data Direction Subregisters
The Port AâD Data Direction subregister is accessed through the Port AâD Control Regis-
ter by writing 01H to the Port AâD Address Register; see Table 21.
Table 21. Port AâD Data Direction Subregisters (PxDD)
Bit
Field
RESET
R/W
Address
7
6
5
4
3
2
1
0
DD7
DD6
DD5
DD4
DD3
DD2
DD1
DD0
1
1
1
1
1
1
1
1
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
If 01H in Port AâD Address Register, accessible through the Port AâD Control Register
Bit
Description
[7:0]ï
DDx
Data Direction
These bits control the direction of the associated port pin. Port Alternate Function operation
overrides the Data Direction Register setting.
0 = Output. Data in the Port AâD Output Data Register is driven onto the port pin.
1 = Input. The port pin is sampled and the value written into the Port AâD Input Data Register.
The output driver is tristated.
Note: x indicates the specific GPIO port pin number (7â0).
PS022828-0413
PRELIMINARY
GPIO Control Register Definitions
|
▷ |