English
Language : 

Z8FMC16100 Datasheet, PDF (115/402 Pages) Zilog, Inc. – Z8 Encore-R Motor Control Flash MCUs
Z8FMC16100 Series Flash MCU
Product Specification
93
Timer Operating Modes
The timers can be configured to operate in the following eleven modes, each of which is
described in this section:
• ONE-SHOT mode
• TRIGGERED ONE-SHOT mode
• CONTINUOUS mode
• COUNTER mode
• COMPARATOR COUNTER mode
• PWM SINGLE OUTPUT mode
• PWM DUAL OUTPUT mode
• CAPTURE RESTART mode
• CAPTURE COMPARE mode
• COMPARE mode
• GATED mode
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. After reaching
this 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.
If the Timer Output alternate function is enabled, the Timer Output pin changes state for
one system clock cycle (from Low to High, then back to Low if TPOL = 0) at timer reload.
If the user chooses, the Timer Output can undergo a permanent state change upon One-
Shot time-out, as follows:
1. Set the TPOL bit in the Timer Control 1 Register to the start value before beginning
ONE-SHOT mode.
2. After starting the timer, set TPOL to the opposite value.
The steps for configuring a timer for ONE-SHOT mode and initiating a count are as fol-
lows:
1. Write to the Timer Control registers to:
a. Disable the timer.
b. Configure the timer for ONE-SHOT mode.
c. Set the prescale value.
PS024604-1005
PRELIMINARY
Timer Operating Modes