RL78

Last updated
RL78 Family microcontrollers
General information
Launched2010;13 years ago (2010)
Discontinuedcurrent
Common manufacturer(s)
Performance
Max. CPU clock rate 32 kHz to 40 MHz
Data width16
Address width20
Architecture and classification
Application Embedded,
home appliances,
automotive
Microarchitecture RL78-S1 (8-bit),
RL78-S2 (16-bit),
RL78-S3 (16-bit)
Instruction set RL78 Family
Number of instructions74 (RL78-S1),
75 (RL78-S2),
81 (RL78-S3)
Physical specifications
Cores
  • 1
History
Predecessor(s) 78K0R

RL78 Family is a 16-bit CPU core for embedded microcontrollers of Renesas Electronics introduced in 2010. [1]

Contents

Architecture

The RL78 family is an accumulator-based register-bank CISC instruction set architecture (ISA). [2] Although it has eight 8-bit registers or four 16-bit register pairs, essentially all arithmetic operations are performed on a single accumulator (the A register or AX register pair). Its basic ISA is succeeded from 78K0R, which has 75 same instructions out of 80. It has a 20-bit (1 megabyte) address space. [3]

Special-purpose registers consist of:

Data addressing is mostly 16-bit, with all RAM and special function registers located in the high 64 KB of the address space (0xF00000xFFFFF), and data accesses defaulting to that region. Access to other regions of the address space uses an "ES" prefix opcode, indicating that the high four address bits should come from a special "extra segment" register instead.

The basic 2-operand ALU operations come in the following forms:

Code addresses, in contrast, default to the low portion of the address space where the ROM is located. Control transfer instructions (jump and call) allow a 20-bit address to be specified, while indirect control transfers use the concatenation of a 16-bit register address and a 4-bit "code segment" register. Unlike the 8086 microprocessor, there are no separate near and far return instructions; all subroutine calls push the full 20-bit return address.

The architecture is consistently little-endian, with all multi-bytes values appearing least significant byte.

Microarchitectures

RL78 family processors have 3-stage instruction pipelining. Most models have four register banks which may be selected quickly.

RL78 has three microarchitecture variants as follows.

μ-ArchALURegistersInstructionsPipelineRemarkDocuments
RL78-S316-bit8× 8-bit ×4 banks81 (75+6)3-stageμ-arch variants [5] :8
RL78-S216-bit8× 8-bit ×4 banks753-stage
RL78-S18-bit8× 8-bit (no bank)74 (75-1)3-stage
78K0R16-bit8× 8-bit ×4 banks80 (75+5)3-stageDirect predecessor
Extended 78K/0
[6] :18
78K0S8-bit8× 8-bit (no bank)47noneSimplified 78K/0 [7]
78K08-bit8× 8-bit ×4 banks48noneBasic 78K/0 core [8]

Applications

RL78 covers wide range of application area for mechanical system controls and for user interfaces. [9]

Grouping

RL78 Family is divided into some groups, those have unique naming rules.

Application examples

RL78 is suitable for consumer electronics, such as major appliances (including; washing machines, clothes dryers, dishwashers, refrigerators, and air conditioners), small appliances (including; power tools, vacuum cleaners, and coffeemakers), and medical devices (including; electronic toothbrushes, blood glucose meters, holter monitors). It is also used for factory automation infrastructure (including; sensors, gauges, and actuators), [11] and energy conservation (including; smart meters, inverter compressors, and lighting control systems).

For automotive industry, low-power and size constrained applications are ideally suited to RL78's automotive dedicated communication interfaces, such as CAN, LIN, and IEBus, [12] :4 and brushless DC electric motor solutions. [13] Three special grade of maximum ambient temperature, 105 °C (221 °F), 125 °C (257 °F), and 150 °C (302 °F), are available for some products. [14] :2

History

RL78 (130nm MF3 flash process) was the first new MCU to emerge from the new Renesas Electronics company from the merger of NEC Electronics and Renesas Technology [1] and incorporated the features of the NEC 78K0R (150nm MF2 flash process) and Renesas Technology R8C microcontrollers. The RL78 core variants include the S1, S2, and S3 type cores which evolved from the NEC 78K0R core. The basic S1 core support 74 instructions, the S2 core adds register banking and supports 75 instructions, while the S3 core adds an on-chip multiplier / divider / multiple-accumulate and supports 81 instructions.

