Z8F160x Zilog, Z8F160x Datasheet - Page 57

no-image

Z8F160x

Manufacturer Part Number
Z8F160x
Description
Z8 Encore / Microcontrollers with Flash Memory and 10 Bit A/D Converter
Manufacturer
Zilog
Datasheet
Table 15. Port A-H Data Direction Sub-Registers
Table 16. Port A-H Alternate Function Sub-Registers
PS017610-0404
RESET
RESET
FIELD
FIELD
ADDR
ADDR
BITS
BITS
R/W
R/W
Caution:
DD7
R/W
R/W
AF7
7
1
7
0
Port A-H Data Direction Sub-Registers
The Port A-H Data Direction sub-register is accessed through the Port A-H Control regis-
ter by writing 01H to the Port A-H Address register (Table 15).
DD[7:0]—Data Direction
These bits control the direction of the associated port pin. Port Alternate Function opera-
tion overrides the Data Direction register setting.
0 = Output. Data in the Port A-H Output Data register is driven onto the port pin.
1 = Input. The port pin is sampled and the value written into the Port A-H Input Data Reg-
ister. The output driver is tri-stated.
Port A-H Alternate Function Sub-Registers
The Port A-H Alternate Function sub-register (Table 16) is accessed through the Port A-H
Control register by writing
Function sub-registers select the alternate functions for the selected pins. Refer to the
GPIO Alternate Functions section to determine the alternate function associated with
each port pin.
If 01H in Port A-H Address Register, accessible via Port A-H Control Register
If 02H in Port A-H Address Register, accessible via Port A-H Control Register
Do not enable alternate function for GPIO port pins which do not have an
associated alternate function. Failure to follow this guideline may result in
unpredictable operation.
DD6
R/W
AF6
R/W
6
1
6
0
DD5
R/W
R/W
AF5
5
1
5
0
02H
to the Port A-H Address register. The Port A-H Alternate
DD4
R/W
R/W
AF4
4
4
1
0
Z8F640x/Z8F480x/Z8F320x/Z8F240x/Z8F160x
DD3
R/W
R/W
AF3
3
1
3
0
DD2
R/W
R/W
AF2
2
2
1
0
General-Purpose I/O
DD1
R/W
R/W
AF1
1
1
1
0
Z8 Encore!
DD0
R/W
R/W
AF0
0
0
1
0
®
39

Related parts for Z8F160x