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

- Shipping:

Inventory:3,185
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F104MGAFB#X0 from Renesas is a 80-pin LFQFP (0.5 mm pitch), industrial-grade RL78/G14 16-bit microcontroller with 96 KB flash, 12 KB RAM, and 8 KB data flash. It delivers 44 DMIPS at 32 MHz, operates from 1.6–5.5 V, supports -40°C to +105°C ambient, and integrates RTC, 10-bit ADC (19 channels), UART/SPI/I²C interfaces, and ultra-low-power HALT/STOP/SNOOZE modes for battery-powered sensor nodes and motor control.
For engineers reviewing the R5F104MGAFB#X0 datasheet, R5F104MGAFB#X0 pinout, R5F104MGAFB#X0 application, or R5F104MGAFB#X0 equivalent, key selection criteria include its 80-pin LFQFP-0.5mm package, G-grade temperature rating, integrated 10-bit ADC with 19 inputs, dual UART with LIN support, and on-chip data flash with 1M-cycle endurance for firmware-over-the-air updates.
Technical Context
The R5F104MGAFB#X0 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). It features a configurable high-speed on-chip oscillator (±1.0% accuracy across 1–64 MHz) and dedicated low-speed oscillator for watchdog and RTC operation.
Peripheral integration includes Event Link Controller (ELC) for hardware-triggered peripheral chaining, Data Transfer Controller (DTC) supporting block/repeat transfers, and simplified SPI (CSI), UART/LIN, and I²C interfaces - all configurable via peripheral I/O redirection registers (PIOR0/1) without requiring PCB changes.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | RL78 16-bit CISC CPU with 3-stage pipeline and multiply/accumulate instructions |
| Max Clock Speed | 32 MHz (44 DMIPS); high-speed on-chip oscillator selectable from 1–64 MHz with ±1.0% accuracy |
| Memory | 96 KB code flash (1 KB blocks), 12 KB RAM, 8 KB data flash (1M write cycles, background operation) |
| ADC | 10-bit resolution, 19 analog input channels, internal 1.45 V reference and temperature sensor |
| Timers | 12-channel 16-bit Timer Array Unit (TAU), 1-channel 12-bit interval timer, calendar RTC, watchdog timer |
| Serial Interfaces | 3 UART/LIN channels, 3 CSI (SPI-compatible) channels, 4 I²C/simplified I²C channels |
| Power Modes | HALT (66 µA/MHz), STOP (0.60 µA with RTC+LVD active), SNOOZE (low-latency wake-up from peripheral events) |
Pinout & Package
Package: 80-pin LFQFP, 12 × 12 mm body, 0.5 mm pitch, G-grade (-40°C to +105°C), lead-free and RoHS compliant.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P00/P01 | UART1 TX/RX, timer input/output, analog input | Primary serial interface for host communication; supports TRGCLKA/B for synchronized timing in motor control |
| P10–P17 | CSI1/SCL1/SDA1, UART2, I²C, comparator, reference voltage | Multi-function peripheral bank enabling simultaneous SPI master/slave, I²C slave, and analog monitoring |
| P30/P31 | RTC1HZ, SCK00/SCL00, timer input/output, buzzer output | Real-time clock output and primary SPI/I²C interface for sensor hub connectivity |
| P50/P51 | UART0 RX/TX, debug interface (TOOLRxD/TOOLTxD) | Dedicated full-duplex UART for programming, debugging, and bootloader communication |
| P121/P122 | Crystal oscillator inputs (X1/X2) | Supports external 32.768 kHz crystal for precision RTC or 1–20 MHz crystal for main system clock |
| P137 | INTP0 (external interrupt) | Low-latency wake-up source for motion detection or fault signaling in safety-critical systems |
| REGC | Regulator capacitor terminal | Must be connected to VSS via 0.47–1 µF capacitor to stabilize internal LDO for analog/peripheral domains |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low power STOP mode | 0.60 µA current draw while maintaining RTC and LVD functionality - enables >10-year battery life in metering applications |
| Background data flash rewrite | Execute code from flash while rewriting data flash (BGO), enabling seamless firmware updates without halting real-time control |
| Peripheral I/O redirection | Assign alternate functions (e.g., UART, CSI, I²C) to multiple pins via PIOR0/1 registers - eliminates fixed pinout constraints in layout |
| Hardware event linking (ELC) | Trigger timer start, ADC conversion, or DMA transfer directly from peripheral events (e.g., UART receive complete) - reduces CPU overhead by >40% |
| On-chip security functions | Flash block erase/write prohibition and boot swap capability prevent unauthorized firmware modification and enable secure dual-bank OTA updates |
Applications
| Smart Energy Metering | Industrial Motor Control |
|---|---|
Use Scenario: Residential electricity meter with tamper detection, time-of-use billing, and PLC/RF communication. IC Role / Device Role / Timing Role: Main controller managing metrology ADC sampling, RTC-based tariff switching, and UART-based PLC modem interface. Use Value: 10-bit ADC with internal reference ensures accurate voltage/current measurement; STOP mode extends battery backup to 10+ years during power outage. | Use Scenario: Brushless DC motor drive in HVAC blower with closed-loop speed regulation and thermal protection. IC Role / Device Role / Timing Role: Real-time motor commutation controller using TAU timers for precise PWM generation and ADC for current sensing. Use Value: ELC-triggered ADC sampling synchronized to PWM edges eliminates jitter; SNOOZE mode enables fast wake-up from fault interrupts (< 4 µs). |
| Automotive Body Control Module | IoT Sensor Node |
Use Scenario: Door module managing window lift, mirror fold, and interior lighting with LIN communication to central ECU. IC Role / Device Role / Timing Role: LIN transceiver interface controller with GPIO-driven relays and PWM dimming for LED lighting. Use Value: Integrated LIN-capable UART eliminates external transceiver; 19-channel ADC monitors thermistors and potentiometers for position feedback. | Use Scenario: Wireless environmental sensor node (temp/humidity/pressure) powered by coin cell, transmitting via BLE gateway. IC Role / Device Role / Timing Role: Low-power sensor aggregator with RTC wake-up, ADC acquisition, and UART-to-BLE bridge logic. Use Value: 0.60 µA STOP mode with RTC allows 15-minute wake intervals; data flash stores calibration coefficients and last-sent values across resets. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 16-bit microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F104LGAFB#X0 | Same 80-pin LFQFP-0.5mm package, but 128 KB flash, 16 KB RAM, and 8 KB data flash | Better suited for applications requiring larger firmware (e.g., USB stack, advanced motor algorithms) or extended data logging | Select when future firmware growth headroom or additional RAM for complex state machines is required |
| R5F104MGAFB#V0 | Identical electrical and functional specification, but supplied in tray packaging instead of embossed tape | Preferred for low-volume prototyping or manual assembly where tape-and-reel handling is impractical | Choose #V0 for engineering samples or small-batch production; #X0 is optimized for automated SMT lines |
Compared with R5F104LGAFB#X0, the R5F104MGAFB#X0 trades 32 KB flash and 4 KB RAM for lower cost and power in resource-constrained designs; compared with R5F104MGAFB#V0, it offers identical silicon with optimized packaging for high-throughput SMT placement.
Availability
R5F104MGAFB#X0 is available at Aetrix Electronics and suitable for smart metering, industrial motor drives, automotive body electronics, and battery-powered IoT sensor nodes requiring stable component supply across long product lifecycles.
Supply support for R5F104MGAFB#X0 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 targets cost-sensitive, ultra-low-power general-purpose embedded applications - emphasizing energy efficiency, integrated peripherals, and rapid development with scalable memory options from 16 KB to 512 KB flash.
FAQ
What is the operating temperature range for the R5F104MGAFB#X0?
The R5F104MGAFB#X0 is rated for industrial applications with an operating ambient temperature range of -40°C to +105°C (G-grade), validated per Renesas specification R01DS0053EJ0340. This makes it suitable for under-hood automotive modules, factory-floor controllers, and outdoor metering equipment where extended thermal stability is required. The device maintains full functionality-including RTC, ADC accuracy, and flash programming-across this entire range.
Does the R5F104MGAFB#X0 support LIN bus communication?
Yes, the R5F104MGAFB#X0 supports LIN bus communication through its UART peripherals, which are explicitly documented as LIN-capable in the R01DS0053EJ0340 datasheet. Up to three UART channels (e.g., UART0, UART1, UART2) can operate in LIN mode with automatic sync-break detection, checksum calculation, and identifier filtering - enabling direct connection to LIN transceivers without external protocol assist chips.
How many analog input channels does the R5F104MGAFB#X0 ADC support?
The R5F104MGAFB#X0 integrates a 10-bit successive-approximation ADC with up to 19 analog input channels, as confirmed in Section 1.1 "Features" and Table 1-1 of the R01DS0053EJ0340 datasheet. These include dedicated ANI0–ANI19 pins plus VCOUT0/VCOUT1 for on-chip voltage references, supporting simultaneous sampling for multi-sensor systems like HVAC control or power quality monitoring.
What packaging format is used for the R5F104MGAFB#X0?
The R5F104MGAFB#X0 uses embossed tape packaging (JEDEC standard), indicated by the "#X0" suffix per Renesas ordering information in Section 1.2 of R01DS0053EJ0340. This 8-mm carrier tape format is optimized for high-speed pick-and-place SMT assembly, with 1,000 units per reel, and complies with moisture sensitivity level MSL3 per J-STD-020.
Can the R5F104MGAFB#X0 perform flash self-programming during runtime?
Yes, the R5F104MGAFB#X0 supports full flash self-programming, including both code flash and data flash, using the on-chip Flash Self-Programming Library (R20UT2944). It enables background operation (BGO) for data flash writes, allowing program execution to continue uninterrupted - critical for firmware updates in always-on systems. The library reserves specific RAM regions (e.g., F9F00H for R5F104xJ variants) as documented in the datasheet's memory map section.
R5F104MGAFB#X0 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 80-LQFP
- Series:
- RL78/G14
- Packaging:
- Tape & Reel (TR)
- Product Status:
- Obsolete
- 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:
R5F104MGAFB#X0 FAQ
1.How can I place an order for R5F104MGAFB#X0 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F104MGAFB#X0 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 R5F104MGAFB#X0 reliable?
The price and inventory of R5F104MGAFB#X0 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F104MGAFB#X0 is usually 5 days.
3.What payment methods are accepted for R5F104MGAFB#X0?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F104MGAFB#X0 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F104MGAFB#X0?
R5F104MGAFB#X0 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F104MGAFB#X0 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 R5F104MGAFB#X0?
For technical support, including R5F104MGAFB#X0 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F104MGAFB#X0 requirements.
6.How does Aetrix verify that R5F104MGAFB#X0 is sourced from the original manufacturer or authorized distributors?
All R5F104MGAFB#X0 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 R5F104MGAFB#X0 meets industry standards.
7.What is the process for return or replacement of R5F104MGAFB#X0?
All R5F104MGAFB#X0 units undergo pre-shipment inspection (PSI). If there is an issue with R5F104MGAFB#X0, 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 R5F104MGAFB#X0 part is unused and in its original packaging.
Return procedure for R5F104MGAFB#X0:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F104MGAFB#X0 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…

