English
Language : 

Z8FMC16100 Datasheet, PDF (64/402 Pages) Zilog, Inc. – Z8 Encore-R Motor Control Flash MCUs
Z8 Encore!® Motor Control Flash MCUs
Product Specification
42
BITS
FIELD
RESET
R/W
ADDR
In each of these three data direction subregisters, bits [7:0] control the direction of the
associated port pin. Port Alternate Function operation overrides the Data Direction Regis-
ter setting.
If the value of the bit is 0, the direction is output, and data in the Port A–C Output Data
registers is driven onto the port pin.
If the value of the bit is 1, the direction is input. The port pin is sampled, the value is writ-
ten into the Port A–C Input Data registers, and the output driver is tristated.
Table 18. Port A–C Data Direction Sub-Registers
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–C Address Register, accessible through the Port A-C Control Register
Bit
Position
[7:0]
Data
Direction
Value
(H)
0
1
Description
These bits control the direction of the associated port pin. Port Alternate Function
operation overrides the Data Direction register setting.
Output. Data in the Port A–C Output Data register is driven onto the port pin.
Input. The port pin is sampled and the value written into the Port A–C Input Data
Register. The output driver is tristated
Port A–B Alternate Function 0 Subregisters
The Port A–B Alternate Function subregisters, shown in Table 19, are accessed through
the Port A–B Control registers by writing 02h to the Port A–B Address registers. The Port
A–B Alternate Function subregisters select the alternate functions for the selected pins.
Refer to the GPIO Alternate Functions section on page 36 to determine the alternate func-
tion associated with each port pin.
Caution: Do not enable alternate function for GPIO port pins which do not have an associated al-
ternate function. Failure to follow this guideline may result in unpredictable operation.
General-Purpose I/O
PRELIMINARY
PS024604-1005