upd78f0730 Renesas Electronics Corporation., upd78f0730 Datasheet - Page 166

no-image

upd78f0730

Manufacturer Part Number
upd78f0730
Description
8-bit Single-chip Microcontroller
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
upd78f0730MC(S)-CAB-AX/JM
Manufacturer:
NEC
Quantity:
538
Part Number:
upd78f0730MC(S)-CAB-AX/JM
Manufacturer:
RENESAS
Quantity:
1 000
Part Number:
upd78f0730MC(S)-CAB-AX/JM
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
upd78f0730MC-CAB-AX
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
(2) Measuring the pulse width by using one input signal of the TI000 pin (free-running mode)
166
Compare match interrupt
Set the free-running timer mode (TMC003 and TMC002 = 01). The count value of TM00 is captured to CR000 in
the phase reverse to the valid edge detected on the TI000 pin. When the valid edge of the TI000 pin is detected,
the count value of TM00 is captured to CR010.
By this measurement method, values are stored in separate capture registers when a width from one edge to
another is measured. Therefore, the capture values do not have to be saved. By subtracting the value of one
capture register from that of another, a high-level width, low-level width, and cycle are calculated.
If an overflow occurs, the value becomes negative if one captured value is simply subtracted from another and,
therefore, a borrow occurs (bit 0 (CY) of the program status word (PSW) is set to 1). If this happens, ignore CY
and take the calculated value as the pulse width. In addition, clear bit 0 (OVF00) of 16-bit timer mode control
register 00 (TMC00) to 0.
Capture trigger input
Capture trigger input
(TMC003, TMC002)
Capture interrupt
Capture register
Capture register
TM00 register
Operable bits
Overflow flag
(INTTM010)
(INTTM000)
(OVF00)
(CR000)
(CR010)
(TI000)
(TI010)
FFFFH
0000H
Figure 6-49. Timing Example of Pulse Width Measurement (2)
0000H
L
L
00
0000H
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
• TMC00 = 04H, PRM00 = 10H, CRC00 = 07H
A
01
M
Preliminary User’s Manual U19014EJ1V0UD
A
B
M
0 write clear
N
B
N
C
0 write clear
S
C
D
S
0 write clear
P
D
P
E
0 write clear
Q
E
Q

Related parts for upd78f0730