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

- Shipping:

Inventory:4,116
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F21345CNFP#30 from Renesas is a 16-bit R8C CPU core MCU with 24 KB program flash, 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 - deployed in consumer audio and office equipment control subsystems.
For engineers reviewing the R5F21345CNFP#30 datasheet, R5F21345CNFP#30 pinout, R5F21345CNFP#30 application, or R5F21345CNFP#30 equivalent, key selection considerations include its 48-pin LQFP package, -20°C to +85°C operating range (N version), on-chip voltage detection (3 levels), low-power wait/stop modes (down to 2.0 µA), and integrated LIN physical layer support via UART0 and timer RA.
Technical Context
The R5F21345CNFP#30 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 program ROM at 0A000h–0FFFFh, data flash at 03000h–03FFFh, and RAM at 00400h–00BFFh.
Peripheral integration includes UART0/1/2 (with I²C mode on UART2), synchronous serial unit (SSU), hardware LIN (using UART0 + timer RA), 12-channel ADC with sample-and-hold and sweep mode, two independent 8-bit DACs, four programmable timer modules (RA–RD) plus real-time clock (RE), and DTC for autonomous data transfers - all managed via dedicated SFRs mapped to 0000h–002FFh and 02C00h–02FFFh.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | R8C 16-bit core with 89 instructions, 16×16→32-bit multiplier, and MAC support - enables efficient motor control and signal processing loops. |
| Memory | 24 KB program flash (ROM), 2 KB RAM, 4 KB data flash (1 KB × 4 blocks) with BGO - allows firmware updates without halting application execution. |
| Execution 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) - supports real-time response in appliance UI and sensor polling. |
| Analog Peripherals | 10-bit × 12-channel ADC with sample-and-hold and sweep mode; dual 8-bit DACs (DA0/DA1) - suitable for closed-loop audio volume control and sensor calibration. |
| Timers | Timer RA/RB (8-bit × 2), RC (16-bit × 1), RD (16-bit × 2 with 6-PWM output), RE (8-bit RTC) - provides PWM generation, input capture, and accurate timekeeping for scheduling. |
| Serial Interfaces | UART0/1/2 (UART2 supports I²C-bus mode), SSU, hardware LIN module - enables communication with displays, sensors, and automotive-grade submodules. |
| Power Management | Voltage detection (3 levels), wait mode (3.5 µA @ 3.0 V, 32 kHz XCIN), stop mode (2.0 µA) - extends battery life in portable consumer devices. |
Pinout & Package
Package: 48-pin LQFP (PLQP0048KB-A), 7 mm × 7 mm, 0.5 mm pitch, N-version (-20°C to +85°C).
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P0_0–P0_7 | CMOS I/O port with analog inputs (AN0–AN7) | Configurable as digital I/O or ADC inputs; pull-up resistors programmable per pin - simplifies button sensing and analog sensor interfacing. |
| P1_0–P1_7 | CMOS I/O port with AN8–AN11, KI0–KI3, TRCCLK | Supports key interrupt inputs (KI0–KI3) and external trigger (TRCCLK) - enables low-latency user interface response. |
| P2_0–P2_7 | CMOS I/O port with TRDIOx and TRDCLK | Dedicated to Timer RD I/O functions (TRDIOA0/B0/C0/D0, A1/B1/C1/D1) - enables three-phase motor PWM with complementary outputs. |
| P3_0–P3_7 | CMOS I/O port with UART2/I²C/SSU signals | Shares RXD2/TXD2/SCL2/SDA2 and SSO/SSI/SSCK - allows flexible peripheral multiplexing without external logic. |
| P4_2–P4_7 | VREF, MODE, XCIN/XCOUT, XIN/XOUT | VREF sets ADC/DAC reference; MODE selects boot mode; dual crystal inputs support high-precision RTC and main system clock. |
| P6_0–P6_7 | CMOS I/O port with TREO, RXD1/TXD1, INT2–INT4 | TREO outputs divided RTC clock; INT2–INT4 provide priority-level interrupts - supports time-synchronized event handling. |
| RESET | Active-low reset input | Asynchronous reset assertion clears CPU registers and initializes peripherals - ensures deterministic startup after power-on or brownout. |
| VCC/AVCC, VSS/AVSS | Power supply and ground | Dual power domains isolate analog (AVCC/AVSS) from digital (VCC/VSS) - reduces noise coupling into ADC/DAC paths. |
Key Features
| Feature | Design Value |
|---|---|
| Background Operation (BGO) | Data flash erasure/programming proceeds while CPU executes application code - enables seamless firmware field updates. |
| Hardware LIN Module | Integrated LIN 2.1 physical layer using UART0 and timer RA - eliminates external transceiver for automotive body electronics communication. |
| Real-Time Clock (Timer RE) | 8-bit counter with seconds/minutes/hours/days-of-week registers and output compare - provides calendar-aware scheduling without external RTC IC. |
| Low-Power Operating Modes | Wait mode (3.5 µA @ 32 kHz XCIN) and stop mode (2.0 µA) - extends runtime in battery-powered remote controls and smart appliances. |
| On-Chip Voltage Detection | Three configurable voltage detection levels (VDD monitor, VD0/VD1) with reset and interrupt options - replaces discrete supervisor ICs in cost-sensitive designs. |
Applications
| Audio Volume Control System | Office Equipment Keypad Interface |
|---|---|
Use Scenario: Digital audio amplifier with user-adjustable volume and tone settings in home theater receivers. IC Role / Device Role / Timing Role: R5F21345CNFP#30 acts as the front-end control MCU, reading rotary encoder inputs, updating DAC outputs (DA0/DA1), and managing display backlight via PWM from Timer RB. Use Value: Integrated 10-bit ADC and dual 8-bit DACs eliminate external converters; BGO enables silent firmware updates during playback. | Use Scenario: Multi-function printer control panel with tactile keypad, LCD, and status LEDs. IC Role / Device Role / Timing Role: R5F21345CNFP#30 serves as the UI controller, scanning KI0–KI3 key inputs, driving LED segments via high-current I/O ports, and communicating with main SoC via UART2 in I²C mode. Use Value: Key interrupt capability (9 sources, 7 priority levels) ensures responsive button press detection; 43 CMOS I/O pins reduce need for GPIO expanders. |
| Consumer Appliance Motor Drive | Smart Thermostat Sensor Hub |
Use Scenario: Brushless DC fan control in air purifiers with speed regulation and fault monitoring. IC Role / Device Role / Timing Role: R5F21345CNFP#30 generates 6-channel complementary PWM via Timer RD for three-phase inverter gate drive, reads hall sensor inputs on P2_0–P2_7, and monitors overcurrent via ADC channel AN5. Use Value: Complementary PWM mode with dead-time insertion prevents shoot-through; 12-channel ADC supports simultaneous temperature and current sensing. | Use Scenario: Battery-powered HVAC thermostat aggregating ambient temperature, humidity, and occupancy data. IC Role / Device Role / Timing Role: R5F21345CNFP#30 operates in stop mode between 10-second sensor reads, wakes on RTC alarm (Timer RE), samples thermistor/HTS221 via I²C (UART2), and logs data to data flash. Use Value: 2.0 µA stop-mode current extends 2-year battery life; data flash BGO preserves log integrity during wireless firmware patching. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 16-bit MCU applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F21344CNFP | 16 KB program ROM, 1.5 KB RAM, same package and peripheral set | Suitable for simpler UI or sensor-only nodes where code footprint < 16 KB | Select when application firmware fits within 16 KB and BOM cost reduction is prioritized over future feature expansion. |
| R5F21345CDFP | Identical memory and peripherals, but D-version (-40°C to +85°C) industrial temperature grade | Required for automotive cabin modules or outdoor-rated equipment exposed to extended thermal stress | Choose only if operating ambient exceeds 85°C or requires -40°C startup capability; otherwise N-version suffices. |
Compared with R5F21344CNFP, the R5F21345CNFP#30 offers 8 KB more program flash and 0.5 KB more RAM for enhanced feature sets, while R5F21345CDFP provides identical functionality with extended temperature qualification - making R5F21345CNFP#30 optimal for cost-sensitive consumer applications within standard industrial temperature limits.
Availability
R5F21345CNFP#30 is available at Aetrix Electronics and suitable for audio equipment control, office device UI management, and consumer appliance motor subsystems requiring stable component supply across multi-year production cycles.
Supply support for R5F21345CNFP#30 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/34C Group, including R5F21345CNFP#30, was designed for cost-effective, low-power embedded control in consumer electronics - emphasizing integrated analog peripherals, LIN connectivity, and robust EMI/EMS performance.
FAQ
What is the maximum operating frequency and corresponding supply voltage range for the R5F21345CNFP#30?
The R5F21345CNFP#30 supports a maximum operating frequency of 20 MHz at VCC = 2.7–5.5 V, and 5 MHz at VCC = 1.8–5.5 V. Minimum instruction execution time is 50 ns under the 20 MHz condition. This dual-frequency capability allows designers to balance performance and power consumption based on application requirements - for example, running at 20 MHz during active UI interaction and scaling down to 5 MHz during idle sensing phases.
Does the R5F21345CNFP#30 support in-system programming and debug interfaces?
Yes, the R5F21345CNFP#30 includes on-chip debug functionality and supports in-system programming via its on-board flash rewrite capability. It uses the single-wire debug interface compatible with Renesas E8/E8a emulators. The device also features ROM code protection and ID code check to prevent unauthorized firmware access - enabling secure development, field updates, and IP protection throughout the product lifecycle.
How many analog-to-digital converter channels does the R5F21345CNFP#30 integrate, and what is their resolution?
The R5F21345CNFP#30 integrates a 10-bit resolution analog-to-digital converter with 12 input channels (AN0–AN11). It includes sample-and-hold circuitry and supports sweep mode for automatic sequential conversion - allowing precise measurement of multiple sensor inputs (e.g., thermistors, potentiometers, current shunts) without CPU intervention, reducing firmware overhead in real-time control loops.
What peripheral resources enable LIN bus communication on the R5F21345CNFP#30?
The R5F21345CNFP#30 implements hardware LIN 2.1 compliance using UART0 combined with timer RA for baud rate generation and synchronization. This integrated LIN module eliminates the need for an external LIN transceiver in basic node applications such as automotive door modules or HVAC actuators - significantly reducing BOM count and PCB area while maintaining protocol compliance and error handling per LIN specification.
Is the R5F21345CNFP#30 pin-compatible with other members of the R8C/34C Group, such as R5F21346CNFP?
Yes, the R5F21345CNFP#30 is pin-compatible with all 48-pin LQFP variants in the R8C/34C Group, including R5F21344CNFP and R5F21346CNFP. They share identical PLQP0048KB-A packaging, I/O pin assignments, and peripheral signal mapping - enabling drop-in replacement during design iteration or production ramp, provided software accommodates differences in program ROM size (24 KB vs. 16 KB or 32 KB) and RAM capacity.
R5F21345CNFP#30 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 48-LQFP
- Series:
- R8C/3x/34C
- Packaging:
- Tray
- Product Status:
- Active
- 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:
R5F21345CNFP#30 FAQ
1.How can I place an order for R5F21345CNFP#30 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F21345CNFP#30 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 R5F21345CNFP#30 reliable?
The price and inventory of R5F21345CNFP#30 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F21345CNFP#30 is usually 5 days.
3.What payment methods are accepted for R5F21345CNFP#30?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F21345CNFP#30 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F21345CNFP#30?
R5F21345CNFP#30 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F21345CNFP#30 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 R5F21345CNFP#30?
For technical support, including R5F21345CNFP#30 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F21345CNFP#30 requirements.
6.How does Aetrix verify that R5F21345CNFP#30 is sourced from the original manufacturer or authorized distributors?
All R5F21345CNFP#30 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 R5F21345CNFP#30 meets industry standards.
7.What is the process for return or replacement of R5F21345CNFP#30?
All R5F21345CNFP#30 units undergo pre-shipment inspection (PSI). If there is an issue with R5F21345CNFP#30, 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 R5F21345CNFP#30 part is unused and in its original packaging.
Return procedure for R5F21345CNFP#30:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F21345CNFP#30 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…

