
293
12.3 Multifunctional Timer Registers
Table 12.3-10 Functions of Bits for 8-Bit Timer Control Registers (DTCR0 to DTCR2)
Bit name
Function
bit15
DMOD:
Waveform output
polarity setting bit
This bit is used to set the waveform output polarity when the 8-bit timer is run
as a dead-time timer.
When the 8-bit timer is not run as a dead-time timer (TMD2="0"), the DMOD
bit setting does not affect operation.
bit14
GTEN:
GATE signal output
setting bit
This bit is used to set the GATE signal output for PPG timer operation.
bit13
PGEN:
Pulse output enable
bit
This bit enables pulse output of the PPG timer to the RT0 pin.
bit12
TMIF:
8-bit timer interrupt
request flag bit
This bit is a flag that requests an interrupt.
If an underflow of the counter value of the 8-bit timer occurs, this bit is set to
"1".
When this bit is set to "1" while the 8-bit timer interrupt enable bit (TMIE) is
"1", an interrupt request is output.
If this bit is "0", an interrupt request is cleared.
If this bit is "1", operation is not affected.
A read-modify-write instruction always reads "0" from this bit.
bit11
TMIE:
8-bit timer interrupt
enable bit
This bit is used to start the 8-bit timer and to enable an interrupt request.
If "1" is set, the operation of the 8-bit timer is started. When the 8-bit timer
interrupt request flag bit (TMIF) is set to "1", an interrupt request is output.
Note:
The 8-bit timer can be used as a reload timer only if "000B" is set to bit10
to bit8: TMD2 to TMD0.
bit10
bit9
bit8
TMD2, TMD1, TMD0:
Operation mode
setting bit
These bits are used to set the operation mode of the waveform generation
block.
Note:
Settings other than those described here may lead to malfunctioning.
Never make any other settings.
To set "111B", set 8-bit PPG mode as the operation mode of the PPG
timer (PPGC: MD01, MD00="00B").