The RL78 was developed to address extremely low power but highly integrated microcontroller applications, to this end the core offered a novel low power mode of operation called “snooze mode” where the ADC or serial interface can be programmed to meet specific conditions to wake the device from the extreme low power STOP mode of 0.52uA.

Software and development tools

RL78 Family is supported with a various range of hardware and software development tools.

Compilers and IDEs

The GNU Compiler Collection, [15] Renesas CS+ (formerly CubeSuite+), [10] [16] Renesas e2studio (based on Eclipse), [17] and IAR Systems' compiler and development environment [18] [19] are available. The Renesas CS+ IDE is free for debug-only use and supports standard ELF executable files. The RL78 ABI defined by Renesas is compatible with IAR's V2 and higher compilers.

Real-time operating systems

Regarding real-time operating systems, CMX Systems, Inc.'s CMX-RTX, [19] Micrium, Inc.'s μC/OS-II and MicroC/OS-III, [19] ITRON OS Segger Microcontroller Systems' embOS, FreeRTOS , and ChibiOS/RT are supported.

Code generating tools

Renesas provides a free code generating tool named APPLIcation LEading Tool (Applilet). [20]

Flash ROM programming libraries

Renesas provides free self-programming libraries; Code Flash Libraries (CFL) [21] and Data Flash Libraries (DFL). [22] A EEPROM Emulation Library (EEL) is also available for the data-flash to add wear leveling and robustness. Different classes of DFL and EEL are available to match application needs including the standard T01 type, "Tiny" T02 type, and "Pico" T04 type (DFL-only).

In-circuit emulators

Several companies provide on-chip debuggers and full-spec in-circuit emulators. Renesas makes on-chip debuggers [23] as well as third-parties, such as Lauterbach and iSystems. [24] Renesas [25] and iSystems [26] supply full-spec in-circuit emulators.

On-chip device programming tools

Device programming can be achieved by using the on-chip debug port or by using the special serial programming mode of the devices. Renesas supports the serial programming mode with debug tools via the Renesas Flash Programmer (RFP) [27] and the stand-alone programmers; PG-FP5 [1] [28] and PG-FP6, [29] while several third-parties support RL78 with their own device programmers.

Variants

RL78 Family has a range of devices from 20pin with 16K Byte flash memory to 128pin with 512K Byte flash memory. [30]

RL78/G13

RL78/G13 integrates a +/- 1% accuracy on-chip oscillator, watch dog timer, RTC, power-on reset, low voltage detection, 26 channels of 10bit ADC, 16x16 Multiplier, 32/32 Divider, I2C, CSI/SPI, UART, LIN, multi-function timer array and also built-in IEC 60730 safety support in hardware. This combination of elements enables the system designer to achieve high performance (41DMIPS) systems operating at very low power levels and at low cost due to the high level of integration in the microcontroller. [31] [32]

RL78/G12

G12 is a smaller version of G13 introduced in 2012. RL78/G12. Introduced with 20, 24, and 30-pin packages with 2 KB to 16 KB small size flash memory although providing the G13 functionality with integrated +/- 1% 24 MHz oscillator, reset circuit, a low voltage detection circuit, watchdog timer, data flash with background operation, and including functional safety, on-chip with A/D converter testing function.

This small device is designated for use as a sub-microcontroller suitable for use as in small home appliances and general consumer electronic devices.

RL78/G14

In 2012 an addition to the RL78 family was introduced called the G14. [33] This device offers higher levels of integration with the inclusion of additional multiply and divide and multiply-accumulate instructions capable of faster processing than the RL78/G13, 2 Channel 8-bit D/A, 2 Channel comparator, and timer array making it suitable for motor control applications.

RL78/I1A

An application specific version (ASSP) of the RL78 core was introduced in 2012 for controlling lighting systems, this device was named the RL78/I1A. Specific features of the device such as special PWM timers enable fine dimming, lighting sequence and colour temperature control with power factor correction of the power supply. In addition integrated communication functions for DALI, DMX512 and multiple sensor & user interface controls are provided. Applications for the RL78/I1A include: building automation, LED drivers, lighting controls, fluorescent ballasts, emergency lighting, HID ballasts, digital power supplies, low-cost inverter controls.

RL78/L12

Microcontroller series with LCD Drive

