Renesas R5F21387CDFP#V0
- Part No.:
- R5F21387CDFP#V0
- Manufacturer:
- Renesas
- Category:
- Microcontrollers
- Package:
- 80-LQFP
- Datasheet:
-
R5F21387CDFP#V0.pdf
- Description:
- IC MCU 16BIT 48KB FLASH 80LQFP
- Quantity:
- Payment:

- Shipping:

Inventory:2,521
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F21387CDFP#V0 from Renesas Electronics is a 16-bit R8C CPU core microcontroller with 48 KB flash program memory, 4 KB data flash (BGO-capable), and 4 KB RAM, operating at up to 20 MHz (50 ns min instruction time) across 1.8–5.5 V supply. It integrates dual 10-bit A/D converters (20 channels), dual 8-bit D/A outputs, LIN hardware module, and six independent timer units-including 16-bit Timer RD with complementary PWM for three-phase motor control-targeting appliance motor drive and real-time sensor processing.
For engineers reviewing the R5F21387CDFP#V0 datasheet, R5F21387CDFP#V0 pinout, R5F21387CDFP#V0 application, or R5F21387CDFP#V0 equivalent, key selection criteria include its −40°C to +85°C industrial temperature grade, 80-pin LQFP package with 75 CMOS I/Os (including 20 analog inputs), background data flash rewrite capability, and integrated LIN physical layer support via UART0 and Timer RA.
Technical Context
The R5F21387CDFP#V0 implements the R8C CPU core with 89 fundamental instructions, 1 Mbyte address space, and dedicated 16×16→32-bit multiplier with MAC support. Its clock system includes four independent sources: external XIN (up to 20 MHz), 32 kHz XCIN crystal input, high-speed on-chip oscillator (adjustable), and low-speed on-chip oscillator-each selectable via programmable frequency dividers (1/2/4/8/16).
Peripheral integration centers on deterministic real-time control: Timer RD provides reset-synchronous and complementary PWM modes for 3-phase inverter gate driving; UART2 supports full I²C bus mode (SCL2/SDA2); and the Data Transfer Controller (DTC) enables autonomous transfers triggered by 39 sources-including A/D conversion completion and timer overflows-reducing CPU load during sensor acquisition and waveform generation.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | R8C 16-bit core with 89 instructions, 1 Mbyte address space, and 16×16→32-bit hardware multiplier |
| Memory | 48 KB program flash, 4 KB data flash (4 × 1 KB blocks, BGO supported), 4 KB RAM |
| Operating Voltage | 1.8–5.5 V - enables direct interface with 3.3 V and 5 V logic without level shifters |
| Temperature Range | −40°C to +85°C (D version) - qualified for industrial motor control and HVAC environments |
| A/D Converter | 10-bit resolution × 20 channels with sample-and-hold and sweep mode - supports simultaneous multi-sensor sampling |
| PWM Capability | Timer RD delivers 6-pin complementary PWM with triangular/sawtooth modulation - directly drives 3-phase inverter bridges |
| Communication | UART0/1/2 (I²C-capable), SSU, LIN hardware module (UART0 + Timer RA) - enables local interconnect and automotive subsystem integration |
Pinout & Package
Package: 80-pin LQFP (PLQP0080KB-A), 12 mm × 12 mm, 0.5 mm pitch, exposed pad not specified.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P0_0 to P0_7 | Analog input / D/A output / timer I/O | AN0–AN7 + DA0/DA1 + TRCIOA/TRCTRG - enables mixed-signal feedback loop with DAC-based reference generation |
| P1_0 to P1_3 | Analog input / key interrupt | AN8–AN11 + KI0–KI3 - supports touch-key interfaces with hardware debouncing and wake-up capability |
| P2_0 to P2_7 | Timer RD I/O | TRDIOA0–TRDIOD1 + TRDCLK - provides full 6-pin complementary PWM output plus external clock sync for synchronized inverter switching |
| P4_2 | Analog reference input | VREF - sets precise A/D conversion reference independent of AVCC, improving measurement stability |
| P6_0 to P6_7 | UART1 I/O / TREO / INTx | RXD1/TXD1/CLK1 + TREO (real-time clock output) + INT2/INT4 - supports isolated serial comms and time-stamped event logging |
| P9_0 to P9_5 | General-purpose I/O | No peripheral multiplexing - reserved for system control signals (e.g., enable lines, fault flags, status LEDs) |
Key Features
| Feature | Design Value |
|---|---|
| Background Operation (BGO) | Data flash erasure/programming proceeds concurrently with CPU execution - enables firmware updates without halting real-time control loops |
| Hardware LIN Module | UART0 + Timer RA combine to implement ISO 9141-2/SAE J2602 physical layer - eliminates external transceiver for body electronics nodes |
| Low-Power Modes | Wait mode (4.0 µA @ 3.0 V, 32 kHz) and stop mode (2.0 µA) - extends battery life in always-on appliance standby functions |
| Dual D/A Converters | 8-bit DA0/DA1 outputs on P0_6/P0_7 - generate analog setpoints or bias voltages for op-amp conditioning stages |
| Voltage Detection | Three-level voltage monitor (VDD, VD0, VD1) with programmable thresholds - ensures safe shutdown before brownout-induced state corruption |
Applications
| Motor Control in Home Appliances | Industrial Sensor Hub |
|---|---|
Use Scenario: Variable-speed BLDC motor drive in washing machine drum control. IC Role / Device Role / Timing Role: Real-time PWM generation (Timer RD), current sensing (A/D on AN0–AN5), thermal monitoring (AN6/AN7), and LIN communication to main controller. Use Value: Complementary PWM with dead-time insertion prevents shoot-through; BGO allows field-upgradable motor profiles without interrupting spin cycles. | Use Scenario: Multi-channel environmental monitoring node in HVAC ductwork. IC Role / Device Role / Timing Role: Simultaneous sampling of temperature, humidity, CO₂, and airflow sensors via 20-channel A/D sweep mode and UART2-to-I²C bridge. Use Value: Integrated I²C master eliminates external bus controller; low-power stop mode extends battery life to >2 years in wireless variants. |
| Audio Equipment Power Management | Office Equipment Position Feedback |
Use Scenario: Adaptive power sequencing and rail monitoring in multi-amplifier audio receivers. IC Role / Device Role / Timing Role: Voltage detection (VD0/VD1), GPIO-controlled DC-DC enable signals, and UART0-based diagnostics reporting. Use Value: Programmable voltage thresholds prevent amplifier clipping during transient load conditions; 75 I/Os simplify discrete power tree supervision. | Use Scenario: Closed-loop stepper motor positioning in document feeder mechanisms. IC Role / Device Role / Timing Role: Quadrature encoder interface (Timer RG phase counting), pulse-width modulated current control (Timer RB), and RS-232-level serial command parsing (UART1). Use Value: Hardware phase counting reduces CPU overhead by >90% vs. software quadrature decoding; 8-bit D/A outputs calibrate optical sensor baselines. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 16-bit MCU applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F21388CDFP | 64 KB program ROM, 6 KB data flash, same package and peripheral set | Requires larger firmware image size; identical timing/peripheral behavior | Select when firmware exceeds 48 KB or future-proofing for feature expansion is required |
| R5F21386CDFP | 32 KB program ROM, 2.5 KB data flash, same D-grade temperature range | Lower memory margin; suitable for cost-sensitive, fixed-function implementations | Select for high-volume appliance controllers where code footprint remains under 28 KB |
Compared with R5F21387CDFP#V0, R5F21388CDFP offers higher memory headroom for complex control algorithms, while R5F21386CDFP reduces BOM cost where flash utilization stays below 70%; all three share identical pinout, peripheral register map, and qualification profile.
Availability
R5F21387CDFP#V0 is available at Aetrix Electronics and suitable for industrial motor control, HVAC sensor nodes, audio power management, and office equipment position feedback requiring stable component supply across extended temperature ranges and long production lifecycles.
Supply support for R5F21387CDFP#V0 includes scheduled delivery planning, volume procurement assistance, BOM continuity management, traceable sourcing, and lifecycle availability coordination for OEM customers, industrial embedded developers, connected-device designers, and electronics production programs.
Manufacturer
Renesas Electronics Corporation is a global semiconductor leader specializing in microcontrollers, analog, power, and SoC solutions for automotive, industrial, and IoT markets.
The R8C/38C Group, including R5F21387CDFP#V0, was designed for cost-effective, real-time embedded control in consumer and industrial appliances-emphasizing EMI/EMS robustness, integrated analog peripherals, and low-power operation without sacrificing computational throughput.
FAQ
What is the maximum operating frequency and corresponding supply voltage range for R5F21387CDFP#V0?
R5F21387CDFP#V0 operates at up to 20 MHz when supplied with 2.7–5.5 V, achieving a minimum instruction execution time of 50 ns. At lower frequencies (e.g., 5 MHz), it supports down to 1.8 V, enabling compatibility with battery-powered or energy-harvesting systems where supply headroom is constrained.
Does R5F21387CDFP#V0 support in-system programming of its data flash memory?
Yes, R5F21387CDFP#V0 supports background operation (BGO) for data flash, allowing erase and write operations to proceed concurrently with CPU program execution. This enables seamless firmware updates, parameter storage, or calibration data logging without interrupting real-time control tasks such as motor PWM or sensor sampling.
How many analog input channels does R5F21387CDFP#V0 provide, and what is their resolution?
R5F21387CDFP#V0 integrates a 10-bit successive-approximation A/D converter with 20 input channels (AN0–AN19). Each channel supports sample-and-hold functionality and sweep mode for automatic sequential conversion, delivering consistent 10-bit precision across the full 1.8–5.5 V supply range.
What peripheral resources enable R5F21387CDFP#V0 to implement a LIN bus node without external transceivers?
R5F21387CDFP#V0 implements a hardware LIN module using UART0 for protocol handling and Timer RA for baud rate generation and synchronization. This integrated approach meets ISO 9141-2 physical layer requirements, eliminating the need for external LIN transceivers in body electronics and appliance subsystems.
Is R5F21387CDFP#V0 pin-compatible with other members of the R8C/38C Group?
Yes, all R8C/38C Group devices-including R5F21386CDFP, R5F21387CDFP#V0, and R5F21388CDFP-share the identical 80-pin LQFP (PLQP0080KB-A) package and fully compatible pin mapping. Firmware and PCB designs are interchangeable across memory variants, simplifying platform scaling and inventory management.
R5F21387CDFP#V0 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 80-LQFP
- Series:
- R8C/3x/38C
- Packaging:
- Tray
- Product Status:
- Obsolete
- Programmable:
- Not Verified
- Core Processor:
- R8C
- Core Size:
- 16-Bit
- Speed:
- 20MHz
- Connectivity:
- I2C, LINbus, SIO, SSU, UART/USART
- Peripherals:
- POR, PWM, Voltage Detect, WDT
- Number of I/O:
- 75
- Program Memory Size:
- 48KB (48K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 4K x 8
- RAM Size:
- 4K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.8V ~ 5.5V
- Data Converters:
- A/D 20x10b; D/A 2x8b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
R5F21387CDFP#V0 FAQ
1.How can I place an order for R5F21387CDFP#V0 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F21387CDFP#V0 on Aetrix. Our sales agent will provide a competitive quotation and guide you through the order confirmation once you accept the terms.
2.Are the price and stock information for R5F21387CDFP#V0 reliable?
The price and inventory of R5F21387CDFP#V0 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F21387CDFP#V0 is usually 5 days.
3.What payment methods are accepted for R5F21387CDFP#V0?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F21387CDFP#V0 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F21387CDFP#V0?
R5F21387CDFP#V0 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F21387CDFP#V0 order is processed, you will receive an email with the shipment details and tracking number.
Note: Tracking information may take up to 24 hours to appear. Express delivery typically takes 3–5 business days.
5.How can I obtain technical support or documentation for R5F21387CDFP#V0?
For technical support, including R5F21387CDFP#V0 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F21387CDFP#V0 requirements.
6.How does Aetrix verify that R5F21387CDFP#V0 is sourced from the original manufacturer or authorized distributors?
All R5F21387CDFP#V0 products on Aetrix are procured from qualified distributors and authorized channels. Our dedicated quality assurance team conducts strict verification, including traceability checks and, if necessary, third-party testing. This ensures that R5F21387CDFP#V0 meets industry standards.
7.What is the process for return or replacement of R5F21387CDFP#V0?
All R5F21387CDFP#V0 units undergo pre-shipment inspection (PSI). If there is an issue with R5F21387CDFP#V0, returns or replacements are accepted under the following conditions:
1.Quantity discrepancies, incorrect items, or visible external defects (such as breakage or corrosion), acknowledged by Aetrix.
2.The issue is reported within 90 days of delivery.
3.The R5F21387CDFP#V0 part is unused and in its original packaging.
Return procedure for R5F21387CDFP#V0:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F21387CDFP#V0 Tags

-
ATTINY4-TSHR
Microchip Technology

-
ATTINY10-TSHR
Microchip Technology

-
ATTINY10-TS8R
Microchip Technology

-
ATTINY202-SSNR
Microchip Technology

-
ATTINY202-SSFR
Microchip Technology

-
ATTINY402-SSNR
Microchip Technology

-
PIC16F15213T-I/MF
Microchip Technology

-
PIC16F15213-E/MF
Microchip Technology

-
PIC10F200T-I/OT
Microchip Technology

-
ATTINY412-SSNR
Microchip Technology

-
PIC10F202T-I/OT
Microchip Technology

-
ATTINY404-SSNR
Microchip Technology
Tech Hub
TTL and CMOS logic families differ in thresholds, loading, output drive, power and timing. This engineering guide compares 74HC and 74HCT, calculates noise margins and checks 3.3 V/5 V compatibility.
A practical engineering guide to 3.3V and 5V logic compatibility, input thresholds, resistor dividers, translator ICs, MOSFET level shifting, I2C pull-ups, timing limits and power-sequencing risks.
The 74HC595 uses push-pull logic outputs, while the TPIC6B595 uses 50 V open-drain DMOS sinks for higher-power loads. This guide compares timing, current limits, 3.3 V interfacing, load wiring, thermal…
The 74HC595 converts serial data into eight stable parallel outputs. This guide covers pin functions, shift and storage timing, OE and MR behavior, drive-current limits, cascading, voltage compatibilit…
A technical comparison of level-sensitive latches and edge-triggered flip-flops, covering timing windows, setup and hold limits, master–slave operation, time borrowing, race-through, HDL inference and…
A D latch stores one bit while Enable controls when data can pass. This reference covers gate-level operation, truth tables, transparency, setup and hold timing, LE versus OE, common ICs and practical …
An SR latch stores one bit through cross-coupled feedback. This engineering reference covers NOR and NAND implementations, truth tables, forbidden-state recovery, gated operation, switch debouncing, fa…
Latch circuits retain one bit through feedback. This technical reference covers SR and D latches, truth tables, transparency, timing limits, latch-versus-flip-flop behavior, applications and common log…
An engineering guide to LED driver operation, constant-current and constant-voltage outputs, linear and switching topologies, dimming, IC selection, calculations, replacement compatibility, and fault c…
Operational amplifier guide covering op amp basics, feedback, ideal vs real op amps, common configurations, buffer circuits, offset, bias current, gain-bandwidth, slew rate, rail-to-rail limits and sel…

