UPD78F0413GA-GAM-AX NEC, UPD78F0413GA-GAM-AX Datasheet - Page 199

8BIT UC, 32K FLASH, 1KB RAM, LCD

UPD78F0413GA-GAM-AX

Manufacturer Part Number
UPD78F0413GA-GAM-AX
Description
8BIT UC, 32K FLASH, 1KB RAM, LCD
Manufacturer
NEC
Datasheet

Specifications of UPD78F0413GA-GAM-AX

Controller Family/series
UPD78F
No. Of I/o's
30
Ram Memory Size
1024Byte
Cpu Speed
10MHz
No. Of Timers
8
No. Of Pwm
RoHS Compliant
Core Size
8bit
Program Memory Size
32KB
Oscillator Type
External, Internal

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F0413GA-GAM-AX
Manufacturer:
ADI
Quantity:
882
Part Number:
UPD78F0413GA-GAM-AX
Manufacturer:
Renesas Electronics America
Quantity:
10 000
(1) Measuring the pulse width by using two input signals of the TI000 and TI010 pins (free-running timer
A pulse width can be measured in the following three ways.
Caution
Remarks 1. For the setting of the I/O pins, see 6.3 (6) Port mode register 3 (PM3).
mode)
Set the free-running timer mode (TMC003 and TMC002 = 01). When the valid edge of the TI000 pin is detected,
the count value of TM00 is captured to CR010. When the valid edge of the TI010 pin is detected, the count value
of TM00 is captured to CR000. Specify detection of both the edges of the TI000 and TI010 pins.
By this measurement method, the previous count value is subtracted from the count value captured by the edge
of each input signal. Therefore, save the previously captured value to a separate register in advance.
If an overflow occurs, the value becomes negative if the previously captured value is simply subtracted from the
current captured value 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.
Measuring the pulse width by using two input signals of the TI000 and TI010 pins (free-running timer mode)
Measuring the pulse width by using one input signal of the TI000 pin (free-running timer mode)
Measuring the pulse width by using one input signal of the TI000 pin (clear & start mode entered by the TI000 pin
valid edge input)
Capture trigger input
Capture trigger input
(TMC003, TMC002)
Capture interrupt
Capture interrupt
Capture register
Capture register
TM00 register
Operable bits
Overflow flag
(INTTM010)
(INTTM000)
2. For how to enable the INTTM000 signal interrupt, see CHAPTER 17 INTERRUPT FUNCTIONS.
Do not select the TI000 valid edge as the count clock when measuring the pulse width.
(OVF00)
(CR010)
(CR000)
(TI000)
(TI010)
FFFFH
0000H
Figure 6-49. Timing Example of Pulse Width Measurement (1)
0000H
0000H
00
CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00
A
TMC00 = 04H, PRM00 = F0H, CRC00 = 05H
01
M
A
User’s Manual U18698EJ1V0UD
B
0 write clear
M
N
B
0 write clear
N
C
S
C
0 write clear
D
S
P
D
P
0 write clear
E
Q
E
Q
199

Related parts for UPD78F0413GA-GAM-AX