General information | |
---|---|
Launched | 2010; 15 years ago (2010) |
Discontinued | current |
Common manufacturer | |
Performance | |
Max.CPUclock rate | 32 kHz to 40 MHz |
Data width | 16 |
Address width | 20 |
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 instructions | 74 (RL78-S1), 75 (RL78-S2), 81 (RL78-S3) |
Physical specifications | |
Cores |
|
History | |
Predecessor | 78K0R |
RL78 Family is a 16-bitCPU core forembeddedmicrocontrollers ofRenesas Electronics introduced in 2010.[1]
The RL78 family is anaccumulator-basedregister-bankCISCinstruction 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 (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:
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, whileindirect control transfers use the concatenation of a 16-bit register address and a 4-bit "code segment" register. Unlike the8086 microprocessor, there are no separate near and far return instructions; all subroutine calls push the full 20-bit return address.
The architecture is consistentlylittle-endian, with all multi-bytes values appearing least significant byte.
RL78 family processors have 3-stageinstruction pipelining. Most models have fourregister banks which may be selected quickly.
RL78 has threemicroarchitecture variants as follows.
μ-Arch | ALU | Registers | Instructions | Pipeline | Remark | Documents |
---|---|---|---|---|---|---|
RL78-S3 | 16-bit | 8× 8-bit ×4 banks | 81 (75+6) | 3-stage | μ-arch variants | [5]: 8 |
RL78-S2 | 16-bit | 8× 8-bit ×4 banks | 75 | 3-stage | ||
RL78-S1 | 8-bit | 8× 8-bit (no bank) | 74 (75-1) | 3-stage | ||
78K0R | 16-bit | 8× 8-bit ×4 banks | 80 (75+5) | 3-stage | Direct predecessor Extended 78K/0 | [6]: 18 |
78K0S | 8-bit | 8× 8-bit (no bank) | 47 | none | Simplified 78K/0 | [7] |
78K0 | 8-bit | 8× 8-bit ×4 banks | 48 | none | Basic 78K/0 core | [8] |
RL78 covers wide range of application area formechanical system controls and foruser interfaces.[9]
RL78 Family is divided into some groups, those have unique naming rules.
RL78 is suitable forconsumer electronics, such asmajor appliances (including;washing machines,clothes dryers,dishwashers,refrigerators, andair conditioners),small appliances (including;power tools,vacuum cleaners, andcoffeemakers), andmedical devices (including;electronic toothbrushes,blood glucose meters,holter monitors). It is also used forfactory automation infrastructure (including;sensors,gauges, andactuators),[11]andenergy conservation (including;smart meters,inverter compressors, andlighting control systems).
Forautomotive industry, low-power and size constrained applications are ideally suited to RL78's automotive dedicated communication interfaces, such asCAN,LIN, andIEBus,[12]: 4 andbrushless DC electric motor solutions.[13]Three special grade of maximumambient temperature, 105 °C (221 °F), 125 °C (257 °F), and 150 °C (302 °F), are available for some products.[14]: 2
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 TechnologyR8C 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 theADC orserial interface can be programmed to meet specific conditions to wake the device from the extreme low power STOP mode of 0.52uA.
RL78 Family is supported with a various range of hardware and softwaredevelopment tools.
TheGNU Compiler Collection,[15]RenesasCS+ (formerly CubeSuite+),[10][16]Renesase2studio (based onEclipse),[17]andIAR Systems' compiler and development environment[18][19]are available.The RenesasCS+IDE is free for debug-only use and supports standardELF executable files. The RL78ABI defined by Renesas is compatible with IAR's V2 and higher compilers.
Regardingreal-time operating systems, CMX Systems, Inc.'sCMX-RTX,[19]Micrium, Inc.'sμC/OS-II andMicroC/OS-III,[19]ITRON OSSegger Microcontroller Systems'embOS,FreeRTOS, andChibiOS/RT are supported.
Renesas provides a free code generating tool namedAPPLIcation LEading Tool (Applilet).[20]
Renesas provides free self-programming libraries;Code Flash Libraries (CFL)[21]andData Flash Libraries (DFL).[22]AEEPROM Emulation Library (EEL) is also available for the data-flash to addwear 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).
Several companies provide on-chip debuggers and full-specin-circuit emulators. Renesas makes on-chip debuggers[23]as well as third-parties, such asLauterbach and iSystems.[24]Renesas[25]and iSystems[26]supply full-spec in-circuit emulators.
Device programming can be achieved by using the on-chipdebug port or by using the special serial programming mode of the devices. Renesas supports the serial programming mode with debug tools via theRenesas Flash Programmer (RFP)[27]and the stand-alone programmers;PG-FP5[1][28]andPG-FP6,[29]while several third-parties support RL78 with their own device programmers.
RL78 Family has a range of devices from 20pin with 16K Byteflash memory to 128pin with 512K Byte flash memory.[30]
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-inIEC 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]
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.
In 2012 an addition to the RL78 family was introduced called theG14.[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.
An application specific version (ASSP) of the RL78 core was introduced in 2012 forcontrolling lighting systems, this device was named the RL78/I1A. Specific features of the device such as specialPWM timers enable fine dimming, lighting sequence and colour temperature control with power factor correction of the power supply. In addition integrated communication functions forDALI,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.
Microcontroller series withLCD Drive
Entering mass production at the beginning of 2013, theRL78/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, capacitivecharge 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.
Automotive Microcontrollers
The RL78F12,F13,F14, &F15 devices replaced the originalNEC 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 noter01an2639ej can be used as a guide when migrating from 78K0R/Fx3 to RL78/F1x.
{{cite book}}
: CS1 maint: location (link)