10
10-65
Ver.0.10
MULTIJUNCTION TIMERS
10.3 TOP (Output-related 16-bit Timer)
10.3.2 Outline of Each Mode of TOP
Each mode of TOP is outlined below. For each TOP channel, only one of the following modes can
be selected.
(1) Single-shot output mode
In single-shot output mode, the timer generates a pulse in width of (reload register set value + 1)
only once and then stops without performing any operation.
When after setting the reload register, the timer is enabled (by writing to the enable bit in software
or by external input), the content of the reload register is loaded into the counter synchronously
with the count clock, letting the counter start counting. The counter counts down clock pulses and
stops when it underflows after reaching the minimum count.
The F/F output waveform in single-shot output mode is inverted at startup and upon underflow,
generating a single-shot pulse waveform in width of (reload register set value + 1) only once.
Also, an interrupt can be generated when the counter underflows.
(2) Delayed single-shot output mode
In delayed single-shot output mode, the timer generates a pulse in width of (reload register set
value + 1) only once, with the output delayed by an amount of time equal to (counter set value +
1) and then stops without performing any operation.
When after setting the counter and reload register, the timer is enabled (by writing to the enable
bit in software or by external input), it starts counting down from the counter's set value
synchronously with the count clock. The first time the counter underflows, the reload register
value is loaded into the counter causing it to continue counting down, and the counter stops when
it underflows next time.
The F/F output waveform in delayed single-shot output mode is inverted when the counter
underflows first time and next, generating a single-shot pulse waveform in width of (reload
register set value + 1) only once, with the output delayed by an amount of time equal to (first set
value of counter + 1) . Also, an interrupt can be generated when the counter underflows first time
and next.
(3) Continuous output mode
In continuous output mode, the timer counts down clock pulses starting from the set value of the
counter and when the counter underflows, reloads it with the reload register value. Thereafter,
this operation is repeated each time the counter underflows, thus generating consecutive pulses
whose waveform is inverted in width of (reload register set value + 1).