RL78
   HOME

TheInfoList



OR:

RL78 Family is a 16-bit
CPU A central processing unit (CPU), also called a central processor, main processor or just processor, is the electronic circuitry that executes instructions comprising a computer program. The CPU performs basic arithmetic, logic, controlling, a ...
core for embedded
microcontroller A microcontroller (MCU for ''microcontroller unit'', often also MC, UC, or μC) is a small computer on a single VLSI integrated circuit (IC) chip. A microcontroller contains one or more CPUs ( processor cores) along with memory and programmabl ...
s of
Renesas Electronics 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 ...
introduced in 2010.


Architecture

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). Most models have four register banks which may be selected quickly. Special-purpose registers consist of: * 20-bit
program counter The program counter (PC), commonly called the instruction pointer (IP) in Intel x86 and Itanium microprocessors, and sometimes called the instruction address register (IAR), the instruction counter, or just part of the instruction sequencer, i ...
PC * 16-bit stack pointer SP. This is always 2-byte aligned. * 8-bit program status word PSW. This includes a
carry flag In computer processors the carry flag (usually indicated as the C flag) is a single bit in a system status register/flag register used to indicate when an arithmetic carry or borrow has been generated out of the most significant arithmetic l ...
(borrow bit on subtract), auxiliary carry flag and
zero flag The zero flag is a single bit flag that is a central feature on most conventional CPU architectures (including x86, ARM, PDP-11, 68000, 6502, and numerous others). It is often stored in a dedicated register, typically called status register or ...
, but ''not'' a
negative flag In a computer processor the negative flag or sign flag is a single bit in a system status (flag) register used to indicate whether the result of the last mathematical operation produced a value in which the most significant bit (the left most bit) ...
or
overflow flag In computer processors, the overflow flag (sometimes called the V flag) is usually a single bit in a system status register used to indicate when an arithmetic overflow has occurred in an operation, indicating that the signed two's-complement ...
. The former is unnecessary, as it is possible to branch on the most significant bit of the accumulator directly, but the lack of the latter makes signed comparisons awkward. * Two 4-bit segment registers, describes below. Data addressing is mostly 16-bit, with all RAM and special function registers located in the high 64 KB of the address space (0xF0000–0xFFFFF), 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: * A, #immediate (A ← A op immediate) * A, register (A ← A op register) * register, A (register ← register op A) * A, addr8 (A ← A op ddr8 range limited to special function registers) * A, addr16 (A ← A op ddr16 ES: prefix optional) * A, L(A ← A op L ES: prefix optional) * A,
L+byte L, or l, is the twelfth letter in the Latin alphabet, used in the modern English alphabet, the alphabets of other western European languages and others worldwide. Its name in English is ''el'' (pronounced ), plural ''els''. History Lamedh ...
(A ← A op
L+byte L, or l, is the twelfth letter in the Latin alphabet, used in the modern English alphabet, the alphabets of other western European languages and others worldwide. Its name in English is ''el'' (pronounced ), plural ''els''. History Lamedh ...
ES: prefix optional) * A,
L+B LB, lb or lb. may refer to: Businesses and organizations * L Brands, an American clothing retailer * Lane Bryant, a plus-size clothing retailer * Laurier Brantford, a satellite campus of Wilfrid Laurier University in Brantford, Ontario, Canada * ...
(A ← A op
L+B LB, lb or lb. may refer to: Businesses and organizations * L Brands, an American clothing retailer * Lane Bryant, a plus-size clothing retailer * Laurier Brantford, a satellite campus of Wilfrid Laurier University in Brantford, Ontario, Canada * ...
ES: prefix optional) * A,
L+C LC or Lc may refer to: Arts and entertainment * Library of Congress Classification, a system of library classification Gaming and play * Lego Chess, a Lego-based chess video game * Lego Creator, a theme of Lego * ''Lego Creator'' (video game), ...
(A ← A op
L+C LC or Lc may refer to: Arts and entertainment * Library of Congress Classification, a system of library classification Gaming and play * Lego Chess, a Lego-based chess video game * Lego Creator, a theme of Lego * ''Lego Creator'' (video game), ...
ES: prefix optional) 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 The 8086 (also called iAPX 86) is a 16-bit microprocessor chip designed by Intel between early 1976 and June 8, 1978, when it was released. The Intel 8088, released July 1, 1979, is a slightly modified chip with an external 8-bit data bus (allo ...
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 In computing, endianness, also known as byte sex, is the order or sequence of bytes of a word of digital data in computer memory. Endianness is primarily expressed as big-endian (BE) or little-endian (LE). A big-endian system stores the most si ...
, with all multi-bytes values appearing least significant byte.


Microarchitectures

RL78 Family is an accumulator-based register-bank CISC
architecture Architecture is the art and technique of designing and building, as distinguished from the skills associated with construction. It is both the process and the product of sketching, conceiving, planning, designing, and constructing buildings ...
with 3-stage instruction pipelining. It has 20-bit ()
address space In computing, an address space defines a range of discrete addresses, each of which may correspond to a network host, peripheral device, disk sector, a memory cell or other logical or physical entity. For software programs to save and retrieve s ...
. Its basic
instruction set architecture In computer science, an instruction set architecture (ISA), also called computer architecture, is an abstract model of a computer. A device that executes instructions described by that ISA, such as a central processing unit (CPU), is called an ...
is succeeded from 78K0R, which has 75 same instructions out of 80. RL78 has three
microarchitecture In computer engineering, microarchitecture, also called computer organization and sometimes abbreviated as µarch or uarch, is the way a given instruction set architecture (ISA) is implemented in a particular processor. A given ISA may be imp ...
variants as follows.


Applications

RL78 covers wide range of application area for
mechanical system A machine is a physical system using power to apply forces and control movement to perform an action. The term is commonly applied to artificial devices, such as those employing engines or motors, but also to natural biological macromolecul ...
controls and for
user interface In the industrial design field of human–computer interaction, a user interface (UI) is the space where interactions between humans and machines occur. The goal of this interaction is to allow effective operation and control of the machine f ...
s. Renesas official:


Grouping

RL78 Family is divided into some groups, those have unique naming rules. * G1x: For general purpose use * L1x: For segment LCD controls * I1x: Mainly for industrial use * F1x: For automotive use * D1x: Specially designed for automotive customers only


Application examples

RL78 is suitable for
consumer electronics Consumer electronics or home electronics are electronic ( analog or digital) equipment intended for everyday use, typically in private homes. Consumer electronics include devices used for entertainment, communications and recreation. Usuall ...
, such as
major appliances A major appliance, also known as a large domestic appliance or large electric appliance or simply a large appliance, large domestic, or large electric, is a non-portable or semi-portable machine used for routine housekeeping tasks such as cookin ...
(including;
washing machine A washing machine (laundry machine, clothes washer, washer, or simply wash) is a home appliance used to wash laundry. The term is mostly applied to machines that use water as opposed to dry cleaning (which uses alternative cleaning fluids and ...
s,
clothes dryer A clothes dryer, also known as tumble dryer or simply dryer, is a powered household appliance that is used to remove moisture from a load of clothing, bedding and other textiles, usually shortly after they are washed in a washing machine. Many ...
s,
dishwasher A dishwasher is a machine that is used to clean dishware, cookware, and cutlery automatically. Unlike manual dishwashing, which relies heavily on physical scrubbing to remove soiling, the mechanical dishwasher cleans by spraying hot water, ty ...
s,
refrigerator A refrigerator, colloquially fridge, is a commercial and home appliance consisting of a thermally insulated compartment and a heat pump (mechanical, electronic or chemical) that transfers heat from its inside to its external environment so th ...
s, and
air conditioner Air conditioning, often abbreviated as A/C or AC, is the process of removing heat from an enclosed space to achieve a more comfortable interior environment (sometimes referred to as 'comfort cooling') and in some cases also strictly controlling ...
s), small appliances (including;
power tool A power tool is a tool that is actuated by an additional power source and mechanism other than the solely manual labor used with hand tools. The most common types of power tools use electric motors. Internal combustion engines and compressed ...
s,
vacuum cleaner A vacuum cleaner, also known simply as a vacuum or a hoover, is a device that causes suction in order to remove dirt from floors, upholstery, draperies, and other surfaces. It is generally electrically driven. The dirt is collected by either a ...
s, and
coffeemaker A coffeemaker, coffee maker or coffee machine is a cooking appliance used to brew coffee. While there are many different types of coffeemakers the two most common brewing principles use gravity or pressure to move hot water through coffee gr ...
s), and
medical devices A medical device is any device intended to be used for medical purposes. Significant potential for hazards are inherent when using a device for medical purposes and thus medical devices must be proved safe and effective with reasonable assura ...
(including; electronic toothbrushes,
blood glucose meter A glucose meter, also referred to as a "glucometer", is a medical device for determining the approximate concentration of glucose in the blood. It can also be a strip of glucose paper dipped into a substance and measured to the glucose char ...
s, holter monitors). It is also used for factory automation infrastructure (including;
sensor A sensor is a device that produces an output signal for the purpose of sensing a physical phenomenon. In the broadest definition, a sensor is a device, module, machine, or subsystem that detects events or changes in its environment and sends ...
s,
gauge Gauge ( or ) may refer to: Measurement * Gauge (instrument), any of a variety of measuring instruments * Gauge (firearms) * Wire gauge, a measure of the size of a wire ** American wire gauge, a common measure of nonferrous wire diameter, es ...
s, and
actuator An actuator is a component of a machine that is responsible for moving and controlling a mechanism or system, for example by opening a valve. In simple terms, it is a "mover". An actuator requires a control device (controlled by control signal) a ...
s), and
energy conservation Energy conservation is the effort to reduce wasteful energy consumption by using fewer energy services. This can be done by using energy more effectively (using less energy for continuous service) or changing one's behavior to use less service (f ...
(including;
smart meter A smart meter is an electronic device that records information such as consumption of electric energy, voltage levels, current, and power factor. Smart meters communicate the information to the consumer for greater clarity of consumption be ...
s,
inverter compressor An inverter compressor is a gas compressor that is operated with an inverter. In the hermetic type, it can either be a scroll or reciprocating compressor. This type of compressor uses a drive to control the compressor motor speed to modulate coo ...
s, and
lighting control system A lighting control system is an intelligent network based lighting control solution that incorporates communication between various system inputs and outputs related to lighting control with the use of one or more central computing devices. Light ...
s). For
automotive industry The automotive industry comprises a wide range of companies and organizations involved in the design, development, manufacturing, marketing, and selling of motor vehicles. It is one of the world's largest industries by revenue (from 16 % ...
, low-power and size constrained applications are ideally suited to RL78's automotive dedicated communication interfaces, such as CAN,
LIN Lin or LIN may refer to: People *Lin (surname) (normally ), a Chinese surname *Lin (surname) (normally 蔺), a Chinese surname *Lin (The King of Fighters), Lin (''The King of Fighters''), Chinese assassin character *Lin Chow Bang, character in Fat ...
, and
IEBus IEBus (''Inter Equipment Bus'') 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 c ...
, Renesas official: and
brushless DC electric motor A brushless DC electric motor (BLDC motor or BL motor), also known as an electronically commutated motor (ECM or EC motor) or synchronous DC motor, is a synchronous motor using a direct current (DC) electric power supply. It uses an electron ...
solutions. Renesas official: Three special grade of maximum
ambient temperature Colloquially, "room temperature" is a range of air temperatures that most people prefer for indoor settings. It feels comfortable to a person when they are wearing typical indoor clothing. Human comfort can extend beyond this range depending on ...
, , , and , are available for some products. Renesas official:


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 and incorporated the features of the NEC 78K0R (150nm MF2 flash process) and Renesas Technology
R8C The Renesas 'R8C'' is a 16-bit microcontroller that was developed as a smaller and cheaper version of the Renesas M16C. It retains the M16C's 16-bit CISC architecture and instruction set, but trades size for speed by cutting the internal data bus ...
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 In computing, a serial port is a serial communication interface through which information transfers in or out sequentially one bit at a time. This is in contrast to a parallel port, which communicates multiple bits simultaneously in paralle ...
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 softwar
development tools.


Compilers and IDEs

The
GNU Compiler Collection The GNU Compiler Collection (GCC) is an optimizing compiler produced by the GNU Project supporting various programming languages, hardware architectures and operating systems. The Free Software Foundation (FSF) distributes GCC as free softwar ...
, Renesas ''CS+'' (formerly CubeSuite+), Renesas ''e2studio'' (based on
Eclipse An eclipse is an astronomical event that occurs when an astronomical object or spacecraft is temporarily obscured, by passing into the shadow of another body or by having another body pass between it and the viewer. This alignment of three c ...
), and IAR Systems' compiler and development environment 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 system A real-time operating system (RTOS) is an operating system (OS) for real-time applications that processes data and events that have critically defined time constraints. An RTOS is distinct from a time-sharing operating system, such as Unix, which m ...
s, CMX Systems, Inc.'s ''CMX-RTX'', Micrium, Inc.'s ''μC/OS-II'' and ''MicroC/OS-III'',ITRON OS
Segger Microcontroller Systems' ''embOS'', ''
FreeRTOS FreeRTOS is a real-time operating system kernel for embedded devices that has been ported to 35 microcontroller platforms. It is distributed under the MIT License. History The FreeRTOS kernel was originally developed by Richard Barry around ...
'', and '' ChibiOS/RT'' are supported.


Code generating tools

Renesas provides a free code generating tool named ''APPLIcation LEading Tool (Applilet)''.


Flash ROM programming libraries

Renesas provides free self-programming libraries; ''Code Flash Libraries (CFL)'' and ''Data Flash Libraries (DFL)''. 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 as well as third-parties, such as Lauterbach and iSystems. Renesas and iSystems supply full-spec in-circuit emulators.


On-chip device programming tools

Device programming can be achieved by using the on-chip
debug port A debug port is a chip-level diagnostic interface (akin to a computer port) included in an integrated circuit to aid design, fabrication, development, bootstrapping, configuration, debugging, and post-sale in-system programming. In general te ...
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)'' and the stand-alone programmers; ''PG-FP5'' and ''PG-FP6'', 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 Flash memory is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. The two main types of flash memory, NOR flash and NAND flash, are named for the NOR and NAND logic gates. Both use ...
to 128pin with 512K Byte flash memory. Renesas official:


RL78/G13

RL78/G13 integrates a +/- 1% accuracy on-chip oscillator, watch dog timer, RTC,
power-on reset A power-on reset (PoR, POR) generator is a microcontroller or microprocessor peripheral that generates a reset signal when power is applied to the device. It ensures that the device starts operating in a known state. PoR generator In VLSI dev ...
, low voltage detection, 26 channels of 10bit ADC, 16x16 Multiplier, 32/32 Divider, I2C, CSI/SPI,
UART A universal asynchronous receiver-transmitter (UART ) is a computer hardware device for asynchronous serial communication in which the data format and transmission speeds are configurable. It sends data bits one by one, from the least signific ...
, LIN, multi-function timer array and also built-in
IEC 60730 The International Electrotechnical Commission (IEC; in French: ''Commission électrotechnique internationale'') is an international standards organization that prepares and publishes international standards for all electrical, electronic and r ...
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.


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 th
G14
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. * Multi-function Timer Array Unit (TAU): * Timer array with encoder function * Timer array unit (16-bit, 8 ch) * Interval timer (12 bit, 1 ch) * Watchdog timer (17-bit, 1 ch) * Full real time calendar function * Motor control timer (16-bit, 8 ch) * Phase timer (16-bit, 2 ch) * I/O timer (16-bit, 1 ch)


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 DMX512 is a standard for digital communication networks that are commonly used to control lighting and effects. It was originally intended as a standardized method for controlling stage lighting dimmers, which, prior to DMX512, had employe ...
and multiple sensor & user interface controls are provided. Applications for the RL78/I1A include:
building automation Building automation (BAS), also known as building management system (BMS) or building energy management system (BEMS), is the automatic centralized control of a building's HVAC (heating, ventilation and air conditioning), electrical, lighting, ...
, 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 RL7
F12


devices replaced the origina

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 not

can be used as a guide when migrating from 78K0R/Fx3 to RL78/F1x.


See also

* 78K *
H8 Family H8 is the name of a large family of 8-bit, 16-bit and 32-bit microcontrollers made by Renesas Technology, originating in the early 1990s within Hitachi Semiconductor. An administrator on the Renesas user community boards commented in 2011 that ...
* V850 *
IEBus IEBus (''Inter Equipment Bus'') 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 c ...


References


External links

*Technical Information
RL78 family User's Manual: Software Renesas Electronics

User Guides: IAR Embedded Workbench for Renesas RL78 IAR Systems

Hands-on Review of the Renesas RL78/G13 Demonstration Kit Digikey Article Library

Bluetooth low energy SDK for Renesas RL78 GitHub Nordic Semiconductor Playground
*Renesas Official Site:



*Press Release

**[https://www.renesas.com/us/en/products/software-tools/boards-and-kits/eval-kits/rl78-g14-fast-prototyping-board.html March, 2020: Renesas Electronics Introduces the New RL78/G14 Fast Prototyping board Renesas Electronics] {{Microcontrollers Renesas microcontrollers