![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_344.png)
320
CHAPTER 12 MULTI-FUNCTION TIMER
MB90560 series
12.3.5 Registers of Waveform Generator
12.3.5.2 8-bit Timer Control Register (DTCR0/1/2)
8-bit timer control registers (DTCR0/1/2) are used to control the operation mode,
interrupt request enable, interrupt request flag, PPG output enable, GATE signal enable
and output level polarity for the waveform generator.
I
8-bit timer control register (DTCR0/1/2)
Figure 12.3.5.2-1 8-bit Timer Control Register (DTCR0/1/2)
Address
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Initial value
ch0: 000051
H
ch1: 000053
H
ch2: 000055
H
DMOD
GTEN
PGEN
TMIF
TMIE
TMD2
TMD1
TMD0
00000000
B
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
TMD2 TMD1 TMD0
Operation mode bit
0
0
0
Waveform generator is stopped.
8-bit timer can be used as reload timer.
0
0
1
PPG timer output pulse while RT signal is “H”.
The PPG timer that outputs pulse must be set
in advance in the waveform control register.
0
1
0
The rising edge of each RT signal will trigger 8-
bit timer to start. PPG will run until the 8-bit
timer stopped. (Timer mode)
1
0
0
Generate non-overlap signal by RT signal.
(Dead-time timer mode)
1
1
1
RT signal acts as a GATE signal for PPG
timers. PPG generates non-overlap signal.
(Dead-time timer mode)
TMIE
Interrupt request enable bit
0
Disable an interrupt when the 8-bit timer underflow
1
Enable an interrupt when the 8-bit timer underflow
TMIF
Interrupt request flag bit
Read
Write
0
No counter underflow detected
Clear this bit
1
Counter underflow detected
No effect
PGEN
PPG output enable bit
0
Disable PPG output
1
Enable PPG output
GTEN
GATE signal enable bit
0
Disable GATE signal output (Asynchronous mode)
1
Enable GATE signal output (Synchronous mode)
DMOD
Output polarity control bit
0
Positive level output
1
Negative level output
R/W : Read and Write
: Initial value