Entering mass production at the beginning of 2013, the RL78/L12 includes integrated LCD drive capability for 35 segments x 8 or 39 segments x 4. Three alternative LCD drive methods mat be enabled: split capacitor, capacitive charge pump or external split resistor. With the split capacitor method a low power LCD drive of 0.6uA at 3V can be achieved. Selectable functions (Seg or I/O) for every segment pin, and drive for both glass and panel.

RL78/F1x

Automotive Microcontrollers

The RL78 F12, F13, F14, & F15 devices replaced the original NEC 78K0R/Fx3 devices with many updates including die shrink, faster core speed (32MHz), improved on-chip debug capability, new peripherals, safety features, and expanded package and memory options. The application note r01an2639ej can be used as a guide when migrating from 78K0R/Fx3 to RL78/F1x.

See also

Related Research Articles

<span class="mw-page-title-main">Microcontroller</span> Small computer on a single integrated circuit

A microcontroller or microcontroller unit (MCU) is a small computer on a single integrated circuit. A microcontroller contains one or more CPUs along with memory and programmable input/output peripherals. Program memory in the form of ferroelectric RAM, NOR flash or OTP ROM is also often included on chip, as well as a small amount of RAM. Microcontrollers are designed for embedded applications, in contrast to the microprocessors used in personal computers or other general purpose applications consisting of various discrete chips.

<span class="mw-page-title-main">Zilog Z80</span> 8-bit microprocessor

The Z80 is an 8-bit microprocessor introduced by Zilog as the startup company's first product. The Z80 was conceived by Federico Faggin in late 1974 and developed by him and his 11 employees starting in early 1975. The first working samples were delivered in March 1976, and it was officially introduced on the market in July 1976. With the revenue from the Z80, the company built its own chip factories and grew to over a thousand employees over the following two years.

<span class="mw-page-title-main">MCS-51</span> Single chip microcontroller series by Intel

The Intel MCS-51 is a single chip microcontroller (MCU) series developed by Intel in 1980 for use in embedded systems. The architect of the Intel MCS-51 instruction set was John H. Wharton. Intel's original versions were popular in the 1980s and early 1990s, and enhanced binary compatible derivatives remain popular today. It is a complex instruction set computer, but also has some of the features of RISC architectures, such as a large register set and register windows, and has separate memory spaces for program instructions and data.

<span class="mw-page-title-main">AVR microcontrollers</span> Family of microcontrollers

AVR is a family of microcontrollers developed since 1996 by Atmel, acquired by Microchip Technology in 2016. These are modified Harvard architecture 8-bit RISC single-chip microcontrollers. AVR was one of the first microcontroller families to use on-chip flash memory for program storage, as opposed to one-time programmable ROM, EPROM, or EEPROM used by other microcontrollers at the time.

SuperH is a 32-bit reduced instruction set computing (RISC) instruction set architecture (ISA) developed by Hitachi and currently produced by Renesas. It is implemented by microcontrollers and microprocessors for embedded systems.

<span class="mw-page-title-main">PIC microcontrollers</span> Line of single-chip microprocessors from Microchip Technology

PIC is a family of microcontrollers made by Microchip Technology, derived from the PIC1650 originally developed by General Instrument's Microelectronics Division. The name PIC initially referred to Peripheral Interface Controller, and is currently expanded as Programmable Intelligent Computer. The first parts of the family were available in 1976; by 2013 the company had shipped more than twelve billion individual parts, used in a wide variety of embedded systems.

<span class="mw-page-title-main">TI MSP430</span>

The MSP430 is a mixed-signal microcontroller family from Texas Instruments, first introduced on 14 February 1992. Built around a 16-bit CPU, the MSP430 was designed for use with low power consumption embedded applications and for low cost.

Renesas Electronics Corporation is a Japanese semiconductor manufacturer headquartered in Tokyo, Japan, initially incorporated in 2002 as Renesas Technology, the consolidated entity of the semiconductor units of Hitachi and Mitsubishi excluding their dynamic random-access memory (DRAM) businesses, to which NEC Electronics merged in 2010, resulting in a minor change in the corporate name and logo to as it is now.

JTAG is an industry standard for verifying designs and testing printed circuit boards after manufacture.

<span class="mw-page-title-main">Blackfin</span> Family of 16-/32-bit microprocessors

