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

- Shipping:

Inventory:251
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F21331DNFP from Renesas is a 16-bit R8C CPU core MCU with 4 KB Flash, 1 KB RAM, 32-pin LQFP package, and operating temperature range of -20°C to +85°C. It integrates timer RA/RB/RC/RE, dual UART (UART0/UART2 with I²C mode), 10-bit 12-channel ADC, comparator B, voltage detection, and on-chip oscillators for embedded control in consumer appliances and office equipment.
For engineers reviewing the R5F21331DNFP datasheet, R5F21331DNFP pinout, R5F21331DNFP application, or R5F21331DNFP equivalent, key selection criteria include its 4 KB Flash capacity, 32-pin PLQP0032GB-A package, 10-bit ADC with sweep mode, UART2 I²C-bus compatibility, and support for wait/stop low-power modes with sub-µA current draw.
Technical Context
The R5F21331DNFP implements the R8C CPU core with 89 fundamental instructions, 16×16→32-bit hardware multiplier, and 20-bit address space (1 Mbyte). Its interrupt system supports 69 vectors across 7 priority levels, including external INT0/INT1/INT3 and key input KI0–KI3.
Clock generation includes four independent circuits: XIN/XOUT (up to 20 MHz), XCIN/XCOUT (32 kHz), high-speed on-chip oscillator (adjustable), and low-speed on-chip oscillator - all selectable via software-controlled frequency dividers (1/2/4/8/16) and usable in standard/wait/stop modes.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | R8C 16-bit core with 89 instructions, 50 ns min instruction time at 20 MHz |
| Memory | 4 KB Flash (1,000 erase/write cycles), 1 KB RAM, 1 Mbyte address space |
| Operating Voltage | 1.8 V to 5.5 V supply; supports 5 MHz operation down to 1.8 V |
| Power Consumption | 6.5 mA typical at 5 V/20 MHz; 3.5 µA in wait mode (32 kHz); 2.0 µA in stop mode |
| Peripherals | 10-bit 12-channel ADC with sample-and-hold & sweep mode; dual UART (UART0 + UART2 w/I²C) |
| Timers | Timer RA (8-bit), RB (8-bit PWM), RC (16-bit w/4 capture/compare), RE (real-time clock) |
| Package | 32-pin LQFP (PLQP0032GB-A), 7 mm × 7 mm, 0.8 mm pitch |
Pinout & Package
32-pin LQFP package (PLQP0032GB-A, formerly 32P6U-A), 7 mm × 7 mm body, 0.8 mm pin pitch, exposed pad not specified. Pin functions include dedicated analog inputs (AN0–AN11), programmable I/O ports (P0–P4), and multifunction pins supporting UART, I²C, timers, and A/D triggers.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P0_0–P0_7 | CMOS I/O port | Configurable as digital I/O or analog input (AN0–AN7); pull-up resistor programmable |
| P1_0–P1_7 | CMOS I/O port | Supports analog inputs AN8–AN11, key interrupts KI0–KI3, and timer I/O (TRAIO, TRBO) |
| P4_6/XIN | Crystal input | Primary clock source input for 1–20 MHz crystal/resonator; enables high-speed operation |
| P4_7/XOUT | Crystal output | Output for XIN clock circuit; also accepts external clock signal when XIN is open |
| P3_4/P3_7 | UART2/I²C pins | Shared SCL2/SDA2 functionality; supports I²C-bus communication and multiprocessor UART mode |
| ADTRG (P4_5) | A/D trigger input | Hardware-synchronized conversion start; eliminates software timing jitter in sampling sequences |
Key Features
| Feature | Design Value |
|---|---|
| On-chip debug & flash rewrite | Enables in-system programming and real-time debugging without external emulator hardware |
| Real-time clock (Timer RE) | Hardware-based calendar counter (seconds/minutes/hours/days) with compare output for alarm events |
| Voltage detection circuit | Dual-level detection (VDD monitor + selectable voltage detection 0/1) with power-on reset and fail-safe shutdown |
| EMI/EMS optimized design | Integrated noise suppression features reduce radiated emissions and improve immunity in noisy appliance environments |
| High-current drive I/O | All 27 CMOS I/O ports support LED direct-drive capability without external buffers |
Applications
| Home Appliance Control | Office Equipment Interface |
|---|---|
Use Scenario: Microcontroller in washing machine main board managing motor control, water level sensing, and user interface. IC Role / Device Role / Timing Role: Central control unit executing real-time motor sequencing, ADC-based sensor acquisition, and UART-driven display updates. Use Value: Integrated 10-bit ADC with sweep mode captures multiple analog sensors simultaneously; low-power stop mode extends standby battery life. | Use Scenario: Embedded controller in multifunction printer handling paper feed, toner monitoring, and USB-to-parallel bridge logic. IC Role / Device Role / Timing Role: Peripheral coordinator using UART2 in I²C mode to communicate with toner ICs and Timer RC for precise stepper motor timing. Use Value: Dual UART with I²C-bus compatibility eliminates need for external level translators; 16-bit Timer RC provides accurate pulse-width modulation for motor speed regulation. |
| Audio System Remote Interface | Consumer Device Power Management |
Use Scenario: IR remote receiver subsystem in AV receiver decoding commands and controlling volume, input selection, and display backlight. IC Role / Device Role / Timing Role: Key input interrupt handler (KI0–KI3) with debounce, driving LED indicators via high-current I/O ports. Use Value: Dedicated key input interrupt pins reduce CPU polling overhead; 27 high-current I/O ports drive LEDs directly without external drivers. | Use Scenario: Power supervisor in portable speaker managing battery charging status, thermal cutoff, and low-battery warning via buzzer and LED. IC Role / Device Role / Timing Role: Voltage detection and comparator B monitor battery voltage and temperature; Timer RE tracks runtime for auto-shutdown. Use Value: On-chip voltage detection with configurable thresholds replaces discrete supervisor ICs; 3.5 µA wait-mode current minimizes quiescent drain during idle periods. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F21332DNFP | 8 KB Flash (vs. 4 KB), same RAM, package, and peripheral set | Suitable for firmware with larger code footprint or future feature expansion | Select when bootloader, communication stacks, or complex UI logic exceed 4 KB capacity |
| R5F21331DDFP | Same memory and peripherals, but -40°C to +85°C industrial temperature grade | Required for automotive cabin modules or outdoor-rated consumer devices | Choose for extended ambient temperature operation where N-version (-20°C) is insufficient |
Compared with R5F21331DNFP, the R5F21332DNFP offers double Flash capacity for enhanced firmware scalability, while the R5F21331DDFP provides wider temperature tolerance without altering code or layout - both retain identical pinout, peripheral configuration, and debug infrastructure.
Availability
R5F21331DNFP is available at Aetrix Electronics and suitable for home appliance control, office equipment interface, audio system remote interface, and consumer device power management requiring stable component supply across production lifecycles.
Supply support for R5F21331DNFP 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/33D Group, including R5F21331DNFP, was designed for cost-sensitive, low-power embedded control in consumer electronics - emphasizing integration of analog peripherals, robust EMI performance, and simplified development with on-chip debug.
FAQ
What is the maximum operating frequency of the R5F21331DNFP?
The R5F21331DNFP supports a maximum operating frequency of 20 MHz when powered at 2.7–5.5 V using the XIN clock input. At lower voltages (1.8–5.5 V), it operates up to 5 MHz. The minimum instruction execution time is 50 ns under 20 MHz conditions, enabling responsive real-time control in appliance and office equipment applications.
Does the R5F21331DNFP support I²C communication?
Yes, the R5F21331DNFP supports I²C-bus communication through UART2's dedicated I²C mode on pins P3_4 (SCL2) and P3_7 (SDA2). This allows direct connection to I²C sensors, EEPROMs, or power management ICs without external bus controllers - a key feature confirmed in the R8C/33D Group datasheet section 1.1.2 and Table 1.1.
What is the purpose of the ADTRG pin on the R5F21331DNFP?
The ADTRG pin (P4_5) on the R5F21331DNFP serves as an external hardware trigger for the 10-bit A/D converter. When asserted, it initiates a conversion sequence without CPU intervention - critical for synchronized sampling in motor control or audio preprocessing. This function is documented in Table 1.4 and Section 1.5 of the R8C/33D Group datasheet.
Can the R5F21331DNFP operate from a 3.3 V supply?
Yes, the R5F21331DNFP operates reliably from a 3.3 V supply across its full temperature range (-20°C to +85°C). At 3.0 V and 10 MHz, typical current consumption is 3.5 mA; in wait mode with 32 kHz XCIN clock, it draws only 3.5 µA - making it well-suited for battery-backed or energy-conscious designs.
How many interrupt sources does the R5F21331DNFP support?
The R5F21331DNFP supports 69 interrupt vectors with 7 programmable priority levels. Sources include 7 external interrupts (INT0–INT3, KI0–KI3), peripheral interrupts (UART0/UART2, Timer RA/RB/RC/RE, ADC, comparator, voltage detection), and system events (oscillation stop, watchdog timeout). This structure is defined in Table 1.1 and Section 2.8.9 of the official datasheet.
R5F21331DNFP#V2 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 32-LQFP
- Series:
- R8C/3x/33D
- 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:
- 1K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.8V ~ 5.5V
- Data Converters:
- A/D 12x10b
- Oscillator Type:
- Internal
- Operating Temperature:
- -20°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
R5F21331DNFP#V2 FAQ
1.How can I place an order for R5F21331DNFP#V2 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F21331DNFP#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 R5F21331DNFP#V2 reliable?
The price and inventory of R5F21331DNFP#V2 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F21331DNFP#V2 is usually 5 days.
3.What payment methods are accepted for R5F21331DNFP#V2?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F21331DNFP#V2 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F21331DNFP#V2?
R5F21331DNFP#V2 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F21331DNFP#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 R5F21331DNFP#V2?
For technical support, including R5F21331DNFP#V2 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F21331DNFP#V2 requirements.
6.How does Aetrix verify that R5F21331DNFP#V2 is sourced from the original manufacturer or authorized distributors?
All R5F21331DNFP#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 R5F21331DNFP#V2 meets industry standards.
7.What is the process for return or replacement of R5F21331DNFP#V2?
All R5F21331DNFP#V2 units undergo pre-shipment inspection (PSI). If there is an issue with R5F21331DNFP#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 R5F21331DNFP#V2 part is unused and in its original packaging.
Return procedure for R5F21331DNFP#V2:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F21331DNFP#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…

