127
CHAPTER 6 16-BIT TIMER/EVENT COUNTER
Preliminary User’s Manual U13420EJ2V0UM00
Figure 6-25. Square-Wave Output Operation Timing
6.5.6 One-shot pulse output operation
It is possible to output one-shot pulses by software trigger.
If 16-bit timer mode control register 0 (TMC0), capture/compare control register 0 (CRC0), and 16-bit timer output
control register 0 (TOC0) are set as shown in Figure 6-26, and 1 is set in bit 6 (OSPT) of TOC0 by software, a one-
shot pulse is output from the TO0/TI00/P20 pin.
By setting 1 in OSPT, 16-bit timer/counter 0 (TM0) is cleared and started, and output is activated by the count value
set beforehand in 16-bit timer capture/compare register 01 (CR01). Thereafter, output is inactivated by the count
value set beforehand in 16-bit timer capture/compare register 00 (CR00).
TM0 continues to operate after one-shot pulse is output. To stop TM0, 00H must be set to TMC0.
Caution
When outputting one-shot pulse, do not set 1 in OSPT. When outputting one-shot pulse again,
do so after the INTTM00, or interrupt match signal with CR00, is generated.
Count clock
TM0 count value
CR00
INTTM00
TO0 pin output
0000H 0001H 0002H
N–1
N
0000H 0001H 0002H
N–1
N
0000H
N
Summary of Contents for mPD780065 Series
Page 2: ...Preliminary User s Manual U13420EJ2V0UM00 2 MEMO ...
Page 10: ...10 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 22: ...22 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 134: ...134 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 160: ...160 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 186: ...186 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 326: ...326 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 342: ...342 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 350: ...350 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...