The Blackfin is a family of 16-/32-bit microprocessors developed, manufactured and marketed by Analog Devices. The processors have built-in, fixed-point digital signal processor (DSP) functionality supplied by 16-bit multiply–accumulates (MACs), accompanied on-chip by a microcontroller. It was designed for a unified low-power processor architecture that can run operating systems while simultaneously handling complex numeric tasks such as real-time H.264 video encoding.

V850 is a 32-bit RISC CPU architecture produced by Renesas Electronics for embedded microcontrollers. It was designed by NEC as a replacement for their earlier NEC V60 family, and was introduced shortly before NEC sold their designs to Renesas in the early 1990s. It has continued to be developed by Renesas as of 2018.

<span class="mw-page-title-main">Cypress PSoC</span> Type of integrated circuit

PSoC is a family of microcontroller integrated circuits by Cypress Semiconductor. These chips include a CPU core and mixed-signal arrays of configurable integrated analog and digital peripherals.

<span class="mw-page-title-main">IEBus</span> Communication bus specification

IEBus is a communication bus specification "between equipments within a vehicle or a chassis" of Renesas Electronics. It defines OSI model layer 1 and layer 2 specification. IEBus is mainly used for car audio and car navigations, which established de facto standard in Japan, though SAE J1850 is major in United States.
IEBus is also used in some vending machines, which major customer is Fuji Electric. Each button on the vending machine has an IEBus ID, i.e. has a controller.
Detailed specification is disclosed to licensees only, but protocol analyzers are provided from some test equipment vendors. Its modulation method is PWM with 6.00 MHz base clock originally, but most of automotive customers use 6.291 MHz, and physical layer is a pair of differential signalling harness. Its physical layer adopts half-duplex, asynchronous, and multi-master communication with carrier-sense multiple access with collision detection (CSMA/CD) for medium access control. It allows for up to fifty units on one bus over a maximum length of 150 meters. Two differential signalling lines are used with Bus+ / Bus− naming, sometimes labeled as Data(+) / Data(−).

TLCS is a prefix applied to microcontrollers made by Toshiba. The product line includes multiple families of CISC and RISC architectures. Individual components generally have a part number beginning with "TMP". E.g. the TMP8048AP is a member of the TLCS-48 family.

The Mitsubishi 740, also known as MELPS 740, is a series of 8-bit CMOS microcontrollers and microprocessors with an enhanced MOS Technology 6502 compatible core based on the expanded WDC 65C02. The ICs were manufactured by Mitsubishi Electric during the 1980s and 1990s.

<span class="mw-page-title-main">XC800 family</span>

The Infineon XC800 family is an 8-bit microcontroller family, first introduced in 2005, with a dual cycle optimized 8051 "E-Warp" core. The XC800 family is divided into two categories, the A-Family for Automotive and the I-Family for Industrial and multi-market applications.

<span class="mw-page-title-main">STM32</span> ARM Cortex-M based Microcontrollers by STMicroelectronics

STM32 is a family of 32-bit microcontroller integrated circuits by STMicroelectronics. The STM32 chips are grouped into related series that are based around the same 32-bit ARM processor core: Cortex-M0, Cortex-M0+, Cortex-M3, Cortex-M4, Cortex-M7, Cortex-M33. Internally, each microcontroller consists of ARM processor core(s), flash memory, static RAM, debugging interface, and various peripherals.

<span class="mw-page-title-main">NXP LPC</span> Family of 32-bit microcontroller integrated circuits

LPC is a family of 32-bit microcontroller integrated circuits by NXP Semiconductors. The LPC chips are grouped into related series that are based around the same 32-bit ARM processor core, such as the Cortex-M4F, Cortex-M3, Cortex-M0+, or Cortex-M0. Internally, each microcontroller consists of the processor core, static RAM memory, flash memory, debugging interface, and various peripherals. The earliest LPC series were based on the Intel 8-bit 80C51 core. As of February 2011, NXP had shipped over one billion ARM processor-based chips.

<span class="mw-page-title-main">78K</span> Microcontroller family

78K is the trademark name of 16- and 8-bit microcontroller family manufactured by Renesas Electronics, originally developed by NEC started in 1986. The basis of 78K Family is an accumulator-based register-bank CISC architecture. 78K is a single-chip microcontroller, which usually integrates; program ROM, data RAM, serial interfaces, timers, I/O ports, an A/D converter, an interrupt controller, and a CPU core, on one die.

