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

- Shipping:

Inventory:2,334
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F21388CNFP#U0 from Renesas Electronics is a 16-bit R8C CPU core microcontroller with 64 KB flash program ROM, 6 KB RAM, and 4 KB data flash (1 KB × 4 blocks) supporting background operation (BGO). It operates at up to 20 MHz (VCC = 2.7–5.5 V), features 75 CMOS I/O ports with pull-up resistors, and integrates UART0/1/2, I²C, LIN, 10-bit × 20-channel ADC, dual 8-bit DACs, and six timer modules (RA–RG) for motor control and real-time applications in consumer appliances.
For engineers reviewing the R5F21388CNFP#U0 datasheet, R5F21388CNFP#U0 pinout, R5F21388CNFP#U0 application, or R5F21388CNFP#U0 equivalent, key selection criteria include its 80-pin LQFP package, −20°C to +85°C industrial temperature grade (N version), on-chip debug support, and hardware LIN module implementation using Timer RA and UART0 - critical for appliance communication subsystems.
Technical Context
The R5F21388CNFP#U0 implements the R8C CPU core with 89 fundamental instructions, 16×16→32-bit multiplier, and multiply-accumulate capability. Its memory map spans 1 Mbyte (00000h–FFFFFh), with fixed interrupt vector table at 0FFDCh–0FFFFh and data flash at 03000h–03FFFh.
It supports four clock sources: XIN (up to 20 MHz crystal), XCIN (32 kHz crystal), high-speed on-chip oscillator (frequency-adjustable), and low-speed on-chip oscillator. Power management includes wait mode (4.0 µA @ 3.0 V, 32 kHz) and stop mode (2.0 µA @ 3.0 V), with voltage detection circuits for power-on reset and configurable level monitoring.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | R8C 16-bit core with 89 instructions, 50 ns min instruction time @ 20 MHz |
| Memory | 64 KB flash program ROM, 6 KB RAM, 4 KB data flash (1 KB × 4 blocks) with BGO |
| Operating Voltage | 1.8–5.5 V - enables single-supply operation across battery and line-powered systems |
| Peripherals | UART × 3, I²C × 1, LIN × 1, 10-bit ADC × 20 ch, 8-bit DAC × 2, comparator × 2 |
| Timers | Timer RA/RB (8-bit), RC/RD/RF/RG (16-bit), RE (8-bit RTC), DTC × 1 channel |
| Package & Temp | 80-pin LQFP (PLQP0080KB-A), −20°C to +85°C (N version) |
| Power Modes | Standard, wait (4.0 µA @ 32 kHz), stop (2.0 µA) - optimized for low-duty-cycle sensing |
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 |
|---|---|---|
| VCC / AVCC | Power supply input | Main and analog supply pins - require separate decoupling for noise-sensitive ADC/DAC operation |
| VSS / AVSS | Ground reference | Digital and analog ground - recommended star grounding to minimize coupling |
| XIN / XOUT | High-frequency clock input/output | Supports 20 MHz crystal or external clock; XIN must be driven for external clock mode |
| XCIN / XCOUT | Low-frequency clock input/output | 32 kHz crystal interface for RTC and low-power timing |
| RESET | Active-low reset input | Asynchronous reset signal - internal pull-up ensures reliable startup without external resistor |
| MODE | Boot mode select | Must be tied to VCC via resistor to enable normal flash execution mode |
| P0_0–P0_7 | Port 0 I/O | 8-bit bidirectional port with AN0–AN7, DA0/DA1, TRCIOA/TRCTRG functions - primary analog/digital I/O bank |
| P1_0–P1_7 | Port 1 I/O | 8-bit port with KI0–KI3 key inputs, AN8–AN11, CLK0, RXD0/TXD0 - supports wake-up from key press |
| P2_0–P2_7 | Port 2 I/O | 8-bit port with TRDIOA0/B0/C0/D0 and TRDIOA1/B1/C1/D1 - dedicated to Timer RD phase-control outputs |
| P7_0–P7_7 | Port 7 I/O | 8-bit port with AN12–AN19 - full 8-channel analog input extension for sensor arrays |
Key Features
| Feature | Design Value |
|---|---|
| Background Operation (BGO) | Data flash erasure/programming while CPU executes code - enables firmware updates without halting real-time tasks |
| Hardware LIN Module | Integrated LIN 2.0/2.1 support via Timer RA + UART0 - eliminates external transceiver for automotive body electronics |
| Three-Phase PWM Generation | Timer RD supports reset-synchronous and complementary PWM modes on 6 pins - directly drives 3-phase inverter gate drivers |
| On-Chip Debug Interface | Fully integrated debug circuit with flash rewrite - enables field firmware patching and real-time trace without JTAG emulator |
| EMI/EMS Optimized Design | Layout and clock architecture tuned for compliance in consumer appliance EMI tests - reduces need for external filtering |
Applications
| Home Appliance Motor Control | Audio System Front-End |
|---|---|
Use Scenario: Variable-speed drive for washing machine drum and pump motors. IC Role / Device Role / Timing Role: Main MCU executing FOC algorithms, generating 3-phase PWM via Timer RD, sampling current/voltage via 10-bit ADC, and communicating via LIN to main controller. Use Value: Eliminates external PWM generator and LIN transceiver; 6 KB RAM supports multi-tasking of motor control and UI logic. | Use Scenario: Digital audio source selector and volume control in compact stereo receivers. IC Role / Device Role / Timing Role: System controller managing I²C-connected DACs, reading rotary encoder inputs, driving LED display, and processing IR remote commands. Use Value: Dual 8-bit DACs provide analog output for headphone amp bias; 20-channel ADC monitors thermal sensors and power rails. |
| Office Equipment Power Management | Consumer IoT Sensor Hub |
Use Scenario: Standby power supervisor and wake-up manager in multifunction printers. IC Role / Device Role / Timing Role: Low-power monitor using stop mode (2.0 µA), detecting paper jam (INT0), button press (KI0–KI3), and USB activity (UART2), then waking main SoC. Use Value: Ultra-low stop-mode current extends battery life in portable scanners; voltage detection prevents brown-out resets during power transitions. | Use Scenario: Environmental sensor aggregator in smart home hubs with temperature, humidity, and air quality inputs. IC Role / Device Role / Timing Role: Data concentrator reading I²C sensors, performing local calibration, storing logs in data flash with BGO, and transmitting via UART to Wi-Fi module. Use Value: 4 KB data flash with BGO allows continuous logging during active sensing; 10-bit ADC resolution supports ±0.5°C temperature accuracy. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 16-bit MCU applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F21387CNFP | 48 KB program ROM, 4 KB RAM - 16 KB less flash and 2 KB less RAM than R5F21388CNFP#U0 | Suitable for simpler appliance UIs without complex motor control or large data buffers | Select when firmware size < 45 KB and RAM usage < 3.5 KB to reduce BOM cost |
| R5F2138ACNFP | 96 KB program ROM, 8 KB RAM - 32 KB more flash and 2 KB more RAM than R5F21388CNFP#U0 | Required for OTA-capable firmware with dual-bank update and extended feature sets | Choose when future-proofing for feature expansion or safety-certified diagnostics requiring redundant code space |
Compared with R5F21387CNFP and R5F2138ACNFP, the R5F21388CNFP#U0 delivers optimal balance of flash (64 KB), RAM (6 KB), and peripheral integration for mid-tier consumer appliances - avoiding under-provisioning of memory while minimizing die cost versus higher-density variants.
Availability
R5F21388CNFP#U0 is available at Aetrix Electronics and suitable for home appliance motor control, audio system front-end design, office equipment power management, and consumer IoT sensor hub applications requiring stable component supply and long-term industrial availability.
Supply support for R5F21388CNFP#U0 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 delivering microcontrollers, analog, power, and SoC products for automotive, industrial, and consumer markets.
The R8C/38C Group, including R5F21388CNFP#U0, was designed for cost-sensitive, high-reliability embedded control in consumer electronics - emphasizing EMI/EMS robustness, integrated analog peripherals, and low-power operation across wide voltage ranges.
FAQ
What is the maximum operating frequency of the R5F21388CNFP#U0 and under what conditions?
The R5F21388CNFP#U0 achieves a maximum operating frequency of 20 MHz when supplied with VCC = 2.7–5.5 V and using the XIN clock source. At lower supply voltages (1.8–5.5 V), the maximum frequency is reduced to 5 MHz. The minimum instruction execution time is 50 ns at 20 MHz, enabling deterministic real-time response for motor control loops and communication protocols.
Does the R5F21388CNFP#U0 support in-system programming and how is it implemented?
Yes, the R5F21388CNFP#U0 supports in-system programming via its on-chip debug interface and background operation (BGO) function. Program ROM and data flash can be rewritten while the CPU executes user code - critical for field firmware updates. Programming requires Renesas Flash Development Toolkit and a compatible debug adapter (e.g., E8a or E2 Lite), with no external high-voltage supply needed.
How many analog input channels does the R5F21388CNFP#U0 ADC support and what is its resolution?
The R5F21388CNFP#U0 integrates a 10-bit successive approximation ADC with 20 fully differential input channels (AN0–AN19). It includes sample-and-hold functionality and sweep mode for automatic sequential conversion across selected channels - enabling simultaneous monitoring of multiple sensors in home appliance applications without external multiplexers.
What peripheral resources does the R5F21388CNFP#U0 provide for motor control applications?
The R5F21388CNFP#U0 provides dedicated motor control peripherals including Timer RD (16-bit × 2, 6 PWM outputs), Timer RC (16-bit, 3 PWM outputs), and complementary PWM modes with dead-time insertion. Combined with 10-bit ADC for current sensing and dual 8-bit DACs for reference generation, it supports sensorless BLDC and PMSM control without external timers or DACs.
Is the R5F21388CNFP#U0 pin-compatible with other members of the R8C/38C Group?
Yes, all R8C/38C Group MCUs, including R5F21386CNFP, R5F21387CNFP, R5F21388CNFP#U0, R5F2138ACNFP, and R5F2138CCNFP, share identical 80-pin LQFP (PLQP0080KB-A) packaging and pinout. Firmware and PCB designs are interchangeable across the family - only flash/RAM capacity and data flash block count differ, enabling scalable product variants from a single hardware platform.
R5F21388CNFP#U0 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 80-LQFP
- Series:
- R8C/3x/38C
- Packaging:
- Tray
- Product Status:
- Discontinued at Digi-Key
- 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:
- 64KB (64K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 4K x 8
- RAM Size:
- 6K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.8V ~ 5.5V
- Data Converters:
- A/D 20x10b; D/A 2x8b
- Oscillator Type:
- Internal
- Operating Temperature:
- -20°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
R5F21388CNFP#U0 FAQ
1.How can I place an order for R5F21388CNFP#U0 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F21388CNFP#U0 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 R5F21388CNFP#U0 reliable?
The price and inventory of R5F21388CNFP#U0 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F21388CNFP#U0 is usually 5 days.
3.What payment methods are accepted for R5F21388CNFP#U0?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F21388CNFP#U0 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F21388CNFP#U0?
R5F21388CNFP#U0 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F21388CNFP#U0 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 R5F21388CNFP#U0?
For technical support, including R5F21388CNFP#U0 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F21388CNFP#U0 requirements.
6.How does Aetrix verify that R5F21388CNFP#U0 is sourced from the original manufacturer or authorized distributors?
All R5F21388CNFP#U0 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 R5F21388CNFP#U0 meets industry standards.
7.What is the process for return or replacement of R5F21388CNFP#U0?
All R5F21388CNFP#U0 units undergo pre-shipment inspection (PSI). If there is an issue with R5F21388CNFP#U0, 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 R5F21388CNFP#U0 part is unused and in its original packaging.
Return procedure for R5F21388CNFP#U0:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F21388CNFP#U0 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…

