UPD78F0552MA-FAA-AX Renesas Electronics America, UPD78F0552MA-FAA-AX Datasheet - Page 313

no-image

UPD78F0552MA-FAA-AX

Manufacturer Part Number
UPD78F0552MA-FAA-AX
Description
MCU 8BIT 16-SSOP
Manufacturer
Renesas Electronics America
Series
78K0/Kx2-Lr
Datasheet

Specifications of UPD78F0552MA-FAA-AX

Core Processor
78K/0
Core Size
8-Bit
Speed
10MHz
Connectivity
I²C, LIN, UART/USART
Peripherals
LVD, POR, PWM, WDT
Number Of I /o
9
Program Memory Size
16KB (16K x 8)
Program Memory Type
FLASH
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
78K0/Kx2-L
(1) Measuring the pulse width by using two input signals of the TI000 and TI010 pins (free-running timer mode)
R01UH0028EJ0400 Rev.4.00
Sep 27, 2010
A pulse width can be measured in the following three ways.
• 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
Remarks 1. For the setting of the I/O pins, refer to 6.3 (6) Port mode register 0 (PM0).
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.
valid edge input)
Capture trigger input
Capture trigger input
(TMC003, TMC002)
Capture interrupt
Capture interrupt
Capture register
Capture register
TM00 register
2. For how to enable the INTTM000 signal interrupt, refer to CHAPTER 17 INTERRUPT FUNCTIONS.
Operable bits
Overflow flag
(INTTM010)
(INTTM000)
(CR010)
(CR000)
(OVF00)
(TI000)
(TI010)
FFFFH
0000H
Figure 6-49. Timing Example of Pulse Width Measurement (1)
0000H
0000H
00
A
• TMC00 = 04H, PRM00 = F0H, CRC00 = 05H
01
M
A
B
0 write clear
M
N
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
B
0 write clear
N
C
S
C
0 write clear
D
S
P
D
P
0 write clear
E
Q
E
Q
299

Related parts for UPD78F0552MA-FAA-AX