CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
288
(2) Setting the LVS01 and LVR01 bits
Set the LVS01 and LVR01 bits using the following procedure.
Figure 7-44. Example of Flow for Setting LVS01 and LVR01 Bits
Setting
TOC01.OSPE01, TOC014, TOC011
bits
Setting
TOC01.TOE01
bit
Setting
TOC01.LVS01, LVR01
bits
Setting
TMC01.TMC013, TMC012
bits
<3> Enabling timer operation
<2> Setting of timer output F/F
<1> Setting of timer output operation
Caution Be sure to set the LVS01 and LVR01 bits following steps <1>, <2>, and <3> above.
Step <2> can be performed after <1> and before <3>.
Figure 7-45. Timing Example of LVR01 and LVS01 Bits
TOC01.LVS01 bit
TOC01.LVR01 bit
Operable bits
(TMC013, TMC012)
TO01 pin output
INTTM010 signal
<1>
00
<2> <1> <3> <4>
<4>
<4>
01, 10, or 11
<1> The TO01 pin output goes high when the LVS01 and LVR01 bits = 10.
<2> The TO01 pin output goes low when the LVS01 and LVR01 bits = 01 (the pin output remains unchanged
from the high level even if the LVS01 and LVR01 bits are cleared to 00).
<3> The timer starts operating when the TMC013 and TMC012 bits are set to 01, 10, or 11. Because the
LVS01 and LVR01 bits were set to 10 before the operation was started, the TO01 pin output starts from
the high level. After the timer starts operating, setting the LVS01 and LVR01 bits is prohibited until the
TMC013 and TMC012 bits = 00 (disabling the timer operation).
<4> The output level of the TO01 pin is inverted each time an interrupt signal (INTTM010) is generated.
Содержание ?PD703302
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO ...