Renesas R5F104BAGNA#20
- Part No.:
- R5F104BAGNA#20
- Manufacturer:
- Renesas
- Category:
- Microcontrollers
- Package:
- 32-WFQFN Exposed Pad
- Datasheet:
-
R5F104BAGNA#20.pdf
- Description:
- IC MCU 16BIT 16KB FLASH 32HWQFN
- Quantity:
- Payment:

- Shipping:

Inventory:1,470
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F104BAGNA#20 from Renesas is a 32-pin HWQFN-packaged RL78/G14 16-bit microcontroller with 96 KB flash, 12 KB RAM, and industrial-grade operation up to +105°C. It delivers 44 DMIPS at 32 MHz, features ultra-low-power HALT/STOP/SNOOZE modes (0.60 μA RTC+LVD), integrated 10-bit ADC (20 channels), UART/LIN, I²C, SPI, and real-time clock - deployed in motor control, sensor nodes, and smart home appliances.
For engineers reviewing the R5F104BAGNA#20 datasheet, R5F104BAGNA#20 pinout, R5F104BAGNA#20 application, or R5F104BAGNA#20 equivalent, key selection criteria include its 32-pin 5×5 mm HWQFN package, G-grade temperature range (−40 to +105°C), on-chip debug support, and compatibility with Renesas' CS+ and e² studio toolchains for rapid firmware development.
Technical Context
The R5F104BAGNA#20 implements the RL78 CPU core with 3-stage pipeline, supporting instruction execution times from 0.03125 µs (32 MHz) to 30.5 µs (32.768 kHz). It integrates a Data Transfer Controller (DTC) for autonomous memory transfers and an Event Link Controller (ELC) enabling direct peripheral-to-peripheral signal routing without CPU intervention.
Its power architecture includes on-chip POR and LVD with 14 selectable voltage detection levels, plus dual oscillators: high-accuracy ±1.0% on-chip oscillator (1–64 MHz) and low-power subsystem clock (32.768 kHz). The device supports background data flash rewriting (1M write cycles) and secure boot swapping.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | RL78 16-bit CISC with 3-stage pipeline and multiply/divide instructions |
| Max Clock Speed | 32 MHz (44 DMIPS); minimum instruction time 0.03125 µs |
| Memory | 96 KB code flash (1 KB blocks), 4 KB data flash, 12 KB RAM |
| Power Modes | HALT (66 µA/MHz), STOP (0.60 µA w/ RTC+LVD), SNOOZE (low-latency wake) |
| Analog Peripherals | 10-bit ADC (20 channels, internal 1.45 V ref & temp sensor), 2× comparator, 2× 8-bit DAC |
| Serial Interfaces | 3× UART/LIN, 4–10× I²C, 3–8× CSI (SPI-compatible), all configurable via ELC |
| Timers | 8–12× 16-bit TAU, 1× 12-bit interval timer, 1× RTC (calendar, alarm, correction), 1× WDT |
Pinout & Package
Package: 32-pin HWQFN (5 × 5 mm, 0.5 mm pitch), exposed die pad recommended to be connected to VSS. Complies with JEDEC MO-220, RoHS-compliant, moisture sensitivity level 3.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P00 | TxD1 / TI00 / TRGCLKA | Primary UART transmit; timer input; trace clock A - shared function routed via PIOR register |
| P01 | RxD1 / TO00 / TRGCLKB | Primary UART receive; timer output; trace clock B - enables synchronized debugging |
| P10–P17 | CSI/I²C/UART/SPI peripherals | Multi-function serial interface pins (SCK11, SI11, SO11, SDA11, etc.) with ELC-triggered event linking |
| P20–P23 | ANI0–ANI3 / AVREFP/AVREFM / ANO0/ANO1 | Analog inputs with dedicated reference pins; supports differential ADC and analog output |
| P30–P31 | INTP3 / RTC1HZ / TI03 / TO03 / PCLBUZ0 | Real-time clock interrupt output (1 Hz), timer I/O, and programmable buzzer drive |
| P50–P51 | SI00/RxD0/SDA00/TRGIOA & SO00/TxD0/TRGIOB | Dual-purpose debug/UART/serial interface pins supporting on-chip tooling (TOOLRxD/TOOLTxD) |
| RESET | Active-low reset input | Asynchronous reset with internal pull-up; compatible with external reset ICs or manual push-button |
| REGC | Regulator capacitor terminal | Must connect 0.47–1 µF capacitor to VSS for internal LDO stability - critical for low-power mode integrity |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power operation | 0.60 µA in STOP mode with RTC + LVD active - enables battery-powered operation >10 years on coin cell |
| Secure flash programming | Boot swapping + flash shield window prevents unauthorized code overwrite during field updates |
| Background data flash rewrite | 1,000,000 write cycles at VDD = 1.8–5.5 V; allows firmware self-update without halting application |
| Peripheral event linking | ELC routes 19–26 event signals directly between peripherals (e.g., ADC trigger → DMA transfer), eliminating CPU overhead |
| Hardware-assisted debugging | On-chip debug interface with trace clock support (TRGCLKA/B), TOOLRxD/TOOLTxD pins, and full CS+ IDE integration |
| Flexible clock system | ±1.0% accuracy across 1.8–5.5 V and −40 to +105°C; selectable 1–64 MHz on-chip oscillator eliminates external crystal cost |
Applications
| Motor Control | Smart Sensor Node |
|---|---|
|
Use Scenario: Brushless DC motor commutation in HVAC blowers and appliance fans. IC Role / Device Role / Timing Role: Real-time PWM generation (TAU timers), current sensing (10-bit ADC), and LIN bus communication (UART/LIN). Use Value: Integrated LIN transceiver support and 32.768 kHz RTC enable precise speed regulation and scheduled maintenance alerts. |
Use Scenario: Battery-powered environmental monitor measuring temperature, humidity, and CO₂. IC Role / Device Role / Timing Role: Low-power sensor interface (ADC, I²C), data logging (data flash), and wireless wakeup (INTP0/INTP3). Use Value: 0.60 µA STOP mode extends 200 mAh coin cell life beyond 5 years while maintaining calendar-aware timestamping. |
| Industrial HMI Panel | Home Appliance Control |
|
Use Scenario: Touch-enabled display controller for factory operator panels with button feedback. IC Role / Device Role / Timing Role: Capacitive touch scan (comparator + ADC), buzzer output (PCLBUZ0/1), and RS-485 interface (UART + GPIO). Use Value: On-chip comparators in window mode detect touch thresholds without external components; PCLBUZ pins drive piezo elements directly. |
Use Scenario: Main control MCU in washing machines managing water valves, heater, drum motor, and UI. IC Role / Device Role / Timing Role: Multi-channel PWM (TAU), thermal monitoring (temp sensor + ADC), and fault-safe shutdown (LVD interrupt at 14 levels). Use Value: 14-level LVD enables graded response - e.g., reduce motor speed at 2.7 V, pause cycle at 2.4 V, hard shutdown at 2.1 V. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 16-bit microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F104BGANA#20 | Same 32-pin HWQFN package, identical 96 KB flash/12 KB RAM, but rated for −40 to +85°C (D grade) | Suitable for consumer-grade products where extended temperature is not required | Select when operating ambient stays ≤ +85°C and cost optimization is prioritized over industrial qualification |
| R5F104BEANA#20 | Same package and temperature grade (G), but reduced 64 KB flash and 5.5 KB RAM | Targeted at simpler control tasks with smaller firmware footprint and lower RAM usage | Choose when application firmware fits within 64 KB and requires only basic peripheral set - reduces BOM cost |
Compared with R5F104BAGNA#20, R5F104BGANA#20 trades industrial temperature margin for lower unit cost, while R5F104BEANA#20 reduces memory capacity to meet cost-sensitive designs with constrained code size - neither offers pin-to-pin replacement without validation of thermal and memory margins.
Availability
R5F104BAGNA#20 is available at Aetrix Electronics and suitable for motor control systems, industrial sensor networks, and home appliance control units requiring stable component supply across extended temperature ranges and long production lifecycles.
Supply support for R5F104BAGNA#20 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, power, and SoC solutions for automotive, industrial, and IoT markets.
The RL78/G14 family targets cost-sensitive, ultra-low-power embedded applications demanding robust analog integration, industrial temperature resilience, and seamless toolchain support - optimized for rapid development of reliable control systems.
FAQ
What is the maximum operating temperature rating for the R5F104BAGNA#20?
The R5F104BAGNA#20 is rated for industrial operation from −40°C to +105°C (G-grade). This specification is confirmed in the ordering information table and applies across full voltage range (1.6–5.5 V). The device maintains timing accuracy and flash reliability within this range, validated per JEDEC JESD22-A108.
Does the R5F104BAGNA#20 support in-circuit debugging without external hardware?
Yes, the R5F104BAGNA#20 includes a full on-chip debug interface accessible via P50 (TOOLRxD) and P51 (TOOLTxD) pins. It supports breakpoints, watchpoints, and real-time variable monitoring using Renesas CS+ or e² studio - no external debugger required for basic firmware development and validation.
How many analog input channels does the R5F104BAGNA#20 support?
The R5F104BAGNA#20 supports up to 20 analog input channels (ANI0–ANI19) with 10-bit resolution. Channels ANI0–ANI3 are mapped to P20–P23; ANI16–ANI19 appear on P00, P01, P120, and P147. All channels operate across the full 1.6–5.5 V supply range and support internal 1.45 V reference or external references.
Can the R5F104BAGNA#20 perform data flash writes while executing application code?
Yes, the R5F104BAGNA#20 supports background operation (BGO) for data flash. Instructions can be fetched and executed from code flash while data flash is being rewritten - enabled via the FLMCR register. This allows uninterrupted real-time operation during firmware parameter updates or data logging.
What oscillator options are available on the R5F104BAGNA#20?
The R5F104BAGNA#20 integrates a high-accuracy on-chip oscillator (1–64 MHz, ±1.0% over −40 to +105°C) and a low-speed subsystem clock (32.768 kHz). External crystals (X1/X2) or resonators (XT1/XT2) may be used for higher precision timing, but are optional - the on-chip oscillator suffices for most industrial control applications.
R5F104BAGNA#20 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 32-WFQFN Exposed Pad
- Series:
- RL78/G14
- Packaging:
- Tray
- Product Status:
- Last Time Buy
- Programmable:
- Not Verified
- Core Processor:
- RL78
- Core Size:
- 16-Bit
- Speed:
- 32MHz
- Connectivity:
- CSI, I2C, LINbus, UART/USART
- Peripherals:
- DMA, LVD, POR, PWM, WDT
- Number of I/O:
- 22
- Program Memory Size:
- 16KB (16K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 4K x 8
- RAM Size:
- 2.5K x 8
- Voltage - Supply (Vcc/Vdd):
- 2.4V ~ 5.5V
- Data Converters:
- A/D 8x8/10b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
R5F104BAGNA#20 FAQ
1.How can I place an order for R5F104BAGNA#20 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F104BAGNA#20 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 R5F104BAGNA#20 reliable?
The price and inventory of R5F104BAGNA#20 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F104BAGNA#20 is usually 5 days.
3.What payment methods are accepted for R5F104BAGNA#20?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F104BAGNA#20 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F104BAGNA#20?
R5F104BAGNA#20 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F104BAGNA#20 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 R5F104BAGNA#20?
For technical support, including R5F104BAGNA#20 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F104BAGNA#20 requirements.
6.How does Aetrix verify that R5F104BAGNA#20 is sourced from the original manufacturer or authorized distributors?
All R5F104BAGNA#20 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 R5F104BAGNA#20 meets industry standards.
7.What is the process for return or replacement of R5F104BAGNA#20?
All R5F104BAGNA#20 units undergo pre-shipment inspection (PSI). If there is an issue with R5F104BAGNA#20, 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 R5F104BAGNA#20 part is unused and in its original packaging.
Return procedure for R5F104BAGNA#20:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F104BAGNA#20 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…

