English
Language : 

Z8F0113HJ005EG Datasheet, PDF (49/245 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore! XP® F0823 Series
Product Specification
34
Architecture
Figure 7 displays a simplified block diagram of a GPIO port pin. In this figure, the ability
to accommodate alternate functions and variable port current drive strength is not dis-
played.
Port Input
Data Register
QD
Schmitt-Trigger
QD
Port Output
Data Register
DATA
Bus
DQ
System
Clock
System
Clock
Port Output Control
VDD
Port
Pin
Port Data Direction
Figure 7. GPIO Port Pin Block Diagram
GND
GPIO Alternate Functions
Many of the GPIO port pins are used for general-purpose I/O and access to on-chip
peripheral functions such as the timers and serial communication devices. The port A–D
Alternate Function subregisters configure these pins for either GPIO or alternate function
operation. When a pin is configured for alternate function, control of the port pin direction
(input/output) is passed from the Port A–D Data Direction registers to the alternate func-
tion assigned to this pin. Tables 16 and 17 list the alternate functions possible with each
port pin for 8-pin and non-8-pin parts, respectively. The alternate function associated at a
pin is defined through Alternate Function Sets subregisters AFS1 and AFS2.
The crystal oscillator functionality is not controlled by the GPIO block. When the crystal
oscillator is enabled in the oscillator control block, the GPIO functionality of PA0 and PA1
is overridden. In that case, those pins function as input and output for the crystal oscillator.
PS024315-1011
PRELIMINARY
Architecture