CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
Preliminary User’s Manual U19014EJ1V0UD
173
(2) Setting LVS00 and LVR00
Set LVS00 and LVR00 using the following procedure.
Figure 6-53. Example of Flow for Setting LVS00 and LVR00 Bits
Setting
TOC00.OSPE00, TOC004, TOC001
bits
Setting
TOC00.TOE00
bit
Setting
TOC00.LVS00, LVR00
bits
Setting
TMC00.TMC003, TMC002
bits
<3> Enabling timer operation
<2> Setting of timer output F/F
<1> Setting of timer output operation
Caution Be sure to set LVS00 and LVR00 following steps <1>, <2>, and <3> above.
Step <2> can be performed after <1> and before <3>.
Figure 6-54. Timing Example of LVR00 and LVS00
TOC00.LVS00 bit
TOC00.LVR00 bit
Operable bits
(TMC003, TMC002)
TO00 pin output
INTTM000 signal
<1>
00
<2> <1> <3> <4>
<4>
<4>
01, 10, or 11
<1> The TO00 pin output goes high when LVS00 and LVR00 = 10.
<2> The TO00 pin output goes low when LVS00 and LVR00 = 01 (the pin output remains unchanged from the
high level even if LVS00 and LVR00 are cleared to 00).
<3> The timer starts operating when TMC003 and TMC002 are set to 01, 10, or 11. Because LVS00 and
LVR00 were set to 10 before the operation was started, the TO00 pin output starts from the high level.
After the timer starts operating, setting LVS00 and LVR00 is prohibited until TMC003 and TMC002 = 00
(disabling the timer operation).
<4> The output level of the TO00 pin is inverted each time an interrupt signal (INTTM000) is generated.
electronic components distributor