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. Wi th 1 Mbyte of address space and is capable of
executing instructions at high speed. In addition, the CPU core boasts a multiplier for high-speed operation
processing.
Power consumption is low, and the supported operating modes allow additional power control. These MCUs also
use an anti-noise configuration to reduce emissions of electromagnetic noise and are designed to withstand EMI.
Integration of many peripheral functions, including multifunction timer and serial interface, reduces the number of
system components.
Furthermore, the R8C/2L Group has on-chip data flash (1 KB × 2 blocks).
The difference between the R8C/2K Group and R8C/2L Group is only the presence or absence of data flash. Their
peripheral functions are the same.
1.1.1Applications
Electronic household appliances, office equipment, audio equipment, consumer equipment, etc.
Rev.0.10
Jul 20, 2007
Rev.0.10Jul 20, 2007Page 1 of 44
REJ03B0219-0010
Under development
Preliminary specification
Specications in this manual are tentative and subject to change
R8C/2K Group, R8C/2L Group1. Overview
1.1.2Specifications
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.1Specifications for R8C/2K Group (1)
ItemFunctionSpecification
CPUCentral processing
unit
MemoryROM, RAMRefer to T able 1.5 Product List for R8C/2K Group.
Power Supply
Voltage
Detection
I/O PortsProgrammable I/O
Preliminary specification
Specications in this manual are tentative and subject to change
R8C/2K Group, R8C/2L Group1. Overview
Table 1.2Specifications for R8C/2K Group (2)
ItemFunctionSpecification
Serial
Interface
LIN ModuleHardware LIN: 1 (timer RA, UART0)
A/D Converter10-bit resolution × 9 channels, includes sample and hold function
Flash Memory• Programming and erasure voltage: VCC = 2.7 to 5.5 V
Operating Frequency/Supply
Voltage
Current consumptionTBD (VCC = 5.0 V, f(XIN) = 20 MHz)
Operating Ambient Temperature-20 to 85°C (N version)
Package32-pin LQFP
NOTE:
1. Specify the D version if D version functions are to be used.
UART0, UART2Clock synchronous serial I/O/UART × 2
• Programming and erasure endurance: 100 times
• Program security: ROM code protect, ID code check
• Debug functions: On-chip debug, on-board flash rewrite function
f(XIN) = 20 MHz (VCC = 3.0 to 5.5 V)
f(XIN) = 10 MHz (VCC = 2.7 to 5.5 V)
f(XIN) = 5 MHz (VCC = 2.2 to 5.5 V) (VCC = 2.7 to 5.5 V for A/D converter only)
Preliminary specification
Specications in this manual are tentative and subject to change
R8C/2K Group, R8C/2L Group1. Overview
Table 1.4Specifications for R8C/2L Group (2)
ItemFunctionSpecification
Serial
Interface
LIN ModuleHardware LIN: 1 (timer RA, UART0)
A/D Converter10-bit resolution × 9 channels, includes sample and hold function
Flash Memory• Programming and erasure voltage: VCC = 2.7 to 5.5 V
Operating Frequency/Supply
Voltage
Current consumptionTBD (VCC = 5.0 V, f(XIN) = 20 MHz)
Operating Ambient Temperature-20 to 85°C (N version)
Package32-pin LQFP
NOTE:
1. Specify the D version if D version functions are to be used.
UART0, UART2Clock synchronous serial I/O/UART × 2
• Programming and erasure endurance: 10,000 times (data flash)
• Program security: ROM code protect, ID code check
• Debug functions: On-chip debug, on-board flash rewrite function
f(XIN) = 20 MHz (VCC = 3.0 to 5.5 V)
f(XIN) = 10 MHz (VCC = 2.7 to 5.5 V)
f(XIN) = 5 MHz (VCC = 2.2 to 5.5 V) (VCC = 2.7 to 5.5 V for A/D converter only)
Preliminary specification
Specications in this manual are tentative and subject to change
R8C/2K Group, R8C/2L Group1. Overview
1.2Product List
Table 1.5 lists 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 Product List for R8C/2L Group, and Figure 1.2 shows a Part Number, Memory Size,
and Package of R8C/2L Group.
Table 1.5Product List for R8C/2K GroupCurrent of Jul. 2007
Part No.ROM CapacityRAM CapacityPackage TypeRemarks
R5F212K2SNFP (D)8 Kbytes1 KbytePLQP0032GB- AN versio n
R5F212K4SNFP (D)16 Kbytes1.5 KbytesPLQP0032GB-A
R5F212K2SDFP (D)8 Kbytes1 KbytePLQP0032GB- AD versio n
R5F212K4SDFP (D)16 Kbytes1.5 KbytesPLQP0032GB-A
(D): Under development
Part No. R 5 F 21 2K 2 S N FP
Package type:
FP: PLQP0032GB-A
Classification
N: Operating ambient temperature -20°C to 85°C
D: Operating ambient temperature -40°C to 85°C
S: Low-voltage version
ROM capacity
2: 8 KB
4: 16 KB
R8C/2K Group
R8C/Tiny Series
Memory type
F: Flash memory
Renesas MCU
Renesas semiconductor
Figure 1.1Part Number, Memory Size, and Package of R8C/2K Group
Rev.0.10Jul 20, 2007Page 6 of 44
REJ03B0219-0010
Under development
Preliminary specification
Specications in this manual are tentative and subject to change
R8C/2K Group, R8C/2L Group1. Overview
Table 1.6Product List for R8C/2L GroupCurrent of Jul. 2007
Part No.
ROM Capacity
Pr o g r a m RO MData flash
RAM
Capacity
Package Ty peRemarks
R5F212L2SNFP (D)8 Kbytes1 Kbyte × 21 KbytePLQP0032GB-A N version
R5F212L4SNFP (D)16 Kbytes1 Kbyte × 21.5 KbytesPLQP0032GB-A
R5F212L2SDFP (D)8 Kbytes1 Kbyte × 21 KbytePLQP0032GB-A D version
R5F212L4SDFP (D)16 Kbytes1 Kbyte × 21.5 KbytesPLQP0032GB-A
(D): Under development
Part No. R 5 F 21 2L 2 S N FP
Package type:
FP: PLQP0032GB-A
Classification
N: Operating ambient temperature -20°C to 85°C
D: Operating ambient temperature -40°C to 85°C
S: Low-voltage version
ROM capacity
2: 8 KB
4: 16 KB
R8C/2L Group
R8C/Tiny Series
Memory type
F: Flash memory
Renesas MCU
Renesas semiconductor
Figure 1.2Part Number, Memory Size, and Package of R8C/2L Group
Rev.0.10Jul 20, 2007Page 7 of 44
REJ03B0219-0010
Under development
Preliminary specification
Specications in this manual are tentative and subject to change
R8C/2K Group, R8C/2L Group1. Overview
1.3 Block Diagram
Figure 1.3 shows a Block Diagram.
I/O ports
Peripheral functions
Timers
Timer RA (8 bits × 1)
Timer RB (8 bits × 1)
Timer RC (16 bits × 1)
Timer RD (16 bits × 2)
Watchdog timer
(15 bits)
A/D converter
× 9 channels)
(10 bits
Port P0
5
8
Port P1
clock synchronous serial I/O
(8 bits × 2)
LIN module
Port P2
UART or
R8C/Tiny Series CPU core
R0HR0L
R1L
R1H
R2
R3
A0
A1
FB
8
3
Port P3
High-speed on-chip oscillator
Low-speed on-chip oscillator
1 3
Port P4
System clock
generation circuit
XIN-XOUT
Memory
SB
USP
ISP
INTB
PC
FLG
(1)
ROM
(2)
RAM
Multiplier
Figure 1.3Block Diagram
Rev.0.10Jul 20, 2007Page 8 of 44
REJ03B0219-0010
NOTES:
1. ROM size varies with MCU type.
2. RAM size varies with MCU type.
Under development
Preliminary specification
Specications in this manual are tentative and subject to change
R8C/2K Group, R8C/2L Group1. Overview
1.4Pin Assignment
Figure 1.4 shows Pin Assignment (Top View). Table 1.7 outlines the Pin Name Information by Pin Number.
RXD0, RXD2ISerial data input pins
TXD0, TXD2OSerial data output pins
VREFIReference voltage input pin to A/D converter
P1_0 to P1_7,
P2_0 to P2_7,
P3_3 to P3_5,
P4_5,
I/O Type
Connect a capacitor between AVCC and AVSS.
IInput “L” on this pin resets the MCU.
Connect a ceramic resonator or a crystal oscillator between
the XIN and XOUT pins
the XIN pin and leave the XOUT pin open.
INT0 is timer RB, timer RC and timer RD input pins.
IKey input interrupt input pins
I/OTimer RC I/O pins
I/OTimer RD I/O pins
I/OCMOS I/O ports. Each port has an I/ O select direction
register, allowing each pin in the port to be directed for input
or output individually.
Any port set to input can be set to use a pull-up resistor or not
by a program.
P2_0 to P2_7 also function as LED drive ports.
Description
(1)
. To use an external clock, input it to
Rev.0.10Jul 20, 2007Page 11 of 44
REJ03B0219-0010
Under development
Preliminary specification
Specications in this manual are tentative and subject to change
R8C/2K Group, R8C/2L Group2. Central Processing Unit (CPU)
2.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.
b31
R2
R3
b15b8b7
R0H (high-order of R0)
R1H (high-order of R1)
R0L (low-order of R0)
R1L (low-order of R1)
R2
R3
A0
A1
FB
b15b19
INTBH
The 4 high order bits of INTB are INTBH and
the 16 low order bits of INTB are INTBL.
b19
INTBL
PC
b15
USP
ISP
SB
b0
Data registers
Address registers
Frame base register
b0
Interrupt table register
b0
Program counter
b0
User stack pointer
Interrupt stack pointer
Static base register
(1)
(1)
(1)
b15
IPL
NOTE:
1. These registers comprise a register bank. There are two register banks.
Figure 2.1CPU Registers
b15
b0
FLG
b8
b7
b0
C
DZSBOIU
Flag register
Carry flag
Debug flag
Zero flag
Sign flag
Register bank select flag
Overflow flag
Interrupt enable flag
Stack pointer select flag
Reserved bit
Processor interrupt priority level
Reserved bit
Rev.0.10Jul 20, 2007Page 12 of 44
REJ03B0219-0010
Under development
R8C/2K Group, R8C/2L Group2. Central Processing Unit (CPU)
Preliminary specification
Specications in this manual are tentative and subject to change
2.1Data 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 separatel y as 8-bit data regi sters. R1H and R 1L are
analogous to R0H and R0L. R2 can be combined with R0 and used as a 32-bit data regi ster (R2R0). R3R1 is
analogous to R2R0.
2.2Address Registers (A0 and A1)
A0 is a 16-bit register for address register indirect addressing and address register relative addressing. It is also
used for transfer, arithmetic, and logic operations. A1 is analogous to A0. A1 can be combined with A0 and as a 32bit address register (A1A0).
2.3Frame Base Register (FB)
FB is a 16-bit register for FB relative addressing.
2.4Interrupt Table Register (INTB)
INTB is a 20-bit register that indicates the start address of an interrupt vector table.
2.5Program Counter (PC)
PC is 20 bits wide and indicates the address of the next instruction to be executed.
2.6User Stack Pointer (USP) and Interrupt Stack Pointer (ISP)
The stack pointers (SP), USP, and ISP, are each 16 bits wide. The U flag of FLG is used to switch between
USP and ISP.
2.7Static Base Register (SB)
SB is a 16-bit register for SB relative addressing.
2.8Flag Register (FLG)
FLG is an 11-bit register indicating the CPU state.
2.8.1Carry Flag (C)
The C flag retains carry, borrow, or shift-out bits that have been generated by the arithmetic and logic unit.
2.8.2Debug Flag (D)
The D flag is for debugging only. Set it to 0.
2.8.3Zero Flag (Z)
The Z flag is set to 1 when an arithmetic operation results in 0; otherwise to 0.
2.8.4Sign Flag (S)
The S flag is set to 1 when an arithmetic operation results in a negative value; otherwise to 0.
2.8.5Register Bank Select Flag (B)
Register bank 0 is selected when the B flag is 0. Register bank 1 is selected when this flag is set to 1.
2.8.6Overflow Flag (O)
The O flag is set to 1 when an operation results in an overflow; otherwise to 0.
Rev.0.10Jul 20, 2007Page 13 of 44
REJ03B0219-0010
Under development
R8C/2K Group, R8C/2L Group2. Central Processing Unit (CPU)
Preliminary specification
Specications in this manual are tentative and subject to change
2.8.7Interrupt 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.8Stack 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.
The U flag is set to 0 when a hardware interrupt request is acknowledged or the INT instruction of software
interrupt numbers 0 to 31 is executed.
2.8.9Processor Interrupt Priority Level (IPL)
IPL is 3 bits wide and assigns processor interrupt priority levels from level 0 to level 7.
If a requested interrupt has higher priority than IPL, the interrupt is enabled.
2.8.10Reserved Bit
If necessary, set to 0. When read, the content is undefined.
Rev.0.10Jul 20, 2007Page 14 of 44
REJ03B0219-0010
Loading...
+ 32 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.