NEC V850ES/KE1+ User Manual page 243

32-bit single-chip microcontrollers
Table of Contents

Advertisement

Figure 7-9. Example of Software Processing for Square Wave Output Function
TM01 register
0000H
Operable bits
(TMC013, TMC012)
Compare register
(CR010)
TO01 pin output
Compare match interrupt
(INTTM010)
TO01 output control bit
(TOC011, TOE01)
<1> Count operation start flow
START
Register initial setting
PRM01 register,
SELCNT1 register,
CRC01 register,
TOC01 register
CR010 register,
port setting
TMC013, TMC012 bits = 11
<2> Count operation stop flow
TMC013, TMC012 bits = 00
Note Care must be exercised when setting the TOC01 register. For details, refer to 7.3 (3) 16-bit timer
output control register 01 (TOC01).
CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
N
00
<1>
Initial setting of these registers is performed before
setting the TMC013 and TMC012 bits to 11.
Note
,
Starts count operation.
The counter is initialized and counting is stopped
by clearing the TMC013 and TMC012 bits to 00.
STOP
User's Manual U16896EJ2V0UD
N
N
11
N
00
<2>
243

Advertisement

Table of Contents
loading

This manual is also suitable for:

?pd70f3302?pd703302?pd70f3302y?pd703302y

Table of Contents