
127
CHAPTER 6
16-BIT TIMER/EVENT COUNTER 0
User’s Manual U12790EJ2V0UD
(3) 16-bit timer output control register 0 (TOC0)
This register controls the operation of the 16-bit timer/event counter output controller. It sets/resets the R-
S flip-flop (LV0); enables/disables output inversion, timer output of 16-bit timer/event counter 0, and the one-
shot pulse output operation; and sets the output trigger of the one-shot pulse.
TOC0 is set by a 1-bit or 8-bit memory manipulation instruction.
The value of this register is cleared to 00H after reset.
Figure 6-4 shows the format of TOC0.
Figure 6-4. Format of 16-Bit Timer Output Control Register 0 (TOC0)
OSPT
Control of output trigger of one-shot pulse by software
0
No one-shot pulse trigger
1
One-shot pulse trigger
OSPE
Control of one-shot pulse output operation
0
Successive pulse output
1
One-shot pulse outputNote
TOC04
Control of timer output F/F on match between CR01 and TM0
0
Inversion operation disabled
1
Inversion operation enabled
LVS0
LVR0
Setting of timer output F/F status of 16-bit timer/event counter 0
0
Not affected
0
1
Timer output F/F reset (0)
1
0
Timer output F/F set (1)
1
Setting prohibited
TOC01
Control of timer output F/F on match between CR00 and TM0
0
Inversion disabled
1
Inversion enabled
TOE0
Control of output of 16-bit timer/event counter 0
0
Output disabled (output is fixed to 0 level)
1
Output enabled
Note
One-shot pulse output operates normally only in the free-running mode and the mode in which TM0
is cleared and started at the valid edge of TI00.
Cautions 1. Be sure to set TOC0 after stopping the timer.
2. LVS0 and LVR0 are 0 when they are read.
3. OSPT is always 0 when read because it is automatically cleared after data has been set.
7
<6>
<5>
4
<3>
0
OSPT OSPE
LVR0 TOC01 TOE0
TOC04 LVS0
<2>
1
<0>
Symbol
TOC0
Address
FF7EH
After reset
00H
R/W