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

- Shipping:

Inventory:1,050
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F104GAGNA#20 from Renesas is a 48-pin LFQFP, 128 KB flash, 12 KB RAM RL78/G14 16-bit microcontroller operating from 1.6–5.5 V, delivering 44 DMIPS at 32 MHz with ultra-low power consumption (66 μA/MHz active, 0.60 μA RTC+LVD mode), used in industrial sensor nodes and battery-powered control modules.
For engineers reviewing the R5F104GAGNA#20 datasheet, R5F104GAGNA#20 pinout, R5F104GAGNA#20 application, or R5F104GAGNA#20 equivalent, key selection criteria include its -40°C to +105°C industrial temperature grade (G-suffix), 48-pin 0.5 mm pitch LFQFP package, integrated 10-bit 20-channel ADC, dual UART/LIN support, and hardware DTC/ELC for deterministic real-time peripheral coordination.
Technical Context
The R5F104GAGNA#20 implements the RL78 CPU core with 3-stage pipeline CISC architecture, supporting instruction execution times from 0.03125 µs (32 MHz) to 30.5 µs (32.768 kHz), and includes multiply/divide/accumulate instructions within a 1 MB address space. It integrates a 12-bit interval timer, calendar-capable RTC, and watchdog timer with dedicated low-speed oscillator.
Peripheral subsystems include eight 16-bit TAU timers, four CSI/SPI channels, three UART/LIN interfaces, up to ten I²C channels, and an Event Link Controller enabling direct hardware-triggered peripheral activation without CPU intervention-critical for deterministic low-latency response in motor control and industrial I/O.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | RL78 16-bit CISC with 3-stage pipeline, 44 DMIPS @ 32 MHz |
| Flash / RAM | 128 KB code flash + 4 KB data flash + 12 KB SRAM - supports background rewriting and boot swapping |
| Supply Range | 1.6 V to 5.5 V - enables direct interface with 1.8 V, 2.5 V, 3.3 V, and 5 V logic domains |
| Power Modes | HALT (66 μA/MHz), STOP (0.60 μA w/ RTC+LVD), SNOOZE - extends battery life in portable equipment |
| ADC | 10-bit resolution, 20 analog inputs, internal 1.45 V reference & temp sensor - eliminates external references in cost-sensitive designs |
| Timers | Eight 16-bit TAU channels + 12-bit interval timer + RTC with calendar/alarm - supports precise timekeeping and PWM generation |
| Serial Interfaces | 3× UART/LIN, 4× CSI/SPI, 4–10× I²C - provides flexible communication for multi-protocol industrial gateways |
| Operating Temp | -40°C to +105°C (G-grade) - qualified for under-hood automotive and factory-floor industrial use |
Pinout & Package
Package: 48-pin LFQFP, 7 × 7 mm body, 0.5 mm pitch, exposed pad not present (LFQFP variant).
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P00 | TxD1 / TI00 / TRGCLKA | Primary UART transmit, timer input, and debug clock - enables serial comms and timing-critical trigger capture |
| P01 | RxD1 / TO00 / TRGCLKB | UART receive, timer output, and secondary debug clock - supports full-duplex comms and synchronized event generation |
| P10–P17 | SPI/I²C/UART/ADC multiplexed pins | Configurable peripheral I/O via PIOR registers - allows flexible board layout and function reassignment post-layout |
| P30 | INTP3 / RTC1HZ / SCK00 | Real-time clock interrupt output + SPI clock - delivers accurate 1 Hz timing signal for time-stamping and low-power wake-up |
| P50/P51 | RxD0/TxD0 / TOOLRxD/TOOLTxD | Dedicated on-chip debug UART - enables firmware update and real-time trace without external debug probes |
| REGC | Regulator bypass capacitor terminal | Requires 0.47–1 µF capacitor to VSS - stabilizes internal LDO for consistent low-power operation |
| VDD/VSS | Power supply and ground | Single 1.6–5.5 V supply - simplifies power design and eliminates level shifters in mixed-voltage systems |
| RESET | Active-low reset input | Accepts external reset or internal POR/LVD assertion - ensures reliable startup under brown-out conditions |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low power HALT/STOP modes | Reduces active current to 66 μA/MHz and standby to 0.60 μA - extends coin-cell battery life to >10 years in sensor nodes |
| Data Flash BGO | Enables code execution from main flash while rewriting 4 KB data flash - supports over-the-air firmware updates without interruption |
| Event Link Controller (ELC) | Hardware links 19–26 peripheral events (e.g., ADC EOC → DMA transfer) - eliminates CPU polling and reduces latency to <100 ns |
| On-chip voltage detector (LVD) | 14 programmable threshold levels with interrupt/reset options - prevents data corruption during supply droop in industrial environments |
| Peripheral I/O redirection | Dynamic remapping of UART/SPI/I²C functions across multiple pins via PIOR registers - improves PCB routing flexibility and reuse |
| Integrated RTC with calendar | 99-year calendar, alarm, and clock correction - removes need for external real-time clock IC in HVAC and metering applications |
Applications
| Industrial Motor Control | Smart Energy Metering |
|---|---|
Use Scenario: Closed-loop speed regulation of BLDC fans using hall-effect feedback and PWM-driven gate drivers. IC Role / Device Role / Timing Role: Main controller executing FOC algorithms, managing 3-phase PWM outputs, and sampling current/voltage via 10-bit ADC. Use Value: Integrated 16-bit TAU timers generate precise complementary PWM with dead-time insertion; ELC synchronizes ADC sampling to PWM center-aligned triggers. | Use Scenario: Residential electricity meter with tariff switching, tamper detection, and RS-485 communication. IC Role / Device Role / Timing Role: System-on-chip handling metrology calculations, RTC-based billing cycles, and isolated UART communication. Use Value: On-chip RTC with calendar and alarm enables accurate time-of-use billing; 10-bit ADC measures shunt voltage/current with internal reference. |
| Automotive Body Electronics | IoT Sensor Hub |
Use Scenario: Door module controlling window lift, mirror fold, and interior lighting with LIN bus diagnostics. IC Role / Device Role / Timing Role: LIN master node managing slave devices, monitoring switches/sensors, and driving DC motors via GPIO/PWM. Use Value: Three UART/LIN interfaces support primary LIN bus + diagnostic port + secondary LIN cluster; -40°C to +105°C rating ensures under-dash reliability. | Use Scenario: Battery-powered environmental sensor node aggregating temperature, humidity, and motion data for BLE gateway upload. IC Role / Device Role / Timing Role: Low-power coordinator sampling sensors, buffering data, and waking periodically to transmit via UART-to-BLE bridge. Use Value: STOP mode draws only 0.60 μA with RTC running - enables 5+ year operation on CR2032; integrated temp sensor reduces BOM count. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 16-bit microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F104GGANA#20 | Same 48-pin HWQFN package, identical 128 KB flash/12 KB RAM, but rated for -40°C to +85°C (D-grade) instead of +105°C | Targeted at consumer or lower-temp industrial use; lacks extended thermal qualification | Select when ambient temperature remains ≤85°C and HWQFN's smaller footprint is preferred over LFQFP |
| R5F104GLAFB#30 | Same G-grade (-40°C to +105°C), but 48-pin LFQFP with 384 KB flash/32 KB RAM - larger memory and higher pin count compatibility | Supports more complex firmware (e.g., embedded web server, OTA stack); requires PCB redesign due to different packaging spec (#30 vs #20) | Choose when future firmware expansion or additional peripherals (e.g., extra UART/I²C) are anticipated |
Compared with R5F104GAGNA#20, R5F104GGANA#20 trades extended temperature range for identical functionality in a smaller HWQFN package, while R5F104GLAFB#30 offers significantly more memory and I/O headroom at the cost of increased footprint and procurement lead time.
Availability
R5F104GAGNA#20 is available at Aetrix Electronics and suitable for industrial motor control, smart energy metering, and automotive body electronics requiring stable component supply across extended temperature ranges and long production lifecycles.
Supply support for R5F104GAGNA#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 product line delivers true low-power 16-bit MCUs optimized for cost-sensitive, thermally demanding industrial and automotive applications requiring high integration and long-term supply stability.
FAQ
What is the maximum operating frequency and corresponding performance of the R5F104GAGNA#20?
The R5F104GAGNA#20 operates at up to 32 MHz with an RL78 CPU core delivering 44 DMIPS. Its minimum instruction execution time is 0.03125 µs at 32 MHz using the high-speed on-chip oscillator, which is factory-trimmed to ±1.0% accuracy across 1.8–5.5 V and -20°C to +85°C - enabling deterministic real-time control without external crystal dependency. The R5F104GAGNA#20 maintains this performance across its full -40°C to +105°C industrial temperature range.
Does the R5F104GAGNA#20 support in-system programming and secure firmware updates?
Yes, the R5F104GAGNA#20 supports self-programming of both code and data flash memory with boot swapping and flash shield window protection. It enables secure firmware updates via on-chip debug interface or UART bootloader, with block-level erase prohibition to prevent unauthorized modification. The 4 KB data flash supports background operation (BGO), allowing program execution from main flash while rewriting - critical for fail-safe over-the-air updates in deployed R5F104GAGNA#20 systems.
How many analog-to-digital converter (ADC) channels does the R5F104GAGNA#20 provide, and what are their key specifications?
The R5F104GAGNA#20 integrates a 10-bit successive-approximation ADC with up to 20 analog input channels, operating across the full 1.6–5.5 V supply range. It includes an internal 1.45 V reference voltage and on-die temperature sensor, eliminating external components for basic thermal monitoring. Conversion time is 1.6 µs per sample, and the ADC supports hardware-triggered sampling via ELC - enabling precise synchronization with PWM or timer events in motor control applications using the R5F104GAGNA#20.
What communication interfaces are available on the R5F104GAGNA#20, and how are they configured?
The R5F104GAGNA#20 provides three UART/LIN interfaces (supporting LIN 2.2 protocol), four CSI/SPI channels, and four to ten I²C channels - configurable via peripheral I/O redirection registers (PIOR0/1). This allows dynamic assignment of UART, SPI, or I²C functions to multiple pin sets, improving PCB layout flexibility. All serial interfaces operate across the full 1.6–5.5 V supply range and support clock stretching, multi-master arbitration, and automatic baud rate detection - essential for interoperability in heterogeneous R5F104GAGNA#20-based industrial networks.
What power management features make the R5F104GAGNA#20 suitable for battery-powered applications?
The R5F104GAGNA#20 delivers industry-leading low-power operation: 66 μA/MHz in HALT mode, 0.60 μA in STOP mode with RTC and LVD active, and configurable SNOOZE mode for selective peripheral wake-up. Its on-chip voltage detector (LVD) offers 14 programmable thresholds with interrupt or reset output, preventing data corruption during brown-out. Combined with the 10-bit ADC's internal reference and temperature sensor, these features enable decade-long battery life in sensor nodes - a key advantage of the R5F104GAGNA#20 over competing MCUs.
R5F104GAGNA#20 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 48-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:
- 34
- 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 10x8/10b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
R5F104GAGNA#20 FAQ
1.How can I place an order for R5F104GAGNA#20 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F104GAGNA#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 R5F104GAGNA#20 reliable?
The price and inventory of R5F104GAGNA#20 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F104GAGNA#20 is usually 5 days.
3.What payment methods are accepted for R5F104GAGNA#20?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F104GAGNA#20 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F104GAGNA#20?
R5F104GAGNA#20 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F104GAGNA#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 R5F104GAGNA#20?
For technical support, including R5F104GAGNA#20 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F104GAGNA#20 requirements.
6.How does Aetrix verify that R5F104GAGNA#20 is sourced from the original manufacturer or authorized distributors?
All R5F104GAGNA#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 R5F104GAGNA#20 meets industry standards.
7.What is the process for return or replacement of R5F104GAGNA#20?
All R5F104GAGNA#20 units undergo pre-shipment inspection (PSI). If there is an issue with R5F104GAGNA#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 R5F104GAGNA#20 part is unused and in its original packaging.
Return procedure for R5F104GAGNA#20:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F104GAGNA#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…

