upd78f0148m1gka1-9eu Renesas Electronics Corporation., upd78f0148m1gka1-9eu Datasheet - Page 195

no-image

upd78f0148m1gka1-9eu

Manufacturer Part Number
upd78f0148m1gka1-9eu
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
(2) One-shot pulse output with external trigger
Caution 16-bit timer counter 0n starts operating as soon as a value other than 00 (operation stop mode) is
Remark N < M
A one-shot pulse can be output from the TO0n pin by setting 16-bit timer mode control register 0n (TMC0n),
capture/compare control register 0n (CRC0n), and 16-bit timer output control register 0n (TOC0n) as shown in
Figure 7-38, and by using the valid edge of the TI00n pin as an external trigger.
The valid edge of the TI00n pin is specified by bits 4 and 5 (ES0n0, ES0n1) of prescaler mode register 0n
(PRM0n). The rising, falling, or both the rising and falling edges can be specified.
When the valid edge of the TI00n 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 01n (CR01n).
After that, the output becomes inactive at the count value set in advance to 16-bit timer capture/compare register
00n (CR00n)
Note The case where N < M is described here. When N > M, the output becomes active with the CR00n
Caution Do not input the external trigger again while the one-shot pulse is being output. To output the
Remark n = 0:
CR01n set value
CR00n set value
TO0n pin output
Count clock
TM0n count
INTTM01n
INTTM00n
register and inactive with the CR01n register. Do not set N to M.
OSPT0n
set to the TMC0n3 and TMC0n2 bits.
one-shot pulse again, wait until the current one-shot pulse output is completed.
n = 0, 1:
Figure 7-37. Timing of One-Shot Pulse Output Operation with Software Trigger
Note
.
Set TMC0n to 04H
(TM0n count starts)
0000H
µ
µ
PD780143, 780144
PD780146, 780148, 78F0148
M
N
CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 00 AND 01
0001H
N
User’s Manual U15947EJ3V1UD
N + 1
N
M
0000H
N
1
M
N
N
M
1
M
M
N
M + 1 M + 2
195

Related parts for upd78f0148m1gka1-9eu