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

- Shipping:

Inventory:3,405
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F21321CNSP#W4 from Renesas is a 16-bit R8C CPU core MCU with 4 KB flash program ROM, 1 KB × 4 data flash (BGO-capable), 512 bytes RAM, and 20-pin LSSOP package. It operates at up to 20 MHz (VCC = 2.7–5.5 V), features 10-bit × 4-channel ADC, LIN hardware module, and real-time clock (Timer RE), targeting cost-sensitive embedded control in consumer appliances.
For engineers reviewing the R5F21321CNSP#W4 datasheet, R5F21321CNSP#W4 pinout, R5F21321CNSP#W4 application, or R5F21321CNSP#W4 equivalent, key selection criteria include its N-version temperature range (−20°C to +85°C), integrated LIN transceiver support via Timer RA + UART0, background operation for data flash updates, and low-power stop mode (2.0 µA).
Technical Context
The R5F21321CNSP#W4 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 fixed interrupt vector table at 0FFDCh–0FFFFh and data flash blocks at 03000h–03FFFh.
Peripheral integration includes UART0/UART2 (with I²C mode), SSU/I²C shared bus, hardware LIN (using Timer RA and UART0), four independent timers (RA/RB/RC/RE), DTC with 21 activation sources, and voltage detection with selectable thresholds - all controlled via dedicated SFRs mapped to 0000h–02FFFh address space.
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 for efficient signal processing. |
| Memory | 4 KB program flash ROM, 1 KB × 4 data flash (10,000 erase/write cycles, BGO enabled), 512 bytes RAM. |
| Operating Frequency | 20 MHz max (VCC = 2.7–5.5 V); 5 MHz max (VCC = 1.8–5.5 V) - supports dual-speed clocking for power/performance trade-offs. |
| ADC | 10-bit resolution × 4 channels with sample-and-hold and sweep mode - enables simultaneous analog sensing in appliance UI or motor feedback. |
| Low-Power Modes | Wait mode (3.5 µA @ 3.0 V, f(XCIN) = 32 kHz) and stop mode (2.0 µA @ 3.0 V) - critical for battery-backed real-time clock applications. |
| Package | 20-pin LSSOP (PLSP0020JB-A, 0.65 mm pitch) - surface-mount compatible with compact consumer PCB layouts. |
| LIN Support | Hardware LIN module using Timer RA and UART0 - eliminates external transceiver need for automotive body electronics or appliance sub-networks. |
Pinout & Package
Package: 20-pin LSSOP (PLSP0020JB-A), 0.65 mm pin pitch, lead-free, RoHS-compliant.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P1_0/AN8/KI0 | Analog input / Key interrupt / Timer RC input | Supports touch-key sensing, ADC channel 8, or external trigger for timer capture - configurable per application need. |
| P1_4/TXD0/TRCCLK | UART0 transmit / Timer RC clock input | Enables serial debug output while simultaneously providing external clock source for 16-bit Timer RC timing precision. |
| P1_5/INT1/RXD0/TRAIO | Interrupt input / UART0 receive / Timer RA I/O | Combines debug interface (RXD0), system event signaling (INT1), and PWM waveform generation (TRAIO) on single pin. |
| P3_7/SDA2/TXD2/RX D2/SCL2 | I²C data / UART2 TX/RX / I²C clock | Shared pin for dual-protocol communication - simplifies wiring in multi-sensor systems using I²C or UART2 with multiprocessor mode. |
| P4_5/ADTRG/INT0 | A/D trigger / External interrupt | Allows precise synchronization of ADC conversions to external events (e.g., motor commutation edge) or serves as general-purpose wake-up interrupt. |
Key Features
| Feature | Design Value |
|---|---|
| Background Operation (BGO) | Enables real-time data flash programming/erasure without halting CPU execution - essential for firmware-over-the-air updates in deployed appliances. |
| Hardware LIN Module | Integrates LIN protocol timing and framing logic using Timer RA and UART0 - reduces BOM cost and design complexity vs. discrete LIN transceivers. |
| Real-Time Clock (Timer RE) | Provides calendar-based timekeeping (seconds/minutes/hours/days) with output compare - supports sleep/wake scheduling and timestamped logging without external RTC IC. |
| DTC with 21 Activation Sources | Offloads CPU from memory-mapped peripheral transfers (e.g., ADC → RAM, UART → buffer) - improves deterministic response in interrupt-driven systems. |
| Voltage Detection Circuit | Configurable reset and detection levels (VDD monitor 0/1) - ensures reliable brown-out protection across varying supply conditions in unregulated AC/DC adapters. |
Applications
| Home Appliance Control | Office Equipment UI |
|---|---|
Use Scenario: Microcontroller in washing machine main board managing motor drive, water level sensing, and user interface. IC Role / Device Role / Timing Role: Central control unit executing state machine logic, sampling 4-channel ADC for pressure/temperature, and generating PWM via Timer RB for brushless motor commutation. Use Value: Integrated 10-bit ADC, high-current I/O ports, and LIN interface reduce external component count and simplify compliance with IEC 60335 safety standards. | Use Scenario: Embedded controller in multifunction printer handling paper feed sensors, button inputs, and display backlight dimming. IC Role / Device Role / Timing Role: System coordinator using Key Input interrupts (KI0–KI3) for tactile buttons, Timer RE for sleep/wake scheduling, and UART2 for host communication. Use Value: Low-power stop mode (2.0 µA) extends standby battery life; built-in voltage detection prevents erratic behavior during AC power brownouts. |
| Audio Equipment Remote | Consumer IoT Sensor Node |
Use Scenario: IR remote control for AV receiver with button matrix, LED feedback, and IR carrier generation. IC Role / Device Role / Timing Role: Signal generator using Timer RA's programmable waveform mode to produce 38 kHz IR carrier, with KI inputs scanning keypad matrix. Use Value: Hardware PWM generation eliminates software timing jitter; 20-pin LSSOP fits compact remote PCBs with minimal layout area. | Use Scenario: Battery-powered environmental sensor node measuring temperature/humidity and transmitting via UART to gateway. IC Role / Device Role / Timing Role: Data acquisition engine using ADC sweep mode across AN8–AN11, storing calibrated values in data flash, and waking periodically via Timer RE alarm. Use Value: Background operation allows firmware updates without disrupting sensor logging; 3.5 µA wait mode extends coin-cell battery life to >2 years. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F21321CDSP#W4 | D-version with −40°C to +85°C operating range; identical memory, peripherals, and pinout. | Required for industrial or automotive cabin environments where extended temperature tolerance is mandatory. | Select when ambient operating temperature exceeds −20°C minimum; otherwise, R5F21321CNSP#W4 offers lower cost for commercial-grade appliances. |
| R5F21322CNSP#W4 | 8 KB program ROM, 1 KB RAM, same data flash and peripherals; pin-compatible 20-pin LSSOP. | Suitable for applications needing larger firmware footprint (e.g., USB HID stack, enhanced UI logic) without PCB redesign. | Choose when future firmware expansion is anticipated; retains full hardware compatibility and toolchain support. |
Compared with R5F21321CDSP#W4, the R5F21321CNSP#W4 trades extended temperature rating for cost efficiency in consumer settings; versus R5F21322CNSP#W4, it provides sufficient code space for basic control tasks while reducing flash overhead and power consumption in idle states.
Availability
R5F21321CNSP#W4 is available at Aetrix Electronics and suitable for home appliance control, office equipment UI, audio remote systems, and consumer IoT sensor nodes requiring stable component supply and long-term production continuity.
Supply support for R5F21321CNSP#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 is a global semiconductor leader specializing in microcontrollers, analog, and power solutions for automotive, industrial, and consumer markets.
The R8C/32C Group, including R5F21321CNSP#W4, was designed for cost-optimized, low-power embedded control in resource-constrained consumer electronics - emphasizing integration of LIN, ADC, RTC, and flash BGO to minimize external components.
FAQ
What is the maximum operating frequency of the R5F21321CNSP#W4 and under what supply conditions?
The R5F21321CNSP#W4 supports a maximum operating frequency of 20 MHz when powered at VCC = 2.7–5.5 V using the XIN clock source. At lower supply voltages (1.8–5.5 V), the maximum frequency is reduced to 5 MHz to ensure stable operation. This dual-frequency capability allows designers to optimize performance versus power consumption based on system requirements and power supply architecture.
Does the R5F21321CNSP#W4 support hardware LIN communication, and how is it implemented?
Yes, the R5F21321CNSP#W4 includes a dedicated hardware LIN module that uses Timer RA for baud rate generation and UART0 for data framing and checksum calculation. This implementation offloads LIN protocol handling from firmware, enabling reliable sub-network communication in automotive body electronics or appliance interconnects without requiring an external LIN transceiver IC.
What are the data flash endurance specifications and background operation capabilities of the R5F21321CNSP#W4?
The R5F21321CNSP#W4 provides 1 KB × 4 blocks of data flash with 10,000 erase/write cycles and full background operation (BGO) support. BGO allows the CPU to execute application code concurrently while programming or erasing data flash - a critical feature for field-upgradable firmware and persistent parameter storage in deployed R5F21321CNSP#W4-based systems.
How does the R5F21321CNSP#W4 manage low-power operation, and what are the lowest current consumption figures?
The R5F21321CNSP#W4 offers multiple low-power modes: wait mode draws 3.5 µA at 3.0 V with 32 kHz XCIN clock active, and stop mode consumes just 2.0 µA at 3.0 V. These modes retain RAM content and allow wake-up via INT0/INT1/KI interrupts or Timer RE alarm - making R5F21321CNSP#W4 suitable for battery-powered devices requiring multi-year operational life.
Is the R5F21321CNSP#W4 pin-compatible with other members of the R8C/32C Group, and which variants share the same package?
Yes, the R5F21321CNSP#W4 is pin-compatible with all R8C/32C Group members in the 20-pin LSSOP package (PLSP0020JB-A), including R5F21322CNSP#W4, R5F21324CNSP#W4, and their D-version counterparts. This allows scalable design reuse - for example, upgrading from 4 KB to 8 KB program ROM without PCB changes - while maintaining identical footprint, thermal profile, and assembly process.
R5F21321CNSP#W4 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 20-LSSOP (0.173", 4.40mm Width)
- Series:
- R8C/3x/32C
- 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:
- 4K x 8
- RAM Size:
- 512 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:
R5F21321CNSP#W4 FAQ
1.How can I place an order for R5F21321CNSP#W4 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F21321CNSP#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 R5F21321CNSP#W4 reliable?
The price and inventory of R5F21321CNSP#W4 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F21321CNSP#W4 is usually 5 days.
3.What payment methods are accepted for R5F21321CNSP#W4?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F21321CNSP#W4 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F21321CNSP#W4?
R5F21321CNSP#W4 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F21321CNSP#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 R5F21321CNSP#W4?
For technical support, including R5F21321CNSP#W4 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F21321CNSP#W4 requirements.
6.How does Aetrix verify that R5F21321CNSP#W4 is sourced from the original manufacturer or authorized distributors?
All R5F21321CNSP#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 R5F21321CNSP#W4 meets industry standards.
7.What is the process for return or replacement of R5F21321CNSP#W4?
All R5F21321CNSP#W4 units undergo pre-shipment inspection (PSI). If there is an issue with R5F21321CNSP#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 R5F21321CNSP#W4 part is unused and in its original packaging.
Return procedure for R5F21321CNSP#W4:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F21321CNSP#W4 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
A practical engineering and sourcing framework covering lifecycle verification, lifetime-buy calculations, replacement qualification, supplier checks and counterfeit-risk controls.
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…

