To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding. Renesas Electronics website: http://www.renesas.
Notice 1. 2. 3. 4. 5. 6. 7. All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm the latest product information with a Renesas Electronics sales office.
R8C/2K Group, R8C/2L Group RENESAS MCU 1. REJ03B0219-0110 Rev.1.10 Dec 21, 2007 Overview 1.1 Features The R8C/2K Group and R8C/2L Group of single-chip MCUs incorporates the R8C/Tiny Series CPU core, employing sophisticated instructions for a high level of efficiency. With 1 Mbyte of address space, and it is capable of executing instructions at high speed. In addition, the CPU core boasts a multiplier for high-speed operation processing.
R8C/2K Group, R8C/2L Group 1.1.2 1. Overview Specifications Tables 1.1 and 1.2 outlines the Specifications for R8C/2K Group and Tables 1.3 and 1.4 outlines the Specifications for R8C/2L Group. Table 1.1 Item CPU Specifications for R8C/2K Group (1) Function Central processing unit Memory Power Supply Voltage Detection I/O Ports ROM, RAM Voltage detection circuit Clock Clock generation circuits Programmable I/O ports Interrupts Watchdog Timer Timer Timer RA Timer RB Timer RC Timer RD Rev.1.
R8C/2K Group, R8C/2L Group Table 1.2 1. Overview Specifications for R8C/2K Group (2) Item Function Serial UART0, UART2 Interface LIN Module A/D Converter Flash Memory Operating Frequency/Supply Voltage Current consumption Operating Ambient Temperature Package Specification Clock synchronous serial I/O/UART × 2 Hardware LIN: 1 (timer RA, UART0) 10-bit resolution × 9 channels, includes sample and hold function • Programming and erasure voltage: VCC = 2.7 to 5.
R8C/2K Group, R8C/2L Group Table 1.3 Item CPU 1. Overview Specifications for R8C/2L Group (1) Function Central processing unit Memory Power Supply Voltage Detection I/O Ports ROM, RAM Voltage detection circuit Clock Clock generation circuits Programmable I/O ports Interrupts Watchdog Timer Timer Timer RA Timer RB Timer RC Timer RD Rev.1.
R8C/2K Group, R8C/2L Group Table 1.4 1. Overview Specifications for R8C/2L Group (2) Item Function Serial UART0, UART2 Interface LIN Module A/D Converter Flash Memory Operating Frequency/Supply Voltage Current consumption Operating Ambient Temperature Package Specification Clock synchronous serial I/O/UART × 2 Hardware LIN: 1 (timer RA, UART0) 10-bit resolution × 9 channels, includes sample and hold function • Programming and erasure voltage: VCC = 2.7 to 5.
R8C/2K Group, R8C/2L Group 1.2 1. Overview Product List Table 1.5 lists the Product List for R8C/2K Group, Figure 1.1 shows a Part Number, Memory Size, and Package of R8C/2K Group, Table 1.6 lists the Product List for R8C/2L Group, and Figure 1.2 shows a Part Number, Memory Size, and Package of R8C/2L Group. Table 1.5 Product List for R8C/2K Group Part No.
R8C/2K Group, R8C/2L Group Table 1.6 1. Overview Product List for R8C/2L Group Current of Dec. 2007 ROM Capacity Program ROM Data flash R5F212L2SNFP 8 Kbytes 1 Kbyte × 2 R5F212L4SNFP 16 Kbytes 1 Kbyte × 2 R5F212L2SDFP 8 Kbytes 1 Kbyte × 2 R5F212L4SDFP 16 Kbytes 1 Kbyte × 2 R5F212L2SNXXXFP (D) 8 Kbytes 1 Kbyte × 2 RAM Capacity 1 Kbyte 1.5 Kbytes 1 Kbyte 1.5 Kbytes 1 Kbyte R5F212L4SNXXXFP (D) 16 Kbytes 1 Kbyte × 2 1.
R8C/2K Group, R8C/2L Group 1.3 1. Overview Block Diagram Figure 1.3 shows a Block Diagram.
R8C/2K Group, R8C/2L Group 1.4 1. Overview Pin Assignment P4_5/INT0 P1_5/RXD0/(TRAIO)/(INT1)(2) P1_6/CLK0 P1_7/TRAIO/INT1 P1_2/KI2/AN10/TRCIOB P1_3/KI3/AN11/TRBO P1_4/TXD0 P1_1/KI1/AN9/TRCIOA/TRCTRG Figure 1.4 shows the Pin Assignment (Top View). Table 1.7 outlines the Pin Name Information by Pin Number.
R8C/2K Group, R8C/2L Group Table 1.7 Pin Number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1.
R8C/2K Group, R8C/2L Group 1.5 1. Overview Pin Functions Table 1.8 lists Pin Functions. Table 1.8 Pin Functions Item Pin Name I/O Type Description Power supply input VCC, VSS − Apply 2.2 V to 5.5 V to the VCC pin. Apply 0 V to the VSS pin. Analog power supply input AVCC, AVSS − Power supply for the A/D converter. Connect a capacitor between AVCC and AVSS. Reset input RESET I Input “L” on this pin resets the MCU. MODE MODE I Connect this pin to VCC via a resistor.
R8C/2K Group, R8C/2L Group 2. 2. Central Processing Unit (CPU) Central Processing Unit (CPU) Figure 2.1 shows the CPU Registers. The CPU contains 13 registers. R0, R1, R2, R3, A0, A1, and FB configure a register bank. There are two sets of register bank.
R8C/2K Group, R8C/2L Group 2.1 2. Central Processing Unit (CPU) Data Registers (R0, R1, R2, and R3) R0 is a 16-bit register for transfer, arithmetic, and logic operations. The same applies to R1 to R3. R0 can be split into high-order bits (R0H) and low-order bits (R0L) to be used separately as 8-bit data registers. R1H and R1L are analogous to R0H and R0L. R2 can be combined with R0 and used as a 32-bit data register (R2R0). R3R1 is analogous to R2R0. 2.
R8C/2K Group, R8C/2L Group 2.8.7 2. Central Processing Unit (CPU) Interrupt Enable Flag (I) The I flag enables maskable interrupts. Interrupt are disabled when the I flag is set to 0, and are enabled when the I flag is set to 1. The I flag is set to 0 when an interrupt request is acknowledged. 2.8.8 Stack Pointer Select Flag (U) ISP is selected when the U flag is set to 0; USP is selected when the U flag is set to 1.
R8C/2K Group, R8C/2L Group 3. 3. Memory Memory 3.1 R8C/2K Group Figure 3.1 is a Memory Map of R8C/2K Group. The R8C/2K Group has 1 Mbyte of address space from addresses 00000h to FFFFFh. The internal ROM is allocated lower addresses, beginning with address 0FFFFh. For example, a 16-Kbyte internal ROM area is allocated addresses 0C000h to 0FFFFh. The fixed interrupt vector table is allocated addresses 0FFDCh to 0FFFFh. They store the starting address of each interrupt routine.
R8C/2K Group, R8C/2L Group 3.2 3. Memory R8C/2L Group Figure 3.2 is a Memory Map of R8C/2L Group. The R8C/2L Group has 1 Mbyte of address space from addresses 00000h to FFFFFh. The internal ROM (program ROM) is allocated lower addresses, beginning with address 0FFFFh. For example, a 16-Kbyte internal ROM area is allocated addresses 0C000h to 0FFFFh. The fixed interrupt vector table is allocated addresses 0FFDCh to 0FFFFh. They store the starting address of each interrupt routine.
R8C/2K Group, R8C/2L Group 4. 4. Special Function Registers (SFRs) Special Function Registers (SFRs) An SFR (special function register) is a control register for a peripheral function. Tables 4.1 to 4.7 list the special function registers. Table 4.
R8C/2K Group, R8C/2L Group Table 4.2 Address 0040h 0041h 0042h 0043h 0044h 0045h 0046h 0047h 0048h 0049h 004Ah 004Bh 004Ch 004Dh 004Eh 004Fh 0050h 0051h 0052h 0053h 0054h 0055h 0056h 0057h 0058h 0059h 005Ah 005Bh 005Ch 005Dh 005Eh 005Fh 0060h 0061h 0062h 0063h 0064h 0065h 0066h 0067h 0068h 0069h 006Ah 006Bh 006Ch 006Dh 006Eh 006Fh 0070h 0071h 0072h 0073h 0074h 0075h 0076h 0077h 0078h 0079h 007Ah 007Bh 007Ch 007Dh 007Eh 007Fh 4.
R8C/2K Group, R8C/2L Group Table 4.3 Address 0080h 0081h 0082h 0083h 0084h 0085h 0086h 0087h 0088h 0089h 008Ah 008Bh 008Ch 008Dh 008Eh 008Fh 0090h 0091h 0092h 0093h 0094h 0095h 0096h 0097h 0098h 0099h 009Ah 009Bh 009Ch 009Dh 009Eh 009Fh 00A0h 00A1h 00A2h 00A3h 00A4h 00A5h 00A6h 00A7h 00A8h 00A9h 00AAh 00ABh 00ACh 00ADh 00AEh 00AFh 00B0h 00B1h 00B2h 00B3h 00B4h 00B5h 00B6h 00B7h 00B8h 00B9h 00BAh 00BBh 00BCh 00BDh 00BEh 00BFh 4.
R8C/2K Group, R8C/2L Group Table 4.4 Address 00C0h 00C1h 00C2h 00C3h 00C4h 00C5h 00C6h 00C7h 00C8h 00C9h 00CAh 00CBh 00CCh 00CDh 00CEh 00CFh 00D0h 00D1h 00D2h 00D3h 00D4h 00D5h 00D6h 00D7h 00D8h 00D9h 00DAh 00DBh 00DCh 00DDh 00DEh 00DFh 00E0h 00E1h 00E2h 00E3h 00E4h 00E5h 00E6h 00E7h 00E8h 00E9h 00EAh 00EBh 00ECh 00EDh 00EEh 00EFh 00F0h 00F1h 00F2h 00F3h 00F4h 00F5h 00F6h 00F7h 00F8h 00F9h 00FAh 00FBh 00FCh 00FDh 00FEh 00FFh 4.
R8C/2K Group, R8C/2L Group Table 4.5 Address 0100h 0101h 0102h 0103h 0104h 0105h 0106h 0107h 0108h 0109h 010Ah 010Bh 010Ch 010Dh 010Eh 010Fh 0110h 0111h 0112h 0113h 0114h 0115h 0116h 0117h 0118h 0119h 011Ah 011Bh 011Ch 011Dh 011Eh 011Fh 0120h 0121h 0122h 0123h 0124h 0125h 0126h 0127h 0128h 0129h 012Ah 012Bh 012Ch 012Dh 012Eh 012Fh 0130h 0131h 0132h 0133h 0134h 0135h 0136h 0137h 0138h 0139h 013Ah 013Bh 013Ch 013Dh 013Eh 013Fh NOTE: 1. 4.
R8C/2K Group, R8C/2L Group Table 4.6 Address 0140h 0141h 0142h 0143h 0144h 0145h 0146h 0147h 0148h 0149h 014Ah 014Bh 014Ch 014Dh 014Eh 014Fh 0150h 0151h 0152h 0153h 0154h 0155h 0156h 0157h 0158h 0159h 015Ah 015Bh 015Ch 015Dh 015Eh 015Fh 0160h 0161h 0162h 0163h 0164h 0165h 0166h 0167h 0168h 0169h 016Ah 016Bh 016Ch 016Dh 016Eh 016Fh 0170h 0171h 0172h 0173h 0174h 0175h 0176h 0177h 0178h 0179h 017Ah 017Bh 017Ch 017Dh 017Eh 017Fh 4.
R8C/2K Group, R8C/2L Group Table 4.7 Address 0180h 0181h 0182h 0183h 0184h 0185h 0186h 0187h 0188h 0189h 018Ah 018Bh 018Ch 018Dh 018Eh 018Fh 0190h 0191h 0192h 0193h 0194h 0195h 0196h 0197h 0198h 0199h 019Ah 019Bh 019Ch 019Dh 019Eh 019Fh 01A0h 01A1h 01A2h 01A3h 01A4h 01A5h 01A6h 01A7h 01A8h 01A9h 01AAh 01ABh 01ACh 01ADh 01AEh 01AFh 01B0h 01B1h 01B2h 01B3h 01B4h 01B5h 01B6h 01B7h 01B8h 01B9h 01BAh 01BBh 01BCh 01BDh 01BEh 01BFh FFFFh 4.
R8C/2K Group, R8C/2L Group 5. 5. Electrical Characteristics Electrical Characteristics The electrical characteristics of N version (Topr = –20°C to 85°C) and D version (Topr = –40°C to 85°C) are listed below. Please contact Renesas Technology sales offices for the electrical characteristics in the Y version (Topr = –20°C to 105°C). Table 5.1 Absolute Maximum Ratings Symbol Parameter Rated Value Unit −0.3 to 6.5 V Input voltage −0.3 to VCC + 0.3 V VO Output voltage −0.3 to VCC + 0.
R8C/2K Group, R8C/2L Group Table 5.2 Recommended Operating Conditions Symbol VCC AVCC VSS/AVSS VIH VIL IOH(sum) IOH(sum) IOH(peak) Supply voltage Supply voltage Supply voltage Input “H” voltage Input “L” voltage Peak sum output “H” current Average sum output “H” current Peak output “H” current Average output “H” current IOL(sum) Peak sum output “L” currents Average sum output “L” currents Peak output “L” currents IOL(peak) Sum of all pins IOH(peak) Min. 2.2 2.7 − 0.8 VCC 0 − Standard Typ.
R8C/2K Group, R8C/2L Group Table 5.3 5. Electrical Characteristics A/D Converter Characteristics Symbol Parameter − Resolution − Absolute accuracy Conditions Standard Min. Typ. Max. Unit Vref = AVCC − − 10 Bits 10-bit mode φAD = 10 MHz, Vref = AVCC = 5.0 V − − ±3 LSB 8-bit mode φAD = 10 MHz, Vref = AVCC = 5.0 V − − ±2 LSB 10-bit mode φAD = 10 MHz, Vref = AVCC = 3.3 V − − ±5 LSB 8-bit mode φAD = 10 MHz, Vref = AVCC = 3.
R8C/2K Group, R8C/2L Group Table 5.4 Flash Memory (Program ROM) Electrical Characteristics Symbol − 5. Electrical Characteristics Parameter Program/erase endurance(2) Conditions Standard Unit Min. Typ. Max. R8C/2K Group 100(3) − − times R8C/2L Group 1,000(3) − − times µs − Byte program time − 50 400 − Block erase time − 0.
R8C/2K Group, R8C/2L Group Table 5.5 5. Electrical Characteristics Flash Memory (Data flash Block A, Block B) Electrical Characteristics(4) Symbol Parameter Conditions Standard Min. Typ. Max. Unit 10,000(3) − − times Byte program time (program/erase endurance ≤ 1,000 times) − 50 400 µs − Byte program time (program/erase endurance > 1,000 times) − 65 − µs − Block erase time (program/erase endurance ≤ 1,000 times) − 0.
R8C/2K Group, R8C/2L Group 5. Electrical Characteristics Suspend request (maskable interrupt request) FMR46 Clock-dependent time Fixed time Access restart td(SR-SUS) Figure 5.2 Table 5.
R8C/2K Group, R8C/2L Group Table 5.9 5. Electrical Characteristics Power-on Reset Circuit, Voltage Monitor 0 Reset Electrical Characteristics(3) Symbol Parameter Condition Standard Min. Typ. Unit Max. Vpor1 Power-on reset valid voltage(4) − − 0.1 V Vpor2 Power-on reset or voltage monitor 0 reset valid voltage 0 − Vdet0 V trth External power VCC rise gradient(2) 20 − − mV/msec NOTES: 1.
R8C/2K Group, R8C/2L Group Table 5.10 High-speed On-Chip Oscillator Circuit Electrical Characteristics Symbol fOCO40M 5. Electrical Characteristics Parameter High-speed on-chip oscillator frequency temperature • supply voltage dependence High-speed on-chip oscillator frequency when correction value in FRA7 register is written to FRA1 register(4) − Value in FRA1 register after reset − Oscillation frequency adjustment unit of highspeed on-chip oscillator − − Condition Standard Unit Min. Typ.
R8C/2K Group, R8C/2L Group Table 5.13 Electrical Characteristics (1) [VCC = 5 V] Symbol VOH 5. Electrical Characteristics Parameter Output “H” voltage Condition Typ. Max. Unit Except P2_0 to P2_7, XOUT IOH = −5 mA VCC − 2.0 − VCC V IOH = −200 µA VCC − 0.5 − VCC V P2_0 to P2_7 Drive capacity HIGH IOH = −20 mA VCC − 2.0 − VCC V IOH = −5 mA VCC − 2.0 − VCC V Drive capacity HIGH IOH = −1 mA VCC − 2.0 − VCC V VCC − 2.0 − VCC V − − 2.
R8C/2K Group, R8C/2L Group Table 5.14 Symbol ICC 5. Electrical Characteristics Electrical Characteristics (2) [Vcc = 5 V] (Topr = −20 to 85°C (N version) / −40 to 85°C (D version), unless otherwise specified.) Parameter Condition Power supply High-speed current clock mode (VCC = 3.3 to 5.5 V) Single-chip mode, output pins are open, other pins are VSS High-speed on-chip oscillator mode Low-speed on-chip oscillator mode Rev.1.10 Dec 21, 2007 REJ03B0219-0110 Page 33 of 45 Standard Unit Min. Typ.
R8C/2K Group, R8C/2L Group Table 5.15 Symbol ICC 5. Electrical Characteristics Electrical Characteristics (3) [Vcc = 5 V] (Topr = −20 to 85°C (N version) / −40 to 85°C (D version), unless otherwise specified.) Parameter Condition Power supply Wait mode current (VCC = 3.3 to 5.5 V) Single-chip mode, output pins are open, other pins are VSS Stop mode Rev.1.10 Dec 21, 2007 REJ03B0219-0110 Page 34 of 45 Standard Unit Min. Typ. Max.
R8C/2K Group, R8C/2L Group 5. Electrical Characteristics Timing Requirements (Unless Otherwise Specified: VCC = 5 V, VSS = 0 V at Topr = 25°C) [VCC = 5 V] Table 5.16 XIN Input Symbol Standard Parameter Min. Max. Unit tc(XIN) XIN input cycle time 50 − ns tWH(XIN) XIN input “H” width 25 − ns tWL(XIN) XIN input “L” width 25 − ns VCC = 5 V tC(XIN) tWH(XIN) XIN input tWL(XIN) Figure 5.4 Table 5.
R8C/2K Group, R8C/2L Group Table 5.18 5. Electrical Characteristics Serial Interface Symbol Standard Parameter Min. Max.
R8C/2K Group, R8C/2L Group Table 5.20 Electrical Characteristics (1) [VCC = 3 V] Symbol VOH 5. Electrical Characteristics Parameter Output “H” voltage Output “L” voltage Standard Unit Min. Typ. Max. VCC − 0.5 − VCC V Except P2_0 to P2_7, XOUT IOH = −1 mA P2_0 to P2_7 Drive capacity HIGH IOH = −5 mA VCC − 0.5 − VCC V Drive capacity LOW IOH = −1 mA VCC − 0.5 − VCC V Drive capacity HIGH IOH = −0.1 mA VCC − 0.5 − VCC V Drive capacity LOW IOH = −50 µA VCC − 0.
R8C/2K Group, R8C/2L Group Table 5.21 Symbol ICC 5. Electrical Characteristics Electrical Characteristics (2) [Vcc = 3 V] (Topr = −20 to 85°C (N version) / −40 to 85°C (D version), unless otherwise specified.) Parameter Condition Unit Typ. Max.
R8C/2K Group, R8C/2L Group 5. Electrical Characteristics Timing requirements (Unless Otherwise Specified: VCC = 3 V, VSS = 0 V at Topr = 25°C) [VCC = 3 V] Table 5.22 XIN Input Symbol Standard Parameter Min. Max. Unit tc(XIN) XIN input cycle time 100 − ns tWH(XIN) XIN input “H” width 40 − ns tWL(XIN) XIN input “L” width 40 − ns VCC = 3 V tC(XIN) tWH(XIN) XIN input tWL(XIN) Figure 5.8 XIN Input Timing Diagram when VCC = 3 V Table 5.
R8C/2K Group, R8C/2L Group Table 5.24 5. Electrical Characteristics Serial Interface Symbol Standard Parameter Min. Max.
R8C/2K Group, R8C/2L Group Table 5.26 Electrical Characteristics (1) [VCC = 2.2 V] Symbol VOH 5. Electrical Characteristics Parameter Output “H” voltage Output “L” voltage Standard Unit Min. Typ. Max. VCC − 0.5 − VCC V Except P2_0 to P2_7, XOUT IOH = −1 mA P2_0 to P2_7 Drive capacity HIGH IOH = −2 mA VCC − 0.5 − VCC V Drive capacity LOW IOH = −1 mA VCC − 0.5 − VCC V Drive capacity HIGH IOH = −0.1 mA VCC − 0.5 − VCC V Drive capacity LOW IOH = −50 µA VCC − 0.
R8C/2K Group, R8C/2L Group Table 5.27 Symbol ICC 5. Electrical Characteristics Electrical Characteristics (2) [Vcc = 2.2 V] (Topr = −20 to 85°C (N version) / −40 to 85°C (D version), unless otherwise specified.) Parameter Condition Unit Typ. Max. XIN = 5 MHz (square wave) High-speed on-chip oscillator off Low-speed on-chip oscillator on = 125 kHz No division − 3.5 − mA XIN = 5 MHz (square wave) High-speed on-chip oscillator off Low-speed on-chip oscillator on = 125 kHz Divide-by-8 − 1.
R8C/2K Group, R8C/2L Group 5. Electrical Characteristics Timing requirements (Unless Otherwise Specified: VCC = 2.2 V, VSS = 0 V at Topr = 25°C) [VCC = 2.2 V] Table 5.28 XIN Input Symbol Standard Parameter Min. Max. Unit tc(XIN) XIN input cycle time 200 − ns tWH(XIN) XIN input “H” width 90 − ns tWL(XIN) XIN input “L” width 90 − ns VCC = 2.2 V tC(XIN) tWH(XIN) XIN input tWL(XIN) Figure 5.12 XIN Input Timing Diagram when VCC = 2.2 V Table 5.
R8C/2K Group, R8C/2L Group Table 5.30 5. Electrical Characteristics Serial Interface Symbol Standard Parameter Min. Max. Unit tc(CK) CLKi input cycle time 800 − ns tW(CKH) CLKi input “H” width 400 − ns tW(CKL) CLKi input “L” width 400 − ns td(C-Q) TXDi output delay time − 200 ns th(C-Q) TXDi hold time 0 − ns tsu(D-C) RXDi input setup time 150 − ns th(C-D) RXDi input hold time 90 − ns i = 0, 2 VCC = 2.
R8C/2K Group, R8C/2L Group Package Dimensions Package Dimensions Diagrams showing the latest package dimensions and mounting information are available in the “Packages” section of the Renesas Technology website. JEITA Package Code P-LQFP32-7x7-0.80 RENESAS Code PLQP0032GB-A Previous Code 32P6U-A MASS[Typ.] 0.2g HD *1 D 24 17 NOTE) 1. DIMENSIONS "*1" AND "*2" DO NOT INCLUDE MOLD FLASH. 2. DIMENSION "*3" DOES NOT INCLUDE TRIM OFFSET.
REVISION HISTORY REVISION HISTORY Rev. Date 0.10 Jul 20, 2007 1.00 Nov 07, 2007 1.10 Dec 21, 2007 R8C/2K Group, R8C/2L Group Datasheet R8C/2K Group, R8C/2L Group Datasheet Description Page − Summary First Edition issued All pages “Preliminary” deleted 3, 5 Table 1.2, Table 1.4; Current consumption: “TBD” → “Typ. 10 mA” “Typ. 6 mA” “Typ. 2.0 µA” “Typ. 0.7 µA” revised 6, 7 Table 1.5, Table 1.6 revised Figure 1.1, Figure 1.2; ROM number “XXX” added, NOTE1 added 20 Table 4.
Sales Strategic Planning Div. Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan Notes: 1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use.