CHAPTER 14 MULTI-FUNCTIONAL TIMER
14.6
Operation of Multi-functional Timer
This section describes the operation of the multi-functional timer.
■ Operation of Multi-functional Timer
●
16-bit free-run timer
The 16-bit free-run timer starts counting up from value set in timer data register (TCDT) after a reset has
been completed. The counter value is used as the reference time for 16-bit output compare and 16-bit input
capture.
●
16-bit output compare
The 16-bit output compare is used to compare the value set in the specified output compare register with
the value of the 16-bit free-run timer. If a match is detected, the interrupt flag is set and the output level is
inverted.
●
16-bit input capture
The 16-bit input capture is used to detect a specified valid edge. If a valid edge is detected, the interrupt
flag is set and the value of 16-bit free-run timer is fetched and stored into the input capture data register.
●
Waveform generator
Waveform generator can produce various waveform such as dead-time, by using the real-time outputs (RT0
to RT5), 16-bit PPG timer 0 and 16-bit timers.
324