Z8 Encore!® Motor Control Flash MCUs
Product Specification
92
Timer Block
Data
Bus
Timer Control
Block
Control
16-Bit
Reload Register
Timer
Interrupt,
PWM, and
Timer Output
Control
Interrupt
TOUT
TOUT
System
Clock
16-Bit Counter
with Prescaler
Timer
Input
Gate Input
16-Bit
PWM/Compare
Capture Input
Figure 10. Timer Block Diagram
Operation
The general-purpose timer is a 16-bit up-counter. In normal operation, the timer is initial-
ized to 0001h. After it is enabled, the timer counts up to the value contained in the Reload
High and Low Byte registers, then resets to 0001h. The counter either halts or continues,
depending on its current mode of operation.
Minimum time-out delay (1 system clock in duration) is set by loading the value 0001h
into the Timer Reload High and Low Byte registers and setting the prescale value to 1.
Maximum time-out delay (216 x 27 system clocks) is set by loading the value 0000hinto
the Timer Reload High and Low Byte registers and setting the prescale value to 128.
When the timer reaches FFFFh, the timer rolls over to 0000h.
If the reload register is set to a value less than the current counter value, the counter con-
tinues counting until reaching FFFFh, rolls over to 0000h, and continues counting until
reaching the reload value, then resets to 0001h.
General-Purpose Timer
P R E L I M I N A R Y
PS024604-1005