NEC 78K0R/KE3 User Manual page 246

16-bit single-chip microcontrollers
Table of Contents

Advertisement

Figure 6-59. Operation Procedure When PWM Function Is Used (2/2)
Operation
Sets TOE0m (slave) to 1 (only when operation is
start
resumed).
The TS0n (master) and TS0m (slave) bits of the TS0
register are set to 1 at the same time.
The TS0n and TS0m bits automatically return to 0
because they are trigger bits.
During
Set values of the TMR0n and TMR0m registers, TOM0n,
operation
TOM0m, TOL0n, and TOL0m bits cannot be changed.
Set values of the TDR0n and TDR0m registers can be
changed after INTTM0n of the master channel is
generated.
The TCR0n and TCR0m registers can always be read.
The TSR0n and TSR0m registers are not used.
Set values of the TO0 and TOE0 registers can be
changed.
Operation
The TT0n (master) and TT0m (slave) bits are set to 1 at
stop
the same time.
The TT0n and TT0m bits automatically return to 0
because they are trigger bits.
TOE0m of slave channel is cleared to 0 and value is set
to the TO0m bit.
TAU stop
To hold the TO0m pin output levels
Clears TO0m bit to 0 after the value to
be held is set to the port register.
When holding the TO0m pin output levels is not
necessary
Switches the port mode register to input mode.
The TAU0EN bit of the PER0 register is cleared to 0.
Remark
n = 0, 2, 4
m = n + 1
246
CHAPTER 6 TIMER ARRAY UNIT
Software Operation
User's Manual U17854EJ9V0UD
Hardware Status
TE0n = 1, TE0m = 1
When the master channel starts counting, INTTM0n is
generated. Triggered by this interrupt, the slave
channel also starts counting.
The counter of the master channel loads the TDR0n value
to TCR0n, and counts down. When the count value
reaches TCR0n = 0000H, INTTM0n output is generated.
At the same time, the value of the TDR0n register is
loaded to TCR0n, and the counter starts counting down
again.
At the slave channel, the value of TDR0m is loaded to
TCR0m, triggered by INTTM0n of the master channel, and
the counter starts counting down. The output level of
TO0m becomes active one count clock after generation of
the INTTM0n output from the master channel. It becomes
inactive when TCR0m = 0000H, and the counting
operation is stopped.
After that, the above operation is repeated.
TE0n, TE0m = 0, and count operation stops.
TCR0n and TCR0m hold count value and stops.
The TO0m output is not initialized but holds current
status.
The TO0m pin outputs the TO0n set level.
The TO0m pin output levels is held by port function.
The TO0m pin output levels go are into Hi-Z output state.
Power-off status
All circuits are initialized and SFR of each channel is
also initialized.
(The TO0m bit is cleared to 0 and the TO0m pin is set
to port mode.)

Advertisement

Table of Contents
loading

Table of Contents