Renesas R5F21345MNFP#X4
- Part No.:
- R5F21345MNFP#X4
- Manufacturer:
- Renesas
- Category:
- Microcontrollers
- Package:
- 48-LQFP
- Datasheet:
-
R5F21345MNFP#X4.pdf
- Description:
- IC MCU 16BIT 24KB FLASH 48LFQFP
- Quantity:
- Payment:

- Shipping:

Inventory:4,489
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F21345MNFP from Renesas is a 16-bit R8C CPU core microcontroller with 24 KB flash program ROM, 2 KB RAM, and 4 KB data flash (1 KB × 4 blocks) supporting background operation (BGO). It delivers 50 ns minimum instruction execution at 20 MHz (VCC = 2.7–5.5 V), integrates dual 8-bit timers (RA/RB), dual 16-bit timers (RC/RD), real-time clock (RE), 10-bit × 12-channel ADC, dual 8-bit DACs, LIN hardware module, and I²C/UART/SSU serial interfaces. It targets cost-sensitive, low-power embedded control in consumer audio and office equipment.
For engineers reviewing the R5F21345MNFP datasheet, R5F21345MNFP pinout, R5F21345MNFP application, or R5F21345MNFP equivalent, key selection considerations include its N-version temperature range (−20°C to +85°C), 48-pin LQFP package (PLQP0048KB-A), on-chip high-speed/low-speed oscillators, voltage detection circuitry, and integrated LIN protocol support for automotive-adjacent subsystems.
Technical Context
The R5F21345MNFP implements the R8C CPU core with 89 fundamental instructions, 1 Mbyte address space, and a dedicated 16×16→32-bit multiplier with multiply-accumulate capability. Its memory architecture separates 24 KB program ROM, 2 KB RAM, and 4 KB data flash with BGO-enabling firmware updates without halting execution.
Peripheral integration includes three UART channels (UART0/1/2), one I²C bus (shared with SSU), hardware LIN (using timer RA and UART0), 12-channel 10-bit ADC with sample-and-hold and sweep mode, two 8-bit DACs, four independent comparators (A/B), and five flexible timers (RA–RE) supporting PWM, input capture, output compare, and three-phase complementary waveforms via timer RD.
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 | 24 KB flash program ROM, 2 KB RAM, 4 KB data flash (1 KB × 4 blocks) with background operation (BGO) |
| Operating Speed | 50 ns min instruction time at 20 MHz (VCC = 2.7–5.5 V); 200 ns at 5 MHz (VCC = 1.8–5.5 V) |
| Analog Peripherals | 10-bit × 12-channel ADC with sample-and-hold and sweep mode; dual 8-bit DACs (DA0/DA1); 4 comparators (2× A, 2× B) |
| Timers | Timer RA/RB (8-bit × 2), Timer RC (16-bit × 1), Timer RD (16-bit × 2 with 6-pin complementary PWM), Timer RE (8-bit RTC) |
| Serial Interfaces | UART0/1/2 (3 channels), I²C-bus (1 channel, shared with SSU), SSU (1 channel), hardware LIN (1 channel) |
| Supply & Temp | VCC = 1.8–5.5 V; operating ambient: −20°C to +85°C (N version); 48-pin LQFP (PLQP0048KB-A) |
Pinout & Package
Package: 48-pin LQFP (PLQP0048KB-A), 7 mm × 7 mm body, 0.5 mm pitch, surface-mount.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P0_0–P0_7 | CMOS I/O port with analog input (AN0–AN7) | Configurable digital I/O; AN0–AN7 serve as 10-bit ADC inputs and DA1/DA0 outputs |
| P1_0–P1_7 | CMOS I/O port with analog input (AN8–AN11), key interrupt (KI0–KI3), comparator inputs | Supports key scan, analog sensing (LVREF, LVCMP1/2), and TRCIOx timer functions |
| P2_0–P2_7 | CMOS I/O port with timer RD I/O (TRDIOA0–TRDIOD1) | Primary interface for 16-bit timer RD's 8-pin complementary PWM and capture/compare |
| P3_0, P3_1, P3_3–P3_5, P3_7 | CMOS I/O port with UART2/I²C/SSU functions | Shared pins for RXD2/TXD2/SCL2/SDA2 (I²C), SSI/SSCK/SSO (SSU), and CTS2/RTS2 |
| P4_2–P4_7 | VREF input, XCIN/XCOUT, XIN/XOUT, RESET, MODE | VREF sets ADC/DAC reference; XCIN/XCOUT supports 32 kHz crystal; XIN/XOUT supports main oscillator |
| P6_0–P6_7 | CMOS I/O port with TREO, RXD1/TXD1, INT2/INT3/INT4 | TREO outputs divided RTC clock; RXD1/TXD1 enable UART1; INT2–INT4 support external interrupts |
Key Features
| Feature | Design Value |
|---|---|
| Background Operation (BGO) | Data flash erasure/programming proceeds concurrently with CPU code execution-no runtime interruption required |
| Hardware LIN Module | Full LIN 2.0/2.1 protocol support via dedicated logic using timer RA and UART0-eliminates software bit-banging overhead |
| Three-Phase Complementary PWM | Timer RD generates synchronized 6-pin complementary PWM with dead-time control for motor gate drivers |
| Low-Power Operating Modes | Wait mode (3.5 µA @ 3.0 V, f(XCIN)=32 kHz) and stop mode (2.0 µA @ 3.0 V) enable battery-powered longevity |
| On-Chip Oscillators | Integrated high-speed (adjustable) and low-speed (32 kHz) on-chip oscillators reduce external component count and BOM cost |
Applications
| Audio System Control | Office Equipment Motor Drive |
|---|---|
|
Use Scenario: Digital audio receiver managing volume, source selection, EQ, and display backlight. IC Role / Device Role / Timing Role: Main system controller executing real-time audio processing tasks, driving DACs (DA0/DA1), reading ADC inputs (AN0–AN11) for sensor feedback, and communicating via UART/I²C. Use Value: Integrated 10-bit ADC, dual 8-bit DACs, and hardware UART/I²C eliminate external signal conditioning and interface ICs-reducing board area and component count. |
Use Scenario: Copier/scanner paper feed and drum motor control with position sensing and thermal monitoring. IC Role / Device Role / Timing Role: Motion controller generating complementary PWM (via timer RD) for H-bridge drivers, reading encoder signals via timer RC input capture, and monitoring temperature via ADC. Use Value: Six-pin complementary PWM with dead-time insertion and input capture on 12 ADC channels enable precise closed-loop motor control without external timing ICs. |
| Consumer Appliance UI Panel | LIN-Based Sensor Node |
|
Use Scenario: Microwave oven or washing machine front-panel interface with touch keys, LED indicators, and buzzer. IC Role / Device Role / Timing Role: User interface processor scanning KI0–KI3 key inputs, driving LEDs via high-current I/O ports, generating tone via timer RB PWM, and managing real-time countdown via timer RE. Use Value: Dedicated key interrupt inputs (KI0–KI3), RTC (timer RE), and programmable waveform generation (timer RB) provide responsive UI functionality with minimal external components. |
Use Scenario: Automotive HVAC sensor node reporting cabin temperature and humidity over LIN bus to main ECU. IC Role / Device Role / Timing Role: LIN slave node converting analog sensor outputs (via ADC) into LIN frames using hardware LIN module and UART0. Use Value: On-die LIN transceiver logic eliminates need for external LIN PHY-reducing cost, footprint, and EMC filtering complexity in distributed sensor systems. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 16-bit MCU applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F21345MDFP | D-version variant with extended temperature range (−40°C to +85°C); identical memory, peripherals, and pinout | Required for industrial or under-hood automotive environments where ambient exceeds −20°C | Select R5F21345MDFP when operating below −20°C is mandatory; otherwise R5F21345MNFP suffices for commercial indoor use. |
| R5F21344MNFP | 16 KB program ROM, 1.5 KB RAM, same 4 KB data flash and peripheral set; otherwise pin-to-pin compatible | Suitable for simpler control tasks with smaller firmware footprints and lower RAM usage | Choose R5F21344MNFP to reduce cost when application firmware fits within 16 KB and requires ≤1.5 KB RAM. |
Compared with R5F21345MDFP and R5F21344MNFP, the R5F21345MNFP offers optimal balance of code space (24 KB), RAM (2 KB), and commercial-temperature suitability-making it ideal for mid-complexity consumer and office equipment where extended temperature range or reduced memory are not required.
Availability
R5F21345MNFP is available at Aetrix Electronics and suitable for audio equipment control, office automation motor drives, consumer appliance user interfaces, and LIN-based sensor nodes requiring stable component supply across production lifecycles.
Supply support for R5F21345MNFP 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 is a global semiconductor leader specializing in microcontrollers, analog, power, and SoC solutions for automotive, industrial, and IoT markets.
The R8C/34M Group-including R5F21345MNFP-is designed for cost-optimized, low-power embedded control in consumer electronics, office equipment, and industrial subsystems where integration, reliability, and long-term supply stability are critical.
FAQ
What is the maximum operating frequency and corresponding supply voltage range for the R5F21345MNFP?
The R5F21345MNFP achieves a minimum instruction execution time of 50 ns at 20 MHz, requiring VCC = 2.7 V to 5.5 V. At lower frequencies-such as 5 MHz-it operates down to VCC = 1.8 V, enabling ultra-low-voltage operation in battery-powered devices while maintaining full peripheral functionality.
Does the R5F21345MNFP support in-system programming of its data flash during normal operation?
Yes, the R5F21345MNFP supports background operation (BGO) for its 4 KB data flash (1 KB × 4 blocks), allowing erase and program operations to execute concurrently with CPU code execution-enabling firmware updates, parameter storage, and logging without halting the application.
How many UART channels does the R5F21345MNFP integrate, and what additional protocols do they support?
The R5F21345MNFP integrates three UART channels: UART0 and UART1 operate in standard UART or clock-synchronous serial modes, while UART2 adds I²C-bus mode and multiprocessor communication-enabling direct connection to I²C sensors and multi-drop serial networks without external level shifters or protocol converters.
What is the role of the hardware LIN module in the R5F21345MNFP, and which peripherals does it utilize?
The hardware LIN module in the R5F21345MNFP implements LIN 2.0/2.1 protocol handling using timer RA for baud rate timing and UART0 for frame transmission/reception-offloading LIN protocol stack execution from the CPU and ensuring deterministic timing for automotive-adjacent subsystems like HVAC or lighting controls.
Can the R5F21345MNFP generate three-phase motor drive waveforms, and which timer enables this capability?
Yes, the R5F21345MNFP's timer RD supports reset synchronous PWM and complementary PWM modes, generating synchronized three-phase waveforms across six output pins (TRDIOA0–TRDIOD1) with configurable dead time-enabling direct control of 3-phase BLDC or stepper motor gate drivers without external PWM generators.
R5F21345MNFP#X4 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 48-LQFP
- Series:
- R8C/3x/34M
- 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:
- 43
- Program Memory Size:
- 24KB (24K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 4K x 8
- RAM Size:
- 2K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.8V ~ 5.5V
- Data Converters:
- A/D 12x10b; D/A 2x8b
- Oscillator Type:
- Internal
- Operating Temperature:
- -20°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
R5F21345MNFP#X4 FAQ
1.How can I place an order for R5F21345MNFP#X4 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F21345MNFP#X4 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 R5F21345MNFP#X4 reliable?
The price and inventory of R5F21345MNFP#X4 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F21345MNFP#X4 is usually 5 days.
3.What payment methods are accepted for R5F21345MNFP#X4?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F21345MNFP#X4 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F21345MNFP#X4?
R5F21345MNFP#X4 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F21345MNFP#X4 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 R5F21345MNFP#X4?
For technical support, including R5F21345MNFP#X4 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F21345MNFP#X4 requirements.
6.How does Aetrix verify that R5F21345MNFP#X4 is sourced from the original manufacturer or authorized distributors?
All R5F21345MNFP#X4 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 R5F21345MNFP#X4 meets industry standards.
7.What is the process for return or replacement of R5F21345MNFP#X4?
All R5F21345MNFP#X4 units undergo pre-shipment inspection (PSI). If there is an issue with R5F21345MNFP#X4, 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 R5F21345MNFP#X4 part is unused and in its original packaging.
Return procedure for R5F21345MNFP#X4:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F21345MNFP#X4 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…

