NEC 78K0S/KA1+ User Manual page 90

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KA1+:
Table of Contents

Advertisement

(3) 16-bit timer output control register 00 (TOC00)
This register controls the operation of the 16-bit timer/event counter output controller. It sets timer output F/F
set/reset, output inversion enable/disable, 16-bit timer/event counter 00 timer output enable/disable, one-shot
pulse output operation enable/disable, and output trigger of one-shot pulse by software.
TOC00 is set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets the value of TOC00 to 00H.
Figure 6-7. Format of 16-Bit Timer Output Control Register 00 (TOC00)
Address: FF63H
After reset: 00H
Symbol
7
TOC00
0
OSPT00
0
1
OSPE00
0
1
TOC004
0
1
LVS00
0
0
1
1
TOC001
0
1
TOE00
0
1
Note The one-shot pulse output mode operates correctly only in the free-running mode and the mode in which
clear & start occurs at the TI000 pin valid edge. In the mode in which clear & start occurs on a match
between TM00 and CR000, one-shot pulse output is not possible because an overflow does not occur.
Cautions 1. Timer operation must be stopped before setting other than OSPT00.
2. If LVS00 and LVR00 are read, 0 is read.
3. OSPT00 is automatically cleared after data is set, so 0 is read.
4. Do not set OSPT00 to 1 other than in one-shot pulse output mode.
5. A write interval of two cycles or more of the count clock selected by prescaler mode register
00 (PRM00) is required, when OSPT00 is set to 1 successively.
6. When the TOE00 is 0, set the TOE00, LVS00, and LVR00 at the same time with the 8-bit
memory manipulation instruction. When the TOE00 is 1, the LVS00 and LVR00 can be set
with the 1-bit memory manipulation instruction.
90
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
R/W
<6>
<5>
OSPT00
OSPE00
TOC004
One-shot pulse output trigger control via software
No one-shot pulse output trigger
One-shot pulse output trigger
One-shot pulse output operation control
Successive pulse output mode
Note
One-shot pulse output mode
Timer output F/F control using match of CR010 and TM00
Disables inversion operation
Enables inversion operation
LVR00
0
No change
1
Timer output F/F reset (0)
0
Timer output F/F set (1)
1
Setting prohibited
Timer output F/F control using match of CR000 and TM00
Disables inversion operation
Enables inversion operation
Disables output (output fixed to level 0)
Enables output
User's Manual U16898EJ3V0UD
4
<3>
<2>
LVS00
LVR00
Timer output F/F status setting
Timer output control
1
<0>
TOC001
TOE00

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents