NEC 78K0 Series User Manual page 229

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0 Series:
Table of Contents

Advertisement

CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 00 AND 01
Figure 7-50. Example of Software Processing for One-Shot Pulse Output Operation (2/2)
<1> Count operation start flow
Register initial setting
PRM0n register,
CRC0n register,
TOC0n register
CR00n, CR01n registers,
TMC0n3, TMC0n2 bits =
<2> One-shot trigger input flow
TOC0n.OSPT0n bit = 1
or edge input to TI00n pin
<3> Count operation stop flow
TMC0n3, TMC0n2 bits = 00
Note Care must be exercised when setting TOC0n. For details, see 7.3 (3) 16-bit timer output control
register 0n (TOC0n).
µ
Remark n = 0:
PD78F0531, 78F0532, 78F0533
µ
n = 0, 1:
PD78F0534, 78F0535, 78F0536, 78F0537, 78F0537D
START
Initial setting of these registers is performed
before setting the TMC0n3 and TMC0n2 bits.
Note
,
port setting
Starts count operation
01 or 10
Write the same value to the bits other than the
OSTP0n bit.
The counter is initialized and counting is stopped
by clearing the TMC0n3 and TMC0n2 bits to 00.
STOP
Preliminary User's Manual U17260EJ3V1UD
229

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents