English
Language : 

Z8F0113HJ005EG Datasheet, PDF (50/245 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore! XP® F0823 Series
Product Specification
35
PA0 and PA6 contain two different timer functions, a timer input and a complementary timer
output. Both of these functions require the same GPIO configuration, the selection between
the two is based on the timer mode. For more details, see the Timers chapter on page 69.
Caution: For pins with multiple alternate functions, Zilog recommends writing to the AFS1 and
AFS2 subregisters before enabling the alternate function via the AF Subregister. This
prevents spurious transitions through unwanted alternate function modes.
Table 16. Port Alternate Function Mapping (8-Pin Parts)
Port
Pin Mnemonic
Alternate Function
Description
Alternate
Function
Alternate
Select
Function Select Register
Register AFS1 AFS2
Port A PA0 T0IN
Timer 0 Input
AFS1[0]: 0
AFS2[0]: 0
Reserved
AFS1[0]: 0
AFS2[0]: 1
Reserved
AFS1[0]: 1
AFS2[0]: 0
T0OUT
Timer 0 Output Complement AFS1[0]: 1
AFS2[0]: 1
PA1 T0OUT
Timer 0 Output
AFS1[1]: 0
AFS2[1]: 0
Reserved
AFS1[1]: 0
AFS2[1]: 1
CLKIN
External Clock Input
AFS1[1]: 1
AFS2[1]: 0
Analog Functions* ADC Analog Input/VREF
PA2 DE0
UART 0 Driver Enable
AFS1[1]: 1
AFS1[2]: 0
AFS2[1]: 1
AFS2[2]: 0
RESET
External Reset
AFS1[2]: 0
AFS2[2]: 1
T1OUT
Timer 1 Output
AFS1[2]: 1
AFS2[2]: 0
Reserved
AFS1[2]: 1
AFS2[2]: 1
PA3 CTS0
UART 0 Clear to Send
AFS1[3]: 0
AFS2[3]: 0
COUT
Comparator Output
AFS1[3]: 0
AFS2[3]: 1
T1IN
Timer 1 Input
AFS1[3]: 1
AFS2[3]: 0
Analog Functions* ADC Analog Input
AFS1[3]: 1
AFS2[3]: 1
PA4 RXD0
UART 0 Receive Data
AFS1[4]: 0
AFS2[4]: 0
Reserved
AFS1[4]: 0
AFS2[4]: 1
Reserved
AFS1[4]: 1
AFS2[4]: 0
Analog Functions* ADC/Comparator Input (N)
AFS1[4]: 1
AFS2[4]: 1
PA5 TXD0
UART 0 Transmit Data
AFS1[5]: 0
AFS2[5]: 0
T1OUT
Timer 1 Output Complement AFS1[5]: 0
AFS2[5]: 1
Reserved
AFS1[5]: 1
AFS2[5]: 0
Analog Functions* ADC/Comparator Input (P)
AFS1[5]: 1
AFS2[5]: 1
Note: *Analog Functions include ADC inputs, ADC reference and comparator inputs. Also, alternate function selection
as described in the Port A–C Alternate Function Subregisters section on page 43 must be enabled.
PS024315-1011
PRELIMINARY
GPIO Alternate Functions