Renesas R5F104MGAFA#V0
- Part No.:
- R5F104MGAFA#V0
- Manufacturer:
- Renesas
- Category:
- Microcontrollers
- Package:
- 80-LQFP
- Datasheet:
-
R5F104MGAFA#V0.pdf
- Description:
- IC MCU 16BIT 128KB FLASH 80LQFP
- Quantity:
- Payment:

- Shipping:

Inventory:4,616
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F104MGAFA#V0 from Renesas is a 80-pin LQFP-0.65mm-pitch, industrial-grade (TA = −40 to +85°C) RL78/G14 16-bit MCU with 256 KB flash, 8 KB data flash, 24 KB RAM, 48 MHz max CPU speed, and integrated peripherals including 10-bit ADC (20 ch), UART/LIN (4 ch), I²C (10 ch), SPI (8 ch), RTC, and ultra-low-power HALT/STOP/SNOOZE modes - deployed in smart metering and industrial HMI control systems.
For engineers reviewing the R5F104MGAFA#V0 datasheet, R5F104MGAFA#V0 pinout, R5F104MGAFA#V0 application, or R5F104MGAFA#V0 equivalent, key selection criteria include its 24 KB on-chip RAM allocation for real-time firmware execution, 20-channel 10-bit ADC with internal temperature sensor and 1.45 V reference, and dual UART/LIN support enabling concurrent host communication and fieldbus diagnostics.
Technical Context
The R5F104MGAFA#V0 implements the RL78 CPU core with 3-stage pipeline CISC architecture, supporting instruction execution times from 0.03125 µs (32 MHz high-speed mode) to 30.5 µs (32.768 kHz ultra-low-speed mode). It integrates a programmable Event Link Controller (ELC) that routes 26 event sources directly to peripheral functions without CPU intervention.
Its power management includes a dedicated low-speed on-chip oscillator for watchdog timer operation, on-chip voltage detector (LVD) with 14 selectable reset/interrupt thresholds, and background operation (BGO) for data flash rewriting while executing code from program memory - enabling seamless firmware updates in field-deployed devices.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | RL78 16-bit CISC CPU with 3-stage pipeline and multiply/divide instructions |
| Max Clock Speed | 48 MHz - enables 44 DMIPS performance for deterministic real-time control loops |
| Flash Memory | 256 KB code flash with 1 KB block erase; supports boot swapping and flash shield window for secure firmware updates |
| Data Flash | 8 KB with 1,000,000 write cycles (TYP); BGO allows concurrent code execution during rewrite |
| RAM | 24 KB on-chip RAM - sufficient for RTOS stacks, communication buffers, and sensor fusion algorithms |
| ADC | 10-bit resolution, 20 input channels, internal 1.45 V reference and temperature sensor - eliminates external reference ICs in thermal monitoring designs |
| Timers | 12× 16-bit timers (TAU/Timer RJ/RD/RG), 1× 12-bit interval timer, 1× calendar RTC with alarm and clock correction |
| Serial Interfaces | 4× UART/LIN, 10× I²C, 8× CSI (SPI-compatible); supports LIN 2.2A physical layer via UART modulation |
Pinout & Package
Package: 80-pin LQFP (14 × 14 mm, 0.65 mm pitch), RoHS-compliant, industrial temperature grade (−40 to +85°C).
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P00–P01 | General-purpose I/O / TxD1/RxD1 | Dual-function pins supporting UART channel 1 and up to 20 analog inputs (ANI0–ANI19) across port groups |
| P10–P17 | Multi-function serial I/O (SCK11/SDA11/SO20/etc.) | Configurable CSI, UART, I²C, and TRDIO signals - enables flexible peripheral mapping via PIOR registers |
| P30–P31 | RTC1HZ / TI03/TO03 / INTP3/INTP4 | Real-time clock output and timer capture/compare with interrupt capability for precise timing events |
| P60–P61 | SCLA0 / SDAA0 | Dedicated I²C bus interface with hardware address recognition and arbitration - supports multi-master configurations |
| P121–P122 | X1 / X2 / EXCLK | Crystal oscillator inputs for 32.768 kHz RTC crystal or external clock source up to 20 MHz |
| P137 | INTP0 | High-priority non-maskable interrupt input - used for emergency shutdown or safety-critical fault detection |
| RESET | Active-low reset input | Accepts external reset signal; internally synchronized to avoid metastability in noisy environments |
| REGC | Regulator capacitor terminal | Requires 0.47–1 µF capacitor to VSS for stable internal voltage regulation - critical for low-power mode stability |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power STOP mode | 0.60 μA typical current draw with RTC and LVD active - extends battery life in always-on sensing nodes |
| On-chip debug function | Fully compliant with Renesas E1/E20 emulators; supports real-time trace and flash programming without external debug headers |
| Event Link Controller (ELC) | Direct hardware linking of 26 event sources (e.g., ADC end-of-conversion, timer overflow) to peripherals - eliminates CPU polling overhead |
| Self-programming capability | Boot swapping and flash shield window enable secure over-the-air (OTA) firmware updates without external programmer |
| Dual UART/LIN support | Two independent UART modules with LIN bus modulation support - allows simultaneous host interface and automotive sub-network communication |
| Peripheral I/O redirection | PIOR0/PIOR1 registers allow dynamic remapping of serial functions (e.g., SDA11 → P14) - simplifies PCB layout reuse across variants |
Applications
| Smart Energy Metering | Industrial HMI Panel |
|---|---|
Use Scenario: Bidirectional energy measurement with tamper detection, tariff switching, and remote firmware updates via PLC or RF link. IC Role / Device Role / Timing Role: Main controller managing metrology ADC sampling, RTC-based billing intervals, LIN-connected display module, and secure OTA update engine. Use Value: 24 KB RAM accommodates dual-bank firmware images; 8 KB data flash stores calibration coefficients and usage logs with 1M-cycle endurance. | Use Scenario: Local operator interface for PLC-controlled machinery with touch feedback, alarm logging, and real-time process visualization. IC Role / Device Role / Timing Role: Real-time UI processor handling capacitive touch scanning, UART-driven display refresh, and RTC-synchronized event timestamps. Use Value: 20-channel 10-bit ADC reads multiple analog sensors (temperature, pressure, voltage); ELC offloads touch scan timing from CPU. |
| Building Automation Controller | White Goods Motor Control |
Use Scenario: HVAC zone controller integrating temperature/humidity sensing, valve actuation, and BACnet MS/TP communication. IC Role / Device Role / Timing Role: Central system manager coordinating sensor acquisition, PID loop execution, and RS-485-based fieldbus communication. Use Value: 4× UART/LIN supports concurrent BACnet MS/TP, debug console, and local diagnostics; 12-bit interval timer ensures precise PID sampling intervals. | Use Scenario: Inverter-driven compressor control in refrigerators with motor phase current sensing and thermal protection. IC Role / Device Role / Timing Role: Motor control MCU performing FOC calculations, gate driver PWM generation, and overtemperature shutdown via internal temperature sensor. Use Value: Internal 1.45 V reference and temperature sensor eliminate external components; STOP mode reduces standby power during idle cycles. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F104LGAFA#V0 | Same package and pinout; 192 KB flash, 8 KB data flash, 20 KB RAM - reduced memory footprint | Suitable for cost-sensitive HMI or sensor node designs where full 256 KB flash is unused | Select when firmware size remains under 192 KB and BOM cost optimization is prioritized |
| R5F104MJAFA#V0 | Same 80-pin LQFP package; 192 KB flash, 8 KB data flash, 20 KB RAM, but rated for −40 to +105°C (G grade) | Required for extended-temperature industrial environments such as motor drives or outdoor enclosures | Choose when ambient operating temperature exceeds +85°C and industrial G-grade qualification is mandatory |
Compared with R5F104LGAFA#V0, the R5F104MGAFA#V0 provides 64 KB additional flash and 4 KB more RAM for complex protocol stacks or larger UI assets; versus R5F104MJAFA#V0, it trades extended temperature rating for lower unit cost in standard industrial deployments.
Availability
R5F104MGAFA#V0 is available at Aetrix Electronics and suitable for smart metering, industrial HMI panels, and building automation controllers requiring stable component supply, long-term lifecycle support, and traceable sourcing.
Supply support for R5F104MGAFA#V0 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, battery-operated, and thermally constrained industrial control applications - balancing performance, integration, and energy efficiency.
FAQ
What is the maximum operating frequency and corresponding performance of the R5F104MGAFA#V0?
The R5F104MGAFA#V0 operates at up to 48 MHz, delivering 44 DMIPS performance. This speed is achieved using the high-speed on-chip oscillator with ±1.0% accuracy across 1.8–5.5 V and −40 to +85°C. The RL78 core's 3-stage pipeline enables deterministic instruction timing critical for real-time control tasks executed by the R5F104MGAFA#V0.
Does the R5F104MGAFA#V0 support LIN bus communication, and how is it implemented?
Yes, the R5F104MGAFA#V0 supports LIN 2.2A bus communication through two dedicated UART modules configured for LIN physical layer modulation. Each UART can operate in LIN master or slave mode with automatic sync-break detection and checksum generation - enabling direct integration into automotive body electronics or industrial sub-networks without external transceivers. This capability is natively supported in the R5F104MGAFA#V0's hardware peripherals.
What are the power consumption characteristics of the R5F104MGAFA#V0 in low-power modes?
The R5F104MGAFA#V0 achieves 0.60 μA in STOP mode with only RTC and LVD active, and 66 μA/MHz in active mode at 32 MHz. These values are measured at VDD = 1.8–5.5 V and TA = −40 to +85°C. The ultra-low STOP current enables multi-year battery operation in metering and sensor applications - a key differentiator confirmed in the R5F104MGAFA#V0 datasheet Rev. 3.70.
How many analog input channels does the R5F104MGAFA#V0 ADC support, and what reference options are available?
The R5F104MGAFA#V0 integrates a 10-bit successive-approximation ADC with up to 20 analog input channels (ANI0–ANI19). It supports both external reference voltage and internal 1.45 V reference, plus an integrated temperature sensor. This eliminates need for external reference ICs in thermal monitoring or precision sensing applications - a verified feature of the R5F104MGAFA#V0 per its functional specification.
Is the R5F104MGAFA#V0 pin-compatible with other RL78/G14 variants in the same package?
Yes, the R5F104MGAFA#V0 is pin-compatible with all 80-pin LQFP RL78/G14 variants sharing the FA suffix (e.g., R5F104LGAFA#V0, R5F104MJAFA#V0), as confirmed by identical pin configuration diagrams and shared RENESAS Code Part Number PLQP0080JB-E. This allows direct substitution within the same PCB footprint when memory or temperature grade requirements change - a documented mechanical and electrical compatibility of the R5F104MGAFA#V0 family.
R5F104MGAFA#V0 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 80-LQFP
- Series:
- RL78/G14
- Packaging:
- Tray
- Product Status:
- Discontinued at Digi-Key
- 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:
- 64
- Program Memory Size:
- 128KB (128K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 8K x 8
- RAM Size:
- 16K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.6V ~ 5.5V
- Data Converters:
- A/D 17x8/10b; D/A 2x8b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
R5F104MGAFA#V0 FAQ
1.How can I place an order for R5F104MGAFA#V0 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F104MGAFA#V0 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 R5F104MGAFA#V0 reliable?
The price and inventory of R5F104MGAFA#V0 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F104MGAFA#V0 is usually 5 days.
3.What payment methods are accepted for R5F104MGAFA#V0?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F104MGAFA#V0 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F104MGAFA#V0?
R5F104MGAFA#V0 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F104MGAFA#V0 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 R5F104MGAFA#V0?
For technical support, including R5F104MGAFA#V0 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F104MGAFA#V0 requirements.
6.How does Aetrix verify that R5F104MGAFA#V0 is sourced from the original manufacturer or authorized distributors?
All R5F104MGAFA#V0 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 R5F104MGAFA#V0 meets industry standards.
7.What is the process for return or replacement of R5F104MGAFA#V0?
All R5F104MGAFA#V0 units undergo pre-shipment inspection (PSI). If there is an issue with R5F104MGAFA#V0, 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 R5F104MGAFA#V0 part is unused and in its original packaging.
Return procedure for R5F104MGAFA#V0:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F104MGAFA#V0 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…

