|
Z8F0830HH020SG Datasheet, PDF (59/257 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers | |||
|
◁ |
Z8 Encore!® F0830 Series
Product Specification
41
Port AâD Control Registers
The Port AâD Control registers, shown in Table 20, set the GPIO port operation. The
value in the corresponding Port AâD Address Register determines which subregister is
read from or written to by a Port AâD Control Register transaction.
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
[7:0]ï
PCTL
Description
Port Control
The Port Control Register provides access to all subregisters that configure the GPIO port
operation.
Port AâD Data Direction Subregisters
The Port AâD Data Direction Subregister, shown in Table 21, is accessed through the Port
AâD Control Register by writing 01H to the Port AâD Address Register.
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).
PS025113-1212
GPIO Control Register Definitions
|
▷ |