English
Language : 

Z8F1680SH020SG Datasheet, PDF (146/412 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore! XP® F1680 Series
Product Specification
121
Data
Bus
Block
Control
System Clock
Timer
Input
(TIN)
A
Timer Channel B
Inputs
(T4CHA – T4CHD)
C
D
Gate
Input
Timer and Channel
Control
C
16-Bit
O
Reload Register
M
P
A
R
16-Bit Counter
E
with Prescaler
C
O
M
Four16-Bit PWM
P
Capture Compare
A
Channels
R
E
Interrupt,
PWM,
and A
Timer B
Output
Control C
D
Timer
Interrupt
Timer Channel
Outputs
(T4CHA – T4CHD)
Figure 14. Multi-Channel Timer Block Diagram
10.2. Timer Operation
This section discusses the key features of the Multi-Channel Timer, including its counter,
clock source, prescaler and counting modes.
10.2.1. Multi-Channel Timer Counter
The Multi-Channel Timer is based around a 16-bit up/down counter. The counter,
depending on the TIMER mode counts up or down with each rising edge of the clock
signal. Timer Counter registers MCTH and MCTL can be read/written by software.
10.2.2. Clock Source
The Multi-Channel Timer clock source can come from either the system clock or the
alternate function TIN pin when the system clock is the clock source; the alternate function
TIN input pin can perform a clock gating function. The TCLKS field in the MCTCTL0
Register selects the timer clock source. When using the TIN pin, the associated GPIO pin,
T4CH, must be configured as an input. The TIN frequency cannot exceed one-fourth the
system clock frequency.
PS025015-1212
PRELIMINARY
Multi-Channel Timer