NEC 78K0S/KA1+ User Manual page 113

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

Advertisement

Figure 6-33. Timing of One-Shot Pulse Output Operation with Software Trigger
Set TMC00 to 04H
(TM00 count starts)
Count clock
TM00 count
0000H
CR010 set value
N
CR000 set value
M
OSPT00
INTTM010
INTTM000
TO00 pin output
Caution 16-bit timer counter 00 starts operating as soon as a value other than 00 (operation stop
mode) is set to the TMC003 and TMC002 bits.
Remark N < M
(2) One-shot pulse output with external trigger
A one-shot pulse can be output from the TO00 pin by setting 16-bit timer mode control register 00 (TMC00),
capture/compare control register 00 (CRC00), and 16-bit timer output control register 00 (TOC00) as shown in
Figure 6-34, and by using the valid edge of the TI000 pin as an external trigger.
The valid edge of the TI000 pin is specified by bits 4 and 5 (ES000, ES010) of prescaler mode register 00
(PRM00). The rising, falling, or both the rising and falling edges can be specified.
When the valid edge of the TI000 pin is detected, the 16-bit timer/event counter is cleared and started, and the
output becomes active at the count value set in advance to 16-bit timer capture/compare register 010
(CR010).
After that, the output becomes inactive at the count value set in advance to 16-bit timer
capture/compare register 000 (CR000)
Note The case where N < M is described here. When N > M, the output becomes active with the CR000
register and inactive with the CR010 register. Do not set N to M.
Caution Do not input the external trigger again while the one-shot pulse is output. To output the one-
shot pulse again, wait until the current one-shot pulse output is completed.
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
0001H
N
N + 1
0000H
N
M
Note
.
User's Manual U16898EJ3V0UD
N
1
N
M
1
N
M
M
M + 1 M + 2
N
M
113

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents