CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ6V0UD
208
(3) 16-bit timer output control registers 0, 1 (TOC0, TOC1)
TOCn controls the operation of the timer n output controller by setting or resetting the R-S flip-flop (LV0),
enabling or disabling reverse output, enabling or disabling output of timer n, enabling or disabling one-shot pulse
output operation, and selecting the output trigger for the one-shot pulse by software.
TOCn is set by an 8-bit or 1-bit memory manipulation instruction.
RESET input clears TOC0 and TOC1 to 00H.
After reset: 00H R/W
Address: FFFFF20CH, FFFFF21CH
7
<6>
<5>
4
<3>
<2>
1
<0>
TOCn
0
OSPTn
OSPEn
TOCn4
LVSn
LVRn
TOCn1
TOEn
(n = 0, 1)
OSPTn
Control of output trigger of one-shot pulse by software
0
No one-shot pulse trigger
1
Uses one-shot pulse trigger
OSPEn
Control of one-shot pulse output operation
0
Successive pulse output
1
One-shot pulse output
Note
TOCn4
Control of timer output F/F on match between CRn1 and TMn
0
Reverse timer output F/F disabled
1
Reverse timer output F/F disabled
LVSn
LVRn
Setting of status of timer output F/F of timer n
0
0
Not affected
0
1
Resets timer output F/F (0)
1
0
Sets timer output F/F (1)
1
1
Setting prohibited
TOCn1
Control of timer output F/F on match between CRn0 and TMn or TIn0 valid edge
0
Reverse timer output F/F disabled
1
Reverse timer output F/F enabled
TOEn
Controls output of timer n
0
Output disabled (output is fixed to 0 level)
1
Output enabled
Note
The one-shot pulse output operates only in the free-running mode and in the clear & start mode set by
the TIn0 valid edge.
Cautions 1. Before setting TOCn, be sure to stop the timer operation.
2.
LVSn and LVRn are 0 when read after data has been set to them.
3.
OSPTn is 0 when read because it is automatically cleared after data has been set.
4.
Do not set OSPTn (to 1) other than for one-shot pulse output (OSPEn bit = 0).
Содержание V850/SB1
Страница 2: ...User s Manual U13850EJ6V0UD 2 MEMO ...