NEC 78K0/KD1 Series User Manual page 155

8-bit single-chip microcontrollers
Table of Contents

Advertisement

Figure 6-29. Timing of One-Shot Pulse Output Operation with Software Trigger
Set TMC00 to 0CH
(TM00 count starts)
Count clock
TM00 count
0000H
CR010 set value
CR000 set value
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-30, 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, ES001) 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
Note
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.
Caution Even if the external trigger is generated again while the one-shot pulse is output, it is ignored.
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
0001H
N
N + 1
0000H
N
N
M
M
Preliminary User's Manual U16315EJ1V0UD
N – 1
N
M – 1
N
M
M
M + 1 M + 2
N
M
155

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents