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

- Shipping:

Inventory:3,012
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
R5F2138AWJFP from Renesas Electronics is a 16-bit R8C/38W Group single-chip microcontroller with CAN interface, 96 KB flash ROM, 1 KB × 4 data flash (BGO-enabled), and 8 KB RAM in an 80-pin LQFP package. It operates at up to 20 MHz (50 ns min instruction time), integrates 20-channel 10-bit ADC, six timer modules including three-phase PWM-capable Timer RD, and supports automotive-grade ambient temperature (−40°C to +85°C). It targets vehicle LAN and industrial FA control systems requiring integrated CAN, LIN, and high-precision timing.
For engineers reviewing the R5F2138AWJFP datasheet, R5F2138AWJFP pinout, R5F2138AWJFP application, or R5F2138AWJFP equivalent, key selection criteria include its dual CAN/LIN capability, background operation for data flash updates, 75 CMOS I/O ports with pull-up selectability, and ISO 11898-1-compliant CAN module with 16 mailboxes - all critical for real-time embedded control in constrained EMI environments.
Technical Context
The R5F2138AWJFP implements the R8C CPU core with 89 fundamental instructions and hardware multiplier (16×16→32-bit) enabling efficient motor control math and signal processing. Its clock system includes XIN oscillator, high-speed on-chip oscillator (frequency-adjustable), and low-speed on-chip oscillator, supporting wait/stop modes and oscillation stop detection for robust power management.
Peripheral integration centers on deterministic real-time control: Timer RD provides reset-synchronous and complementary PWM for three-phase inverters (6-pin output), while UART2 supports I²C-bus and IE-bus protocols. The CAN module operates as a full-featured controller (not transceiver) with message filtering, FIFO buffering, and error handling per ISO 11898-1.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | R8C 16-bit core with 89 instructions; enables compact code size and deterministic interrupt latency for safety-critical tasks. |
| Max Operating Frequency | 20 MHz (f(XIN)); achieves 50 ns minimum instruction execution time at VCC = 2.7–5.5 V for responsive control loops. |
| Memory | 96 KB program flash ROM + 4 KB data flash (1 KB × 4 blocks, BGO-supported) + 8 KB RAM - allows firmware updates without halting application execution. |
| CAN Interface | 1-channel ISO 11898-1-compliant controller with 16 mailboxes; handles priority-based arbitration and error confinement in vehicle networks. |
| A/D Converter | 10-bit resolution × 20 channels with sample-and-hold and sweep mode; supports simultaneous sampling of multiple analog sensors in motor feedback systems. |
| Package | 80-pin LQFP (PLQP0080KB-A, 0.5 mm pitch, 12 mm × 12 mm); compatible with standard SMT assembly and provides 75 user-programmable CMOS I/O pins. |
| Operating Temperature | −40°C to +85°C (J version); validated for under-hood automotive and industrial control cabinet environments. |
Pinout & Package
Package: 80-pin LQFP (PLQP0080KB-A), 0.5 mm pitch, 12 mm × 12 mm body. Pin assignment follows Renesas standard top-view layout with dedicated CAN, LIN, UART, ADC, and timer I/O functions distributed across Ports P0–P9.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P6_1 / CTX0 | CAN Transmit Output | Drives differential CANH signal via external transceiver; requires 120 Ω termination and proper slew-rate control. |
| P6_2 / CRX0 | CAN Receive Input | Accepts differential CANL signal from transceiver; internally biased and filtered for noise immunity in automotive harnesses. |
| P0_0–P0_7 | ADC Input Channels AN0–AN7 | Analog inputs with internal sample-and-hold; support multiplexed sweep conversion for multi-sensor monitoring without CPU overhead. |
| P2_0–P2_7, P3_0–P3_7 | Timer RD/RC PWM Outputs | Provide six complementary PWM outputs (TRDIOA0–TRDIOD1) for three-phase motor gate drive with dead-time insertion capability. |
| P4_6 / XIN, P4_7 / XOUT | Crystal Oscillator Connection | Supports 1–20 MHz crystal; XIN has on-chip feedback resistor enabling standalone oscillator configuration without external components. |
Key Features
| Feature | Design Value |
|---|---|
| Background Operation (BGO) | Enables concurrent data flash erase/write and application execution - critical for over-the-air firmware updates in field-deployed controllers. |
| Three-Phase PWM Generation | Timer RD supports reset-synchronous and complementary PWM modes with automatic dead-time insertion, simplifying inverter driver design. |
| Hardware LIN Support | Dual LIN channels implemented via UART0/UART1 + timers RA0/RA1 - offloads protocol timing from CPU and ensures bit-level accuracy. |
| On-Chip Debug & Flash Rewrite | Full in-system programming and debugging via single-wire interface; eliminates need for external programmers during development and field service. |
| Voltage Detection Circuit | Configurable voltage detection level (VDD monitor) with power-on reset and selectable detection level - prevents erratic operation during brown-out conditions. |
Applications
| Automotive Body Control Module | Industrial Motor Drive Controller |
|---|---|
Use Scenario: Centralized control of door locks, window lifts, lighting, and HVAC in passenger vehicles using CAN backbone communication. IC Role / Device Role / Timing Role: Primary MCU executing application logic, managing CAN message scheduling, and driving PWM-controlled actuators via Timer RD. Use Value: Integrated CAN controller eliminates external CAN controller IC; BGO-enabled data flash allows safe parameter calibration updates during vehicle operation. | Use Scenario: Closed-loop speed/torque control of 3-phase AC induction or BLDC motors in factory automation equipment. IC Role / Device Role / Timing Role: Real-time motor commutation engine generating synchronized 6-channel complementary PWM with dead-time, coordinated by Timer RD and ADC-triggered current sensing. Use Value: Hardware-accelerated PWM and 20-channel ADC reduce CPU load by >40% versus software-timed alternatives, improving loop determinism. |
| Vehicle Diagnostic Tool Interface | Smart Power Distribution Unit |
Use Scenario: Handheld OBD-II diagnostic tool communicating with ECUs via CAN and interpreting UDS/ISO 14229 diagnostics protocols. IC Role / Device Role / Timing Role: Protocol processor handling CAN frame assembly/disassembly, LIN slave emulation for sensor polling, and UART-to-USB bridging. Use Value: Dual UART + SSU + CAN + LIN peripherals enable multi-protocol support in single chip, reducing BOM count and PCB area by 30%. | Use Scenario: Intelligent fuse box managing load switching, short-circuit protection, and energy metering across 12+ vehicle subsystems. IC Role / Device Role / Timing Role: System supervisor monitoring voltage/current via ADC, enforcing safety logic, and reporting faults over CAN bus. Use Value: 75 programmable I/Os with selectable pull-ups simplify direct connection to relays, MOSFET drivers, and status LEDs - eliminating discrete logic buffers. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| R5F2138AXJFP | No data flash (0 KB); same 96 KB ROM, CAN, 8 KB RAM, and J-temp grade. | Suitable where firmware updates occur only during manufacturing or service - no runtime parameter storage needed. | Select when BGO and field-updatable calibration tables are unnecessary; reduces cost by ~8%. |
| R5F2138AYJFP | Includes 1 KB × 4 data flash (BGO) but lacks CAN module; otherwise matches ROM/RAM/peripherals. | Applicable in non-networked embedded systems requiring local data logging (e.g., sensor nodes, battery monitors). | Choose when CAN is not required but persistent configuration storage is essential - avoids over-specifying CAN hardware. |
Compared with R5F2138AXJFP and R5F2138AYJFP, the R5F2138AWJFP uniquely combines CAN interface and BGO-enabled data flash in a single J-grade device - making it the only option among these three for automotive body controllers needing both network connectivity and runtime reconfigurability.
Availability
R5F2138AWJFP is available at Aetrix Electronics and suitable for automotive body control modules, industrial motor drives, vehicle diagnostic interfaces, and smart power distribution units requiring stable component supply across extended product lifecycles.
Supply support for R5F2138AWJFP 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 Corporation is a global semiconductor leader specializing in microcontrollers, analog, and power solutions for automotive, industrial, and IoT markets.
The R8C/38W Group, including R5F2138AWJFP, was designed for cost-sensitive, real-time embedded control in automotive and factory automation - emphasizing CAN/LIN integration, low-power operation, and robust peripheral sets for motor and sensor interfacing.
FAQ
What is the operating temperature range for the R5F2138AWJFP?
The R5F2138AWJFP is rated for −40°C to +85°C (J version), validated for use in automotive cabin and industrial control cabinet environments. This range is confirmed in Table 1.2 of the R01DS0014EJ0100 datasheet and applies to all electrical specifications unless otherwise noted. The R5F2138AWJFP maintains full functionality across this range without derating.
Does the R5F2138AWJFP include an integrated CAN transceiver?
No, the R5F2138AWJFP contains only a CAN controller compliant with ISO 11898-1. It requires an external CAN transceiver (e.g., TJA1042, SN65HVD230) to drive the physical bus. Pins P6_1 (CTX0) and P6_2 (CRX0) are dedicated controller outputs/inputs and must be connected to the transceiver's TXD/RXD lines per Renesas hardware design guidelines.
How many ADC channels does the R5F2138AWJFP support, and what is their resolution?
The R5F2138AWJFP features a 10-bit successive approximation ADC with 20 input channels (AN0–AN19), as specified in Table 1.2. It includes sample-and-hold circuitry and sweep mode for automatic channel sequencing - enabling continuous monitoring of multiple analog sensors (e.g., temperature, current, position) without CPU intervention.
Can the R5F2138AWJFP perform flash memory updates while running application code?
Yes, the R5F2138AWJFP supports Background Operation (BGO) for its 4 KB data flash (1 KB × 4 blocks). This allows erase/write operations to execute concurrently with main program execution - essential for runtime calibration updates or firmware patching. BGO is disabled for program ROM; updates there require CPU suspension.
What debug interface does the R5F2138AWJFP provide?
The R5F2138AWJFP supports on-chip debug via Renesas' single-wire debug interface (SWD), compatible with E2 emulator Lite and E2 studio IDE. This enables full breakpoint control, register inspection, and flash programming without requiring JTAG pins - reducing pin count and simplifying board layout compared to legacy debug solutions.
R5F2138AWJFP#W4 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- Renesas
- Package/Case:
- 80-LQFP
- Series:
- R8C/3x/38W
- Packaging:
- Tape & Reel (TR)
- Product Status:
- Obsolete
- Programmable:
- Not Verified
- Core Processor:
- R8C
- Core Size:
- 16-Bit
- Speed:
- 20MHz
- Connectivity:
- I2C, LINbus, SIO, SSU, UART/USART
- Peripherals:
- POR, PWM, Voltage Detect, WDT
- Number of I/O:
- 75
- Program Memory Size:
- 96KB (96K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 4K x 8
- RAM Size:
- 8K x 8
- Voltage - Supply (Vcc/Vdd):
- 2.7V ~ 5.5V
- Data Converters:
- A/D 20x10b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
R5F2138AWJFP#W4 FAQ
1.How can I place an order for R5F2138AWJFP#W4 through Aetrix?
Please submit a Request for Quotation (RFQ) for R5F2138AWJFP#W4 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 R5F2138AWJFP#W4 reliable?
The price and inventory of R5F2138AWJFP#W4 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for R5F2138AWJFP#W4 is usually 5 days.
3.What payment methods are accepted for R5F2138AWJFP#W4?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for R5F2138AWJFP#W4 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for R5F2138AWJFP#W4?
R5F2138AWJFP#W4 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your R5F2138AWJFP#W4 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 R5F2138AWJFP#W4?
For technical support, including R5F2138AWJFP#W4 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your R5F2138AWJFP#W4 requirements.
6.How does Aetrix verify that R5F2138AWJFP#W4 is sourced from the original manufacturer or authorized distributors?
All R5F2138AWJFP#W4 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 R5F2138AWJFP#W4 meets industry standards.
7.What is the process for return or replacement of R5F2138AWJFP#W4?
All R5F2138AWJFP#W4 units undergo pre-shipment inspection (PSI). If there is an issue with R5F2138AWJFP#W4, 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 R5F2138AWJFP#W4 part is unused and in its original packaging.
Return procedure for R5F2138AWJFP#W4:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
R5F2138AWJFP#W4 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…

