Renesas R5F21331CDFP#V2
- Part No.:
- R5F21331CDFP#V2
- Manufacturer:
- Renesas
- Category:
- Microcontrollers
- Package:
- 32-LQFP
- Datasheet:
-
R5F21331CDFP#V2.pdf
- Description:
- IC MCU 16BIT 4KB FLASH 32LQFP
- Quantity:
- Payment:

- Shipping:

Inventory:7,762
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F21331CDFP#V2 from Renesas Electronics is a 16-bit R8C CPU core microcontroller with 4 KB flash program ROM, 512 bytes 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 12-channel 10-bit A/D conversion, dual 8-bit D/A outputs, and hardware LIN bus support via Timer RA and UART0 - deployed in consumer audio equipment and office automation systems.
For engineers reviewing the R5F21331CDFP#V2 datasheet, R5F21331CDFP#V2 pinout, R5F21331CDFP#V2 application, or R5F21331CDFP#V2 equivalent, key selection criteria include its -40°C to +85°C industrial temperature grade (D version), 32-pin LQFP package (PLQP0032GB-A), integrated voltage detection circuitry, and real-time clock (Timer RE) with weekday-aware timekeeping.
Technical Context
The R5F21331CDFP#V2 implements the R8C CPU core with 89 fundamental instructions and a dedicated 16×16→32-bit multiplier for efficient signal processing. Its memory map spans 1 Mbyte (00000h–FFFFFh), with fixed interrupt vector table at 0FFDCh–0FFFFh and data flash mapped to 03000h–03FFFh.
It integrates four independent clock sources: XIN/XOUT (up to 20 MHz), XCIN/XCOUT (32 kHz), high-speed on-chip oscillator (adjustable), and low-speed on-chip oscillator - enabling flexible power management across standard, wait (3.5 µA @ 3.0 V), and stop (2.0 µA @ 3.0 V) modes.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | R8C 16-bit core with 89 instructions and 16×16→32-bit hardware multiplier |
| Operating Frequency | 20 MHz max (VCC = 2.7–5.5 V); 5 MHz max (VCC = 1.8–5.5 V) |
| Memory | 4 KB program ROM, 512 bytes RAM, 4 KB data flash (1 KB × 4 blocks) with BGO |
| A/D Converter | 10-bit resolution, 12 input channels, sample-and-hold, sweep mode |
| D/A Converter | 8-bit resolution × 2 channels (DA0, DA1), output-only analog generation |
| Temperature Range | -40°C to +85°C (D version), qualified for industrial environments |
| Power Consumption | Typ. 6.5 mA @ 5.0 V/20 MHz; 3.5 µA in wait mode (32 kHz XCIN) |
| Interrupt System | 69 interrupt vectors, 7 external interrupts (INT0–INT3, KI0–KI3), 7 priority levels |
Pinout & Package
Package: 32-pin LQFP (PLQP0032GB-A), 7 mm × 7 mm body, 0.8 mm pin pitch, surface-mount compatible.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VCC/AVCC | Power supply input | Primary digital (VCC) and analog (AVCC) supply pins; AVCC requires decoupling capacitor to AVSS for A/D/D/A stability |
| VSS/AVSS | Ground reference | Digital (VSS) and analog (AVSS) ground; separate routing recommended to minimize noise coupling into analog peripherals |
| RESET | Reset input | Active-low asynchronous reset; initiates hardware reset sequence upon logic low assertion |
| XIN/XOUT | External crystal interface | Supports 20 MHz ceramic resonator or crystal; enables precise timing for system clock and UART baud rate accuracy |
| XCIN/XCOUT | 32 kHz crystal interface | Drives low-power real-time clock (Timer RE) and watchdog timer during ultra-low-power stop/wait modes |
| P0_0–P0_7 | CMOS I/O port | 8-bit bidirectional port with programmable pull-up resistors; supports AN0–AN7, DA0/DA1, TREO, and TRCIOA/TRCTRG functions |
| P1_0–P1_7 | CMOS I/O port | 8-bit bidirectional port with key interrupt inputs (KI0–KI3); supports AN8–AN11, TRAIO, TRBO, and TRCIOC/TRCIOD |
| ADTRG | A/D trigger input | Hardware-synchronized sampling initiation; allows precise timing of analog conversions relative to external events or timers |
| UART0/UART1/UART2 | Serial interfaces | Three UART channels: UART0+RA for LIN, UART1 for general comms, UART2 with I²C-bus mode and multiprocessor support |
| IVREF1/IVREF3 | Comparator reference | Analog reference inputs for Comparator B; enable threshold-based event detection independent of A/D converter |
Key Features
| Feature | Design Value |
|---|---|
| Background Operation (BGO) | Data flash erase/write while executing code from program ROM - enables firmware updates without halting real-time control tasks |
| Hardware LIN Module | Integrated LIN 2.0 physical layer via Timer RA and UART0 - eliminates external transceiver for automotive body electronics and sensor networks |
| Real-Time Clock (Timer RE) | Full calendar engine (seconds, minutes, hours, weekday); retains time in stop mode using 32 kHz XCIN - no external RTC IC required |
| Voltage Detection Circuit | Configurable reset and detection thresholds (VDD monitor 0/1); ensures safe brown-out recovery and system-level power integrity |
| DTC (Data Transfer Controller) | Single-channel DMA-like controller with 23 activation sources - offloads CPU during peripheral-to-memory transfers (e.g., A/D buffer fills) |
| EMI/EMS Optimized Design | Layout and circuit-level enhancements per IEC 61000-4-x standards - reduces need for external filtering in noisy appliance environments |
Applications
| Audio Equipment Control | Office Automation Devices |
|---|---|
Use Scenario: Digital audio mixer with volume leveling, tone adjustment, and source switching in home theater receivers. IC Role / Device Role / Timing Role: Main system controller managing UI, audio codec interface, IR remote decoding, and real-time DSP parameter updates. Use Value: Integrated 12-channel A/D monitors potentiometer positions and sensor feedback; dual D/A outputs drive analog VU meters and bias circuits without external DACs. | Use Scenario: Automatic document feeder (ADF) subsystem in multifunction printers handling paper jam detection and motor sequencing. IC Role / Device Role / Timing Role: Dedicated motion control MCU coordinating stepper drivers, optical sensors, and solenoid actuators with precise timing. Use Value: Hardware LIN interface communicates with main controller over single-wire bus; 32-pin LQFP fits compact ADF PCB layout constraints. |
| Consumer Appliance UI | Industrial Sensor Hub |
Use Scenario: Touchless control panel in microwave ovens using capacitive proximity sensing and LED status feedback. IC Role / Device Role / Timing Role: Front-end interface MCU handling touch scan, display update, buzzer timing, and safety interlock monitoring. Use Value: Key input interrupt (KI0–KI3) supports low-latency gesture recognition; 10-bit A/D reads thermistor and cavity temperature with 12-point sweep calibration. | Use Scenario: Environmental monitoring node aggregating temperature, humidity, and CO₂ readings for HVAC control in commercial buildings. IC Role / Device Role / Timing Role: Edge-processing node performing local averaging, alarm thresholding, and UART-based Modbus RTU transmission. Use Value: 3.5 µA wait-mode current extends battery life in wireless nodes; data flash BGO enables field firmware patching without service interruption. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F21331CNFP | Same core, memory, and peripherals but rated for -20°C to +85°C (N version) | Limited to commercial-grade environments; unsuitable for extended cold storage or outdoor enclosures | Select only if operating ambient stays above -20°C and cost sensitivity outweighs industrial qualification |
| R5F21332CDFP | 8 KB program ROM, 1 KB RAM, identical package and temperature grade | Enables larger firmware images with bootloader, USB stack, or enhanced communication protocols | Choose when application requires >4 KB code space or future-proofing for feature expansion |
Compared with R5F21331CNFP, the R5F21331CDFP#V2 provides guaranteed operation down to -40°C - critical for factory automation panels. Against R5F21332CDFP, it trades ROM headroom for lower cost and footprint efficiency in resource-constrained designs.
Availability
R5F21331CDFP#V2 is available at Aetrix Electronics and suitable for audio equipment control, office automation devices, consumer appliance UI, and industrial sensor hub applications requiring stable component supply across long production lifecycles.
Supply support for R5F21331CDFP#V2 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/33C Group, including R5F21331CDFP#V2, was designed for cost-sensitive, low-power embedded control in consumer electronics - emphasizing integration of A/D, D/A, LIN, and real-time clock to reduce BOM count and PCB area.
FAQ
What is the maximum operating frequency of the R5F21331CDFP#V2 and under what supply conditions?
The R5F21331CDFP#V2 achieves a maximum operating frequency of 20 MHz when powered at VCC = 2.7 V to 5.5 V, with minimum instruction execution time of 50 ns. At reduced supply voltages (1.8 V to 5.5 V), the maximum frequency drops to 5 MHz (200 ns min. instruction time), enabling flexible power/performance trade-offs in battery-powered applications.
Does the R5F21331CDFP#V2 support in-circuit debugging and flash reprogramming?
Yes, the R5F21331CDFP#V2 includes on-chip debug capability and on-board flash rewrite functionality. It supports full-cycle programming and erasure of both program ROM (1,000 cycles) and data flash (10,000 cycles) without requiring external programmers - enabling field firmware updates and development iteration directly through the on-chip debug interface.
How does the background operation (BGO) function work in the R5F21331CDFP#V2 data flash?
The R5F21331CDFP#V2 data flash supports background operation (BGO), allowing the CPU to execute code from program ROM while simultaneously erasing or writing to data flash blocks. This enables seamless firmware updates, parameter logging, or calibration storage without interrupting real-time control loops - critical for uninterrupted operation in audio or motor control systems.
What peripheral resources are allocated to LIN bus communication on the R5F21331CDFP#V2?
The R5F21331CDFP#V2 implements hardware LIN 2.0 using Timer RA for baud rate generation and pulse shaping, combined with UART0 for data framing and error checking. Pins P1_6 (CLK0), P1_4 (TXD0), and P1_5 (RXD0) are dedicated to this function, eliminating need for external LIN transceivers in compliant automotive and industrial subnetworks.
Can the R5F21331CDFP#V2 operate from a 32 kHz crystal alone, and what functions remain active in stop mode?
Yes, the R5F21331CDFP#V2 can run exclusively from the 32 kHz XCIN/XCOUT crystal in stop mode, consuming only 2.0 µA at 3.0 V. In this state, Timer RE (real-time clock), watchdog timer (with low-speed oscillator), and voltage detection circuit remain functional - enabling wake-up on time-of-day alarms, supply faults, or external interrupts while preserving battery life.
R5F21331CDFP#V2 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 32-LQFP
- Series:
- R8C/3x/33C
- 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:
- 27
- Program Memory Size:
- 4KB (4K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 512 x 8
- Voltage - Supply (Vcc/Vdd):
- 1.8V ~ 5.5V
- Data Converters:
- A/D 12x10b; D/A 2x8b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
R5F21331CDFP#V2 FAQ
1.How can I place an order for R5F21331CDFP#V2 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F21331CDFP#V2 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 R5F21331CDFP#V2 reliable?
The price and inventory of R5F21331CDFP#V2 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F21331CDFP#V2 is usually 5 days.
3.What payment methods are accepted for R5F21331CDFP#V2?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F21331CDFP#V2 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F21331CDFP#V2?
R5F21331CDFP#V2 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F21331CDFP#V2 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 R5F21331CDFP#V2?
For technical support, including R5F21331CDFP#V2 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F21331CDFP#V2 requirements.
6.How does Aetrix verify that R5F21331CDFP#V2 is sourced from the original manufacturer or authorized distributors?
All R5F21331CDFP#V2 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 R5F21331CDFP#V2 meets industry standards.
7.What is the process for return or replacement of R5F21331CDFP#V2?
All R5F21331CDFP#V2 units undergo pre-shipment inspection (PSI). If there is an issue with R5F21331CDFP#V2, 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 R5F21331CDFP#V2 part is unused and in its original packaging.
Return procedure for R5F21331CDFP#V2:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F21331CDFP#V2 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…

