upd70f3017ay Renesas Electronics Corporation., upd70f3017ay Datasheet - Page 179

no-image

upd70f3017ay

Manufacturer Part Number
upd70f3017ay
Description
V850/sa1tm 32-/16-bit Single-chip Microcontroller
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
upd70f3017ayGC-8EU-A
Manufacturer:
MICROCHIP
Quantity:
1 001
7.2.6 Operation to output one-shot pulse
(1) One-shot pulse output with software trigger
TMn can output a one-shot pulse in synchronization with a software trigger and an external trigger (TIn0 pin input).
A one-shot pulse can be output from the TOn pin by setting 16-bit timer mode control register n (TMCn),
capture/compare control register n (CRCn), and 16-bit timer output control register n (TOCn) as shown in Figure
7-21, and by setting bit 6 (OSPTn) of TOCn by software.
By setting OSPTn to 1, the 16-bit timer/event counter is cleared and started, and its output is asserted at the
count value (N) set in advance to 16-bit capture/compare register n1 (CRn1). After that, the output is deasserted
at the count value (M) set in advance to 16-bit capture/compare register n0 (CRn0)
Even after the one-shot pulse has been output, TMn continues its operation. To stop TMn, TMCn must be reset
to 00H.
Remark
Note This is an example when N < M. When N > M, output of CRn0 is asserted and output of CRn1 is
Cautions 1. Do not set OSPTn to 1 while the one-shot pulse is being output. To output the one-shot
Remark
TMn count value
TOn pin output
deasserted.
Count clock
INTTMn0
n = 0, 1
n = 0, 1
2. During a one-shot pulse output operation started by a software trigger, the TIn0 pin
CRn0
pulse again, wait until the current one-shot pulse output is complete.
cannot be used as a general-purpose port.
0000H 0001H 0002H
Figure 7-20. Timing of Square Wave Output Operation
CHAPTER 7 TIMER/COUNTER FUNCTION
N
User’s Manual U12768EJ4V1UD
N
1
N
0000H 0001H 0002H
Note
N
.
1
N
0000H
179

Related parts for upd70f3017ay