![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F1235GK-GAJ-AX_datasheet_99860/UPD78F1235GK-GAJ-AX_451.png)
CHAPTER 7 INVERTER CONTROL FUNCTIONS
User’s Manual U19678EJ1V1UD
449
Figure 7-59. Operation Procedure When A/D Conversion Trigger Output Function (Type 2) Is Used (1/2)
Software Operation
Hardware Status
Power-off status
(Clock supply is stopped and writing to each register is
disabled.)
Sets the TAU0EN and TAUOPEN bits of the PER2
register to 1.
Power-on status. Each channel stops operating.
(Clock supply is started and writing to each register is
enabled.)
TAUS
default
setting
Sets the TPS0 register.
Determines clock frequencies of CK00 and CK01.
Sets the TMRn and TMRm registers of channels to be
used (determines operation mode of channels).
An interval (period) value is set to the TDRn register of
the master channel, and an interrupt width is set to the
TDRm register of the slave channel.
Channel stops operating.
(Clock is supplied and some power is consumed.)
The TOn pin goes into Hi-Z output states.
Sets the master channel.
Sets the TOMn bit of the TOM0 register to 0 (master
channel output mode).
Sets the TDEn bit of the TDE0 register to 0 (dead time
control enable).
Channel
default
setting
Sets the TOn bit, and determines default levels of the
TOn bit.
Sets the TOEn bit to 1 and enables operation of TOn.
Clears the port register and port mode register to 0.
The TOn default setting level is output when the port mode
register is in output mode and the port register is 0.
TOn does not change because channel stop operating.
The TOn pin outputs the set level of TOn.
Operation
start
Sets the TOEn (master) bit to 1 (only when operation is
resumed).
Sets the TSn (master) and TSm (slave) bits of the TS0
register to 1 at the same time.
The TSn and TSm bits automatically return to 0
because they are trigger bits.
TEn = 1, TEm = 1
When the master and slave channels start counting and
the MDn0 bit of the TMRn register is 1, INTTMn is
generated.
During
operation
The set value of the TDRn (master) register must be
changed during an up status period.
The set value of the TDRm (slave) register can be
changed.
The TCRn and TCRm registers can always be read.
The TSRm (slave) register can always be read.
At the master channel, TCRn loads the value of TDRn and
counts down. When the count value reaches TCRn =
0000H, INTTMn is generated. At the same time, the value of
TDRn is loaded to TCRn, and the counter starts counting
down again.
At the slave channel, TCRm loads the value of TDRm, and
counting down and up are switched according to the
operation of the master channel. INTTMm is generated and
count operation is stopped upon detection of TCRm =
0001H. TCRm loads the value of TDRm again and count
operation is continued by the generation of INTTMn during
an up status of the master channel.
Remarks
1.
OPM = 0: n = 00, m = 08, 09
OPM = 1: n = 00, 04, m = 01, 05
2.
OPM: Bit15 of TAU option mode register (OPMR)
Operation
is
re
su
med.
(from
next
page)