References

  1. 1 2 3 4 "Renesas Electronics Introduces the New RL78 Microcontroller Family to Deliver Solutions for Next-Generation 8-/16-bit Embedded Applications". Business Wire (Press release). Renesas Electronics. 2010-11-17.
  2. Matsui, Mitsuru; Murakami, Yumiko (11 March 2013). "Minimalism of Software Implementation: Extensive Performance Analysis of Symmetric Primitives on the RL78 Microcontroller" (PDF). Fast Software Encryption. 20th International Workshop, FSE 2013. Lecture Notes in Computer Science. Vol. 8424. Singapore. pp. 393–409. doi:10.1007/978-3-662-43933-3_20. ISBN   978-3-662-43933-3.
  3. Dean, Alexander G.; Conrad, James M. (2012). Creating Fast, Responsive and Energy-Efficient Embedded Systems using the Renesas RL78 Microcontroller (PDF). 1290 Weston Road, Suite 306 Weston, FL 33326 USA: Micrium Press. ISBN   9781935772989.{{cite book}}: CS1 maint: location (link)
  4. "78K0R Microcontrollers User's Manual: Instructions". p. 14. Retrieved 2023-11-29.
  5. Renesas official: RL78 family User's Manual: Software. Renesas Electronics.
  6. Renesas official: 78K0R Microcontrollers User's Manual: Instructions. Renesas Electronics.
  7. Renesas official: 78K/0S Series for Instructions. Renesas Electronics.
  8. Renesas official: 78K/0 Series for Instructions. Renesas Electronics.
  9. Renesas official: Renesas Microcontrollers RL78 Family. Renesas Electronics.
  10. 1 2 SHASHI KIRAN K (16 April 2017). "Renesas RL78 Series Microcontroller Programming Steps". YouTube.
  11. Hemachandra, S.; Kiran, T.K.S. Ravi; Prasad, B. Gowri; Mazhar, S. M. (April 2014). "Accelerometer based Robot control using Renesas Microcontroller" (PDF). International Journal of Modern Engineering Research: 40–48.
  12. Renesas official: RL78/F15 User's Manual: Hardware. Renesas Electronics.
  13. Renesas official: Renesas Automotive: RL78 Brushless DC Motor Solution. Renesas Electronics.
  14. Renesas official: RL78/F13, F14 User's Manual: Hardware. Renesas Electronics.
  15. "Using the GNU Compiler Collection (GCC): RL78 Options". gcc.gnu.org.
  16. "CS+ (formerly CubeSuite+)". Renesas Electronics.
  17. "e² studio". Renesas Electronics.
  18. Emilio, Maurizio Di Paolo (2014). Embedded Systems Design for High-Speed Data Acquisition and Control. Springer. ISBN   9783319068657.
  19. 1 2 3 "Renesas Electronics America Expands the Ecosystem For Its RL78 Microcontroller Family". Business Wire. 2011-05-02.
  20. "AP4, Applilet". Renesas Electronics.
  21. "Code Flash Libraries (Flash Self Programming Libraries)". Renesas Electronics.
  22. "Data Flash Libraries". Renesas Electronics.
  23. "On-chip Debuggers". Renesas Electronics.
  24. "On-Chip Analyzers (Debug & Trace) - iSYSTEM - Enabling Safer Embedded Systems". www.isystem.com.
  25. "IECUBE for RL78 family". Renesas Electronics.
  26. "Target Adaptation - iSYSTEM - Enabling Safer Embedded Systems". www.isystem.com.
  27. "Renesas Flash Programmer (Programming GUI)". Renesas Electronics.
  28. "PG-FP5". Renesas Electronics.
  29. "PG-FP6". Renesas Electronics.
  30. Renesas official: RL78 Microcontroller Brochure. Renesas Electronics.
  31. "The Renesas RL78 for Low-Power Applications | Circuit Cellar". Circuit Cellar. 2012-04-09.
  32. Donovan, John (2013-01-16). "Hands-on Review of the Renesas RL78G13 Kit | DigiKey". www.digikey.jp. Digi-Key Electronics.
  33. "Renesas Electronics Announces New RL78 Microcontrollers with Enhanced Real-Time Control Capabilities". Business Wire. 2011-06-23.