English
Language : 

Z8F082ASH020SC Datasheet, PDF (77/244 Pages) Zilog, Inc. – Z8 Encore XP-R F08xA Series with eXtended Peripherals
Z8 Encore! XP® F08xA Series
Product Specification
59
Data
Bus
Block
Control
System
Clock
Timer
Input
Timer
Control
Timer Block
Gate
Input
Capture
Input
16-Bit
Reload Register
16-Bit Counter
with Prescaler
16-Bit
PWM/Compare
Interrupt,
PWM,
and
Timer Output
Control
Figure 8.Timer Block Diagram
Timer
Interrupt
Timer
Output
Timer
Output
Complement
Operation
The timers are 16-bit up-counters. Minimum time-out delay 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 is set by loading the value 0000H into the Timer Reload
High and Low Byte registers and setting the prescale value to 128. If the Timer reaches
FFFFH, the timer rolls over to 0000H and continues counting.
Timer Operating Modes
The timers can be configured to operate in the following modes:
ONE-SHOT Mode
In ONE-SHOT mode, the timer counts up to the 16-bit Reload value stored in the Timer
Reload High and Low Byte registers. The timer input is the system clock. Upon reaching
the Reload value, the timer generates an interrupt and the count value in the Timer High
and Low Byte registers is reset to 0001H. The timer is automatically disabled and stops
counting.
Also, if the Timer Output alternate function is enabled, the Timer Output pin changes state
for one system clock cycle (from Low to High or from High to Low) upon timer Reload. If
PS024705-0405
PRELIMINARY
Timers