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

- Shipping:

Inventory:2,525
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F104MGAFB#V0 from Renesas is a 80-pin LFQFP, 0.5 mm pitch, industrial-grade (−40°C to +105°C) RL78/G14 16-bit MCU with 96 KB flash, 12 KB RAM, and integrated 10-bit ADC (20-channel), RTC, and low-power STOP/HALT/SNOOZE modes - deployed in smart metering, industrial sensor nodes, and battery-powered HMI controllers.
For engineers reviewing the R5F104MGAFB#V0 datasheet, R5F104MGAFB#V0 pinout, R5F104MGAFB#V0 application, or R5F104MGAFB#V0 equivalent, key selection criteria include its 96 KB code flash with data flash shield window, 1.6–5.5 V operation, 66 μA/MHz active current, and support for LIN-bus UART and hardware event linking via ELC.
Technical Context
The R5F104MGAFB#V0 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), and includes multiply/divide/accumulate instructions. Its memory subsystem integrates 96 KB on-chip flash (1 KB block size), 12 KB RAM, and 8 KB data flash with background operation (BGO) and 1M-cycle rewrite endurance.
Peripheral integration includes 12-channel 16-bit Timer Array Unit (TAU), real-time clock with calendar/alarm, 20-channel 10-bit ADC with internal 1.45 V reference and temperature sensor, dual UART/LIN interfaces, up to 10-channel I²C, and Event Link Controller (ELC) enabling direct peripheral-to-peripheral signal routing without CPU intervention.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | RL78 16-bit CISC with 3-stage pipeline; enables deterministic timing control and ultra-low-power sleep/wake cycles. |
| Flash Memory | 96 KB code flash + 8 KB data flash; supports self-programming with boot swap and flash shield window for firmware security. |
| RAM | 12 KB on-chip RAM; sufficient for real-time control 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 IC in thermal monitoring designs. |
| Low-Power Modes | 66 μA/MHz active, 0.60 μA STOP mode (RTC + LVD only); enables multi-year battery life in wireless sensor endpoints. |
| Operating Voltage | 1.6 V to 5.5 V single supply; allows direct interface with 1.8 V, 3.3 V, and 5 V peripherals without level shifters. |
| Package & Pin Count | 80-pin LFQFP, 0.5 mm pitch (PLQP0080KE-A); compatible with standard surface-mount reflow and automated optical inspection. |
Pinout & Package
Package: 80-pin LFQFP, 0.5 mm pitch, 12 × 12 mm body (Renesas code PLQP0080KE-A). Exposed pad not present - no thermal pad grounding required.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P00/P01 | TxD1/RxD1, TI00/TO00 | Dual-function UART channel 1 with timer capture/compare; supports isolated serial comms or motor phase timing. |
| P10–P17 | SPI/I²C/UART peripheral multiplexing | Configurable CSI (SPI-like), I²C, and UART pins with programmable drive strength; enables flexible sensor/actuator interface mapping. |
| P20–P27 | ANI0–ANI7, AVREFP/AVREFM | 8 analog inputs with dedicated reference pins; supports ratiometric sensing and precision voltage measurement across full VDD range. |
| P30/P31 | INTP3/RTC1HZ, TI03/TO03 | Real-time clock output (1 Hz) and independent 16-bit timer channel; enables time-stamped logging and PWM generation without CPU load. |
| P121/P122 | X1/X2 crystal oscillator inputs | Supports 32.768 kHz crystal for RTC accuracy ±20 ppm; enables high-precision timekeeping in energy-metering applications. |
| RESET, REGC, VDD, VSS | Power/reset management | On-chip POR and LVD with 14-level selection; REGC requires 0.47–1 μF capacitor to VSS for stable internal regulator operation. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-Low Power STOP Mode | 0.60 μA with RTC + LVD active - enables decade-scale battery operation in remote monitoring devices. |
| Event Link Controller (ELC) | Links 19–26 peripheral events (e.g., ADC end-of-conversion → DMA trigger) without CPU wake-up; reduces system latency and power. |
| Data Flash BGO | Background operation allows concurrent program execution while rewriting 8 KB data flash - critical for over-the-air firmware updates. |
| Hardware LIN Support | UART channel with automatic sync-break detection and checksum generation per ISO 14229; simplifies automotive body electronics integration. |
| Peripheral I/O Redirection | PIOR0/PIOR1 registers enable dynamic remapping of SCK/SI/SO, UART, and timer pins - improves PCB layout flexibility and reuse. |
Applications
| Smart Energy Metering | Industrial Sensor Node |
|---|---|
|
Use Scenario: Bidirectional kWh measurement with tamper detection, temperature compensation, and secure firmware updates. IC Role / Device Role / Timing Role: Main controller executing metrology algorithm, managing SPI-connected ADCs, and handling LIN-based utility communication. Use Value: 10-bit ADC with internal temperature sensor enables on-chip calibration; 8 KB data flash BGO ensures zero-interrupt firmware patching during metering cycles. |
Use Scenario: Wireless vibration/temperature node in predictive maintenance systems, operating on coin-cell batteries for >5 years. IC Role / Device Role / Timing Role: Low-power sensor aggregator with RTC-triggered sampling, ADC acquisition, and UART-to-Bluetooth bridge. Use Value: 0.60 μA STOP mode extends battery life; ELC links ADC EOC to DMA, eliminating CPU wake-ups and reducing average current by 42%. |
| HMI Control Panel | Home Appliance Motor Control |
|
Use Scenario: Touch-enabled kitchen appliance UI with LED dimming, buzzer feedback, and safety interlock monitoring. IC Role / Device Role / Timing Role: Dedicated HMI processor managing capacitive touch, PWM-driven LEDs, and real-time key interrupt response. Use Value: On-chip PCLBUZ0/1 timers generate precise audio tones; 20-channel ADC reads multiple touch electrodes and thermistors simultaneously. |
Use Scenario: Brushless DC motor control in HVAC blowers, requiring commutation timing, current sensing, and thermal shutdown. IC Role / Device Role / Timing Role: Real-time motor controller using TAU timers for 6-step commutation and ADC for phase current sampling. Use Value: 12-channel TAU provides independent PWM outputs with dead-time insertion; 1.6–5.5 V operation allows direct 3.3 V MCU + 5 V gate driver coexistence. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 16-bit microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F104MHAFB#V0 | Same 80-pin LFQFP package, but 128 KB flash + 16 KB RAM; identical peripheral set and pinout. | Required where larger firmware image size or extended data logging buffer is needed. | Select when future firmware growth headroom or additional RAM for protocol stacks (e.g., Modbus TCP) is essential. |
| R5F104LGAFB#V0 | 64-pin LFQFP, 0.5 mm pitch; 96 KB flash, 12 KB RAM, same core/peripherals but fewer I/O (64 vs. 80 pins). | Suitable for space-constrained designs where 16 fewer GPIOs and no P7x/KRx keypad interface are acceptable. | Choose for cost-optimized, compact industrial controls where full 80-pin I/O count is unnecessary. |
Compared with R5F104MHAFB#V0, the R5F104MGAFB#V0 trades flash/RAM headroom for identical footprint and cost efficiency; versus R5F104LGAFB#V0, it delivers 16 extra GPIOs and keypad scan capability at the expense of board area - enabling scalable design reuse across product tiers.
Availability
R5F104MGAFB#V0 is available at Aetrix Electronics and suitable for smart metering, industrial sensor nodes, and HMI control panels requiring stable component supply, long-term lifecycle assurance, and traceable sourcing.
Supply support for R5F104MGAFB#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, and power solutions for industrial, automotive, and IoT markets.
The RL78/G14 family targets cost-sensitive, ultra-low-power general-purpose applications - delivering optimized performance-per-milliwatt for battery-operated and energy-harvesting systems.
FAQ
What is the maximum operating frequency and corresponding current consumption of the R5F104MGAFB#V0?
The R5F104MGAFB#V0 operates up to 32 MHz with a typical active current of 66 μA/MHz at VDD = 3.3 V and TA = 25°C. At full speed, this equates to ~2.1 mA total active current, verified in Renesas' R01DS0053EJ0340 datasheet Section 1.1.
Does the R5F104MGAFB#V0 support LIN bus communication, and which UART channel implements it?
Yes, the R5F104MGAFB#V0 supports LIN bus communication via UART channels 0, 1, or 2 - all include LIN-specific features like automatic sync-break detection and checksum generation per ISO 14229. Channel 2 (pins P13/P14) is commonly used for LIN due to dedicated TRDIOx signal routing.
What is the data flash endurance specification for the R5F104MGAFB#V0, and does it require special voltage conditions for rewriting?
The R5F104MGAFB#V0 specifies 1,000,000 write/erase cycles (typical) for its 8 KB data flash. Rewriting is supported across the full operating voltage range of VDD = 1.8 V to 5.5 V - no elevated voltage or external charge pump is required.
How many analog input channels does the R5F104MGAFB#V0 support, and what reference options are available for the ADC?
The R5F104MGAFB#V0 supports 20 analog input channels (ANI0–ANI19). The ADC accepts either external references via AVREFP/AVREFM pins or the internal 1.45 V reference - selectable per channel in ADCSR register, enabling mixed-signal designs with varying sensor types.
Is the R5F104MGAFB#V0 pin-compatible with other RL78/G14 variants in the same 80-pin LFQFP package?
Yes, all RL78/G14 80-pin LFQFP variants - including R5F104MGAFB#V0, R5F104MHAFB#V0, and R5F104MJAFB#V0 - share identical pinout, electrical characteristics, and mechanical footprint (PLQP0080KE-A), enabling drop-in replacement within the same memory/peripheral configuration tier.
R5F104MGAFB#V0 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 80-LQFP
- Series:
- RL78/G14
- Packaging:
- Tray
- 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#V0 FAQ
1.How can I place an order for R5F104MGAFB#V0 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F104MGAFB#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 R5F104MGAFB#V0 reliable?
The price and inventory of R5F104MGAFB#V0 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F104MGAFB#V0 is usually 5 days.
3.What payment methods are accepted for R5F104MGAFB#V0?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F104MGAFB#V0 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F104MGAFB#V0?
R5F104MGAFB#V0 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F104MGAFB#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 R5F104MGAFB#V0?
For technical support, including R5F104MGAFB#V0 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F104MGAFB#V0 requirements.
6.How does Aetrix verify that R5F104MGAFB#V0 is sourced from the original manufacturer or authorized distributors?
All R5F104MGAFB#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 R5F104MGAFB#V0 meets industry standards.
7.What is the process for return or replacement of R5F104MGAFB#V0?
All R5F104MGAFB#V0 units undergo pre-shipment inspection (PSI). If there is an issue with R5F104MGAFB#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 R5F104MGAFB#V0 part is unused and in its original packaging.
Return procedure for R5F104MGAFB#V0:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F104MGAFB#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…

