z8f0813 ZiLOG Semiconductor, z8f0813 Datasheet - Page 55

no-image

z8f0813

Manufacturer Part Number
z8f0813
Description
High-performance 8-bit Microcontrollers
Manufacturer
ZiLOG Semiconductor
Datasheet
Table 19. Port A–C Control Registers (PxCTL)
Table 20. Port A–C Data Direction Sub-Registers (PxDD)
BITS
FIELD
RESET
R/W
ADDR
BITS
FIELD
RESET
R/W
ADDR
PS024314-0308
Port A–C Data Direction Sub-Registers
Port A–C Alternate Function Sub-Registers
DD7
R/W
R/W
If 01H in Port A–C Address Register, accessible through the Port A–C Control Register
7
7
1
PCTL[7:0]—Port Control
The Port Control register provides access to all sub-registers that configure the GPIO Port
operation.
The Port A–C Data Direction sub-register is accessed through the Port A–C Control
register by writing 01H to the Port A–C Address register
DD[7:0]—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–C Output Data register is driven onto the port pin.
1 = Input. The port pin is sampled and the value written into the Port A–C Input Data
Register. The output driver is tristated.
The Port A–C Alternate Function sub-register
Control register by writing
Function sub-registers enable the alternate function selection on pins. If disabled, pins
functions as GPIO. If enabled, select one of four alternate functions using alternate
function set subregisters 1 and 2 as described in the
Sub-Registers
R/W
DD6
R/W
6
6
1
on page 48 and
DD5
R/W
R/W
5
5
1
02H
Port A–C Alternate Function Set 2 Sub-Registers
to the Port A–C Address register. The Port A–C Alternate
FD1H, FD5H, FD9H
R/W
DD4
R/W
4
4
1
PCTL
00H
DD3
(Table
R/W
R/W
3
3
1
Port A–C Alternate Function Set 1
21) is accessed through the Port A–C
Z8 Encore! XP
(Table
R/W
DD2
R/W
2
2
1
General-Purpose Input/Output
Product Specification
20).
DD1
R/W
R/W
1
1
1
®
F0823 Series
on
R/W
DD0
R/W
0
0
1
45

Related parts for z8f0813