Send an Inquiry

To receive a quote for your project, please fill in the following information, and we’ll get back to you promptly.

Name*
Company*
Email Address*
Phone/WhatsApp
Part Number*
Quantity*
Message
Submit Inventory List

Please fill in the following information, and we’ll get back to you promptly.

Name*
Company*
Email Address*
Phone/WhatsApp
Upload My List
Message

Renesas R5F21321DNSP#W4

Part No.:
R5F21321DNSP#W4
Manufacturer:
Renesas
Category:
Microcontrollers
Package:
20-LSSOP (0.173", 4.40mm Width)
Datasheet:
AetrixR5F21321DNSP#W4.pdf
Description:
IC MCU 16BIT 4KB FLASH 20LSSOP
Quantity:
Payment:
Payment
Shipping:
Shipping

Inventory:4,252

Please send an inquiry. Send us your inquiry, and we will respond immediately.

Part Number
Quantity*
Price
Name*
Company
Email*
Comments

Product details

Overview

R5F21321DNSP#W4 from Renesas Electronics is a 16-bit R8C CPU core microcontroller with 4 KB flash ROM, 1 KB RAM, and integrated peripherals including UART0/UART2 (with I²C mode), 10-bit × 4-channel A/D converter, four timers (RA/RB/RC/RE), watchdog timer, voltage detection circuit, and comparator B. It operates from 1.8 V to 5.5 V and supports -20°C to +85°C ambient temperature - used in consumer appliance control subsystems requiring low-power operation and mixed-signal integration.

For engineers reviewing the R5F21321DNSP#W4 datasheet, R5F21321DNSP#W4 pinout, R5F21321DNSP#W4 application, or R5F21321DNSP#W4 equivalent, this page delivers verified technical context, validated pin functions, confirmed operating parameters, and real-world use cases aligned to the R8C/32D Group specification document REJ03B0288-0100 Rev.1.00.

Technical Context

The R5F21321DNSP#W4 implements the R8C CPU core with 89 fundamental instructions, 16×16→32-bit hardware multiplier, and multiply-accumulate capability. Its memory map spans 1 Mbyte (00000h–FFFFFh), with fixed interrupt vector table at 0FFDCh–0FFFFh and SFRs mapped to 00000h–002FFh.

It integrates four independent clock sources: XIN/XOUT (up to 20 MHz), XCIN/XCOUT (32 kHz), high-speed on-chip oscillator (frequency-adjustable), and low-speed on-chip oscillator. Power management includes wait mode (3.5 µA @ 3.0 V, 32 kHz) and stop mode (2.0 µA @ 3.0 V), with voltage detection supporting power-on reset and dual-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 4 KB flash ROM (1,000 write/erase cycles), 1 KB RAM, 1 Mbyte address space
Operating Voltage 1.8 V to 5.5 V - enables single-supply operation across battery and line-powered systems
Temperature Range -20°C to +85°C (N version) - qualified for consumer and industrial equipment environments
Power Consumption 6.5 mA typical @ 5.0 V/20 MHz; 3.5 µA @ 3.0 V in wait mode with 32 kHz clock
A/D Converter 10-bit resolution × 4 channels with sample-and-hold and sweep mode - supports analog sensor interfacing
Timers Timer RA (8-bit), RB (8-bit PWM), RC (16-bit with 4 capture/compare registers), RE (real-time clock)
Serial Interfaces UART0 (full-duplex), UART2 with I²C-bus mode and multiprocessor communication support

Pinout & Package

Package: 20-pin LSSOP (PLSP0020JB-A, 0.65 mm pitch), surface-mount, RoHS-compliant.

Pin/Terminal Circuit Role Design Meaning
P1_0/AN8/KI0 Analog input / key interrupt / timer input Shared function pin supporting A/D channel 8, key wake-up, and TRCIOD trigger
P1_1/AN9/KI1 Analog input / key interrupt / timer input Supports A/D channel 9, key interrupt 1, and TRCIOA/TRCTRG timer functions
P1_2/AN10/KI2 Analog input / key interrupt / timer input Enables A/D channel 10, key interrupt 2, and TRCIOB timer interface
P1_3/AN11/KI3/TRBO Analog input / key interrupt / timer output Provides A/D channel 11, key interrupt 3, and Timer RB pulse output
P1_4/TXD0/TRCCLK UART transmit / timer clock input Drives UART0 serial data out and supplies external clock to Timer RC
P1_5/RXD0/INT1/TRAIO UART receive / interrupt / timer I/O Accepts UART0 serial data, triggers INT1, and serves as Timer RA bidirectional I/O
P1_6/IVREF1/CLK0 Comparator reference / clock I/O Supplies reference voltage to Comparator B channel 1 and transfers CLK0 serial clock
P1_7/IVCMP1/INT1 Comparator input / interrupt Inputs analog signal to Comparator B channel 1 and doubles as secondary INT1 source
P3_3/IVCMP3/INT3/CTS2/RTS2 Comparator input / interrupt / flow control Supports Comparator B channel 3, INT3, and UART2 hardware handshaking signals
P3_4/IVREF3/RXD2/SCL2/TXD2/SDA2 Comparator reference / UART/I²C I/O Provides reference for Comparator B channel 3 and shares UART2/I²C bidirectional lines
P3_5/CLK2/TRCIOD Serial clock / timer input Transfers UART2 clock and routes TRCIOD trigger to Timer RC
P3_7/TRAO/RXD2/SCL2/TXD2/SDA2 Timer output / UART/I²C I/O Outputs Timer RA signal while sharing full UART2 and I²C bus functionality
P4_2/VREF Analog reference input Dedicated input for A/D converter reference voltage - not multiplexed
P4_5/ADTRG/INT0/RXD2/SCL2 A/D trigger / interrupt / UART/I²C Starts A/D conversion externally, asserts INT0, and shares UART2/I²C receive lines
P4_6/XIN/XCIN Crystal/oscillator input Primary high-speed (XIN) and low-speed (XCIN) clock source input - dual-function pin
P4_7/XOUT/XCOUT Crystal/oscillator output Drives external crystal/resonator for both XIN and XCIN clock circuits
RESET Active-low reset input Hardware reset assertion resets CPU, peripherals, and registers - synchronous deassertion required
MODE Boot mode selection Must be pulled high via resistor to enable normal flash execution mode
VCC/AVCC Core/analog supply Single 1.8–5.5 V supply powers digital logic and analog peripherals - AVCC requires local decoupling
VSS/AVSS Digital/analog ground Common ground reference; AVSS must be connected close to AVCC for A/D accuracy

Key Features

Feature Design Value
On-chip debug support Enables real-time firmware debugging and flash reprogramming without external emulator
Four independent clock sources Allows dynamic switching between high-speed (20 MHz), low-power (32 kHz), and internal oscillators
Integrated voltage detection Provides power-on reset and selectable voltage monitor levels to prevent brown-out operation
Programmable pull-up resistors Eliminates external components on 15 CMOS I/O ports - reduces BOM count and board area
Real-time clock (Timer RE) Tracks seconds, minutes, hours, and weekday without external RTC chip - saves system cost
I²C-bus mode on UART2 Enables direct connection to standard I²C sensors and EEPROMs using existing UART hardware

Applications

Home Appliance Control Office Equipment Motor Control

Use Scenario: Embedded controller in microwave oven or rice cooker managing cooking cycles, display, keypad, and safety interlocks.

IC Role / Device Role / Timing Role: Main system MCU executing state machine logic, reading thermistor inputs via A/D, driving LED segments, and generating PWM for fan motor speed control.

Use Value: Integrated 4 KB flash and 1 KB RAM eliminate external memory; low-power wait mode extends standby battery life in cordless models.

Use Scenario: Motor driver in multifunction printer handling paper feed, scanner carriage movement, and toner dispensing timing.

IC Role / Device Role / Timing Role: Real-time motion controller using Timer RB PWM outputs and Timer RC capture inputs for encoder feedback synchronization.

Use Value: 16-bit Timer RC with 4 capture/compare registers enables precise position tracking without external counter ICs.

Audio System Remote Interface Industrial Sensor Hub

Use Scenario: IR remote receiver and command decoder in stereo amplifier or soundbar with volume, source, and EQ control.

IC Role / Device Role / Timing Role: Key input interrupt handler (KI0–KI3) decoding NEC protocol pulses, UART0 communicating with main audio DSP over RS-232 level-shifted link.

Use Value: Dedicated key interrupt pins reduce firmware overhead; UART0's 50 ns instruction timing ensures accurate IR pulse edge sampling.

Use Scenario: Local sensor aggregator in factory automation node collecting temperature, humidity, and vibration data before CAN transmission.

IC Role / Device Role / Timing Role: Analog front-end processor converting sensor outputs via 10-bit A/D, applying digital filtering in firmware, and buffering data in internal RAM.

Use Value: Sample-and-hold A/D and sweep mode allow simultaneous multi-channel acquisition - improves time-correlated measurement accuracy.

Equivalent & Alternatives

The following parts are listed as comparable options for similar microcontroller applications.

Alternative Part Technical Difference Application Difference Selection Advice
R5F21322DNSP 8 KB flash ROM, same 1 KB RAM, identical package and peripheral set Required when firmware exceeds 4 KB or future expansion headroom is needed Select if code size growth is anticipated; no hardware change required
R5F21324DNSP 16 KB flash ROM, same RAM and peripherals, same LSSOP-20 package Suitable for complex control algorithms or integrated communication stacks (e.g., Modbus RTU) Choose for feature-rich firmware with multiple protocols or large lookup tables

Compared with R5F21321DNSP#W4, the R5F21322DNSP and R5F21324DNSP offer scalable flash capacity while preserving identical I/O mapping, timing behavior, and power characteristics - enabling seamless firmware migration without PCB redesign.

Availability

R5F21321DNSP#W4 is available at Aetrix Electronics and suitable for home appliance control, office equipment motor sequencing, and audio system remote interface applications requiring stable component supply and long-term industrial availability.

Supply support for R5F21321DNSP#W4 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 consumer markets.

The R5F21321DNSP#W4 belongs to the R8C/32D Group - a family of cost-optimized 16-bit MCUs designed for resource-constrained embedded systems where low power, mixed-signal integration, and rapid development are critical.

FAQ

What is the maximum operating frequency of the R5F21321DNSP#W4?

The R5F21321DNSP#W4 supports a maximum external crystal frequency of 20 MHz at VCC = 2.7–5.5 V, delivering a minimum instruction execution time of 50 ns. At lower supply voltages (1.8–5.5 V), the maximum supported frequency is 5 MHz with 200 ns instruction timing - ensuring reliable operation across wide voltage ranges.

Does the R5F21321DNSP#W4 include an internal oscillator?

Yes, the R5F21321DNSP#W4 integrates both a high-speed on-chip oscillator (frequency-adjustable) and a low-speed on-chip oscillator (32 kHz). These can be selected independently for system clock or watchdog timer operation, eliminating the need for external crystals in cost-sensitive or space-constrained designs.

Can the R5F21321DNSP#W4 operate from a 1.8 V supply?

Yes, the R5F21321DNSP#W4 is fully specified to operate from 1.8 V to 5.5 V. At 1.8 V, it supports up to 5 MHz operation and retains full functionality of its A/D converter, timers, and UART interfaces - making it suitable for battery-powered portable devices.

How many A/D converter channels does the R5F21321DNSP#W4 have?

The R5F21321DNSP#W4 features a 10-bit successive-approximation A/D converter with four input channels (AN8–AN11), each supporting sample-and-hold and sweep mode. This allows sequential or triggered conversion of multiple analog sensors without external multiplexing.

Is the R5F21321DNSP#W4 pin-compatible with other R8C/32D Group members?

Yes, all R8C/32D Group MCUs - including R5F21321DNSP#W4, R5F21322DNSP, and R5F21324DNSP - share identical 20-pin LSSOP (PLSP0020JB-A) packaging and pinout. Firmware and hardware designs are interchangeable across flash capacity variants without layout changes.

R5F21321DNSP#W4 Specifications

Product attributes
Attribute value
Manufacturer:
Renesas
Package/Case:
20-LSSOP (0.173", 4.40mm Width)
Series:
R8C/3x/32D
Packaging:
Tape & Reel (TR)
Product Status:
Last Time Buy
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:
15
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 4x10b
Oscillator Type:
Internal
Operating Temperature:
-20°C ~ 85°C (TA)
Grade:
-
Qualification:
-
Mounting Type:
Surface Mount
Supplier Device Package:

R5F21321DNSP#W4 FAQ

1.How can I place an order for R5F21321DNSP#W4 through Aetrix?

Please submit a Request for Quotation (RFQ) for R5F21321DNSP#W4 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 R5F21321DNSP#W4 reliable?

The price and inventory of R5F21321DNSP#W4 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F21321DNSP#W4 is usually 5 days.

3.What payment methods are accepted for R5F21321DNSP#W4?

We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F21321DNSP#W4 transactions.

Note: Certain payment methods may incur a processing fee.

4.How is shipping managed for R5F21321DNSP#W4?

R5F21321DNSP#W4 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.

Once your R5F21321DNSP#W4 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 R5F21321DNSP#W4?

For technical support, including R5F21321DNSP#W4 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F21321DNSP#W4 requirements.

6.How does Aetrix verify that R5F21321DNSP#W4 is sourced from the original manufacturer or authorized distributors?

All R5F21321DNSP#W4 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 R5F21321DNSP#W4 meets industry standards.

7.What is the process for return or replacement of R5F21321DNSP#W4?

All R5F21321DNSP#W4 units undergo pre-shipment inspection (PSI). If there is an issue with R5F21321DNSP#W4, 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 R5F21321DNSP#W4 part is unused and in its original packaging.

Return procedure for R5F21321DNSP#W4:

1.Submit a request within 90 days.

2.Obtain a Return Material Authorization (RMA) from Aetrix.

R5F21321DNSP#W4 Tags

  • R5F21321DNSP#W4
  • R5F21321DNSP#W4 PDF
  • R5F21321DNSP#W4 Datasheet
  • R5F21321DNSP#W4 Specifications
  • R5F21321DNSP#W4 Images
  • Renesas
  • Renesas R5F21321DNSP#W4
  • Buy R5F21321DNSP#W4
  • R5F21321DNSP#W4 Price
  • R5F21321DNSP#W4 Distributor
  • R5F21321DNSP#W4 Supplier
  • R5F21321DNSP#W4 Wholesale
Related Products
ATTINY4-TSHR
ATTINY4-TSHR

Microchip Technology

ATTINY10-TSHR
ATTINY10-TSHR

Microchip Technology

ATTINY10-TS8R
ATTINY10-TS8R

Microchip Technology

ATTINY202-SSNR
ATTINY202-SSNR

Microchip Technology

ATTINY202-SSFR
ATTINY202-SSFR

Microchip Technology

ATTINY402-SSNR
ATTINY402-SSNR

Microchip Technology

PIC16F15213T-I/MF
PIC16F15213T-I/MF

Microchip Technology

PIC16F15213-E/MF
PIC16F15213-E/MF

Microchip Technology

PIC10F200T-I/OT
PIC10F200T-I/OT

Microchip Technology

ATTINY412-SSNR
ATTINY412-SSNR

Microchip Technology

PIC10F202T-I/OT
PIC10F202T-I/OT

Microchip Technology

ATTINY404-SSNR
ATTINY404-SSNR

Microchip Technology

Tech Hub

Search

Search

PRODUCT

PRODUCT

PHONE

PHONE

USER

USER