NEC 78K0R/KE3 User Manual page 198

16-bit single-chip microcontrollers
Table of Contents

Advertisement

(b) Start timing in event counter mode
<1> While TE0n is set to 0, TCR0n holds the initial value.
<2> Writing 1 to TS0n sets 1 to TE0n.
<3> As soon as 1 has been written to TS0n and 1 has been set to TE0n, the "TDR0n value" is loaded to
TCR0n to start counting.
<4> After that, the TCR0n value is counted down according to the count clock.
TS0n (write) hold signal
Start trigger detection signal
(c) Start timing in capture mode
<1> Writing 1 to TS0n sets TE0n = 1
<2> The write data to TS0n is held until count clock generation.
<3> TCR0n holds the initial value until count clock generation.
<4> On generation of count clock, 0000H is loaded to TCR0n and count starts.
TS0n (write) hold signal
Start trigger detection signal
Caution In the first cycle operation of count clock after writing TS0n, an error at a maximum of one
clock is generated since count start delays until count clock has been generated. When the
information on count start timing is necessary, an interrupt can be generated at count start
by setting MD0n0 = 1.
198
CHAPTER 6 TIMER ARRAY UNIT
Figure 6-11. Start Timing (In Event Counter Mode)
f
CLK
TS0n (write)
<1>
TE0n
<2>
Count clock
<1>
TCR0n
Initial value
Figure 6-12. Start Timing (In Capture Mode)
f
CLK
TS0n (write)
<1>
TE0n
Count clock
<2>
TCR0n
Initial value
INTTM0n
User's Manual U17854EJ9V0UD
<3>
TDR0n value
<3>
When MD0n0 = 1 is set
TDR0n value-1
<4>
0000H

Advertisement

Table of Contents
loading

Table of Contents