Datasheet
R8C/38A Group
RENESAS MCU
REJ03B0274-0120
Rev.1.20
Jul 31, 2010
1.
1.1
Overview
Features
The R8C/38A Group of single-chip MCUs incorporate the R8C 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.
Power consumption is low, and the supported operating modes allow additional power control. These MCUs are
designed to maximize EMI/EMS performance.
Integration of many peripheral functions, including multifunction timer and serial interface, reduces the number of
system components.
The R8C/38A Group have data flash (1 KB × 4 blocks) with the background operation (BGO) function.
1.1.1
Applications
Electronic household appliances, office equipment, audio equipment, consumer equipment, etc.
REJ03B0274-0120 Rev.1.20
Jul 31, 2010
Page 1 of 57
R8C/38A Group
1. Overview
1.1.2
Specifications
Tables 1.1 and 1.2 outline the Specifications for R8C/38A Group.
Table 1.1
Item
CPU
Specifications for R8C/38A Group (1)
Function
Central processing
unit
Specification
R8C CPU core
• Number of fundamental instructions: 89
• Minimum instruction execution time:
50 ns (f(XIN) = 20 MHz, VCC = 2.7 to 5.5 V)
200 ns (f(XIN) = 5 MHz, VCC = 1.8 to 5.5 V)
• Multiplier: 16 bits × 16 bits
→
32 bits
• Multiply-accumulate instruction: 16 bits × 16 bits + 32 bits
→
32 bits
• Operation mode: Single-chip mode (address space: 1 Mbyte)
Refer to
Table 1.3 Product List for R8C/38A Group
• Power-on reset
• Voltage detection 3 (detection level of voltage detection 0 and voltage
detection 1 selectable)
• Input-only: 1 pin
• CMOS I/O ports: 75, selectable pull-up resistor
• 3 circuits: XIN clock oscillation circuit,
XCIN clock oscillation circuit (32 kHz),
Low-speed on-chip oscillator
• Oscillation stop detection: XIN clock oscillation stop detection function
• Frequency divider circuit: Dividing selectable 1, 2, 4, 8, and 16
• Low power consumption modes:
Standard operating mode (high-speed clock, low-speed clock, low-speed on-
chip oscillator), wait mode, stop mode
Real-time clock (timer RE)
• Interrupt Vectors: 69
• External: 9 sources (INT × 5, key input × 4)
• Priority levels: 7 levels
• 14 bits × 1 (with prescaler)
• Reset start selectable
• Low-speed on-chip oscillator for watchdog timer selectable
• 1 channel
• Activation sources: 39
• Transfer modes: 2 (normal mode, repeat mode)
8 bits (with 8-bit prescaler)
Timer mode (period timer), pulse output mode (output level inverted every
period), event counter mode, pulse width measurement mode, pulse period
measurement mode
8 bits × 1 (with 8-bit prescaler)
Timer mode (period timer), programmable waveform generation mode (PWM
output), programmable one-shot generation mode, programmable wait one-
shot generation mode
16 bits × 1 (with 4 capture/compare registers)
Timer mode (input capture function, output compare function), PWM mode
(output 3 pins), PWM2 mode (PWM output pin)
16 bits × 2 (with 4 capture/compare registers)
Timer mode (input capture function, output compare function), PWM mode
(output 6 pins), reset synchronous PWM mode (output three-phase
waveforms (6 pins), sawtooth wave modulation), complementary PWM mode
(output three-phase waveforms (6 pins), triangular wave modulation), PWM3
mode (PWM output 2 pins with fixed period)
Memory
ROM, RAM,
Data flash
Power Supply Voltage detection
Voltage
circuit
Detection
I/O Ports
Programmable I/O
ports
Clock
Clock generation
circuits
Interrupts
Watchdog Timer
DTC (Data Transfer Controller)
Timer
Timer RA
Timer RB
Timer RC
Timer RD
REJ03B0274-0120 Rev.1.20
Jul 31, 2010
Page 2 of 57
R8C/38A Group
1. Overview
Table 1.2
Item
Timer
Specifications for R8C/38A Group (2)
Function
Timer RE
Timer RF
Specification
8 bits × 1
Output compare mode
16 bits × 1
Input capture mode (input capture circuit), output compare mode (output
compare circuit)
16 bits × 1
Timer mode (input capture function, output compare function), PWM mode
(output 1 pin), phase counting mode (available automatic measurement for
the counts of 2-phase encoder)
Clock synchronous serial I/O/UART × 2 channel
Clock synchronous serial I/O, UART, I
2
C mode (I
2
C bus), multiprocessor
communication function
1 (shared with I
2
C bus)
1 (shared with SSU)
Hardware LIN: 1 (timer RA, UART0)
10-bit resolution × 20 channels, includes sample and hold function, with sweep
mode
8-bit resolution × 2 circuits
• 2 circuits (shared with voltage monitor 1 and voltage monitor 2)
• External reference voltage input available
2 circuits
• Programming and erasure voltage: VCC = 2.7 to 5.5 V
• Programming and erasure endurance: 10,000 times (data flash)
1,000 times (program ROM)
• Program security: ROM code protect, ID code check
• Debug functions: On-chip debug, on-board flash rewrite function
• Background operation (BGO) function (data flash)
f(XIN) = 20 MHz (VCC = 2.7 to 5.5 V)
f(XIN) = 5 MHz (VCC = 1.8 to 5.5 V)
Typ. 7.0 mA (VCC = 5.0 V, f(XIN) = 20 MHz)
Typ. 3.5 mA (VCC = 3.0 V, f(XIN) = 10 MHz)
Typ. 4.0
µA
(VCC = 3.0 V, wait mode (f(XCIN) = 32 kHz))
Typ. 2.0
µA
(VCC = 3.0 V, stop mode)
−20
to 85°C (N version)
80-pin LQFP
Package code: PLQP0080KB-A (previous code: 80P6Q-A)
81-pin LGA
Package code: PTLG0081KA-A (previous code: 81F0E)
Timer RG
Serial
Interface
UART0, UART1
UART2
Synchronous Serial
Communication Unit (SSU)
I
2
C bus
LIN Module
A/D Converter
D/A Converter
Comparator A
Comparator B
Flash Memory
Operating Frequency/Supply
Voltage
Current consumption
Operating Ambient Temperature
Package
REJ03B0274-0120 Rev.1.20
Jul 31, 2010
Page 3 of 57
R8C/38A Group
1. Overview
1.2
Product List
Table 1.3 lists Product List for R8C/38A Group. Figure 1.1 shows a Part Number, Memory Size, and Package of
R8C/38A Group.
Table 1.3
Product List for R8C/38A Group
RAM
Capacity
2.5 Kbytes
4 Kbytes
6 Kbytes
8 Kbytes
10 Kbytes
2.5 Kbytes
4 Kbytes
6 Kbytes
8 Kbytes
10 Kbytes
2.5 Kbytes
4 Kbytes
6 Kbytes
8 Kbytes
10 Kbytes
2.5 Kbytes
4 Kbytes
6 Kbytes
8 Kbytes
10 Kbytes
Package Type
Current of Jul 2010
Remarks
ROM Capacity
Part No.
Program
Data flash
ROM
R5F21386ANFP
32 Kbytes 1 Kbyte
×
4
R5F21387ANFP
48 Kbytes 1 Kbyte
×
4
R5F21388ANFP
64 Kbytes 1 Kbyte
×
4
R5F2138AANFP
96 Kbytes 1 Kbyte
×
4
R5F2138CANFP
128 Kbytes 1 Kbyte
×
4
R5F21386ANLG
32 Kbytes 1 Kbyte
×
4
R5F21387ANLG
48 Kbytes 1 Kbyte
×
4
R5F21388ANLG
64 Kbytes 1 Kbyte
×
4
R5F2138AANLG
96 Kbytes 1 Kbyte
×
4
R5F2138CANLG
128 Kbytes 1 Kbyte
×
4
R5F21386ANXXXFP 32 Kbytes 1 Kbyte
×
4
R5F21387ANXXXFP 48 Kbytes 1 Kbyte
×
4
R5F21388ANXXXFP 64 Kbytes 1 Kbyte
×
4
R5F2138AANXXXFP 96 Kbytes 1 Kbyte
×
4
R5F2138CANXXXFP 128 Kbytes 1 Kbyte
×
4
R5F21386ANXXXLG 32 Kbytes 1 Kbyte
×
4
R5F21387ANXXXLG 48 Kbytes 1 Kbyte
×
4
R5F21388ANXXXLG 64 Kbytes 1 Kbyte
×
4
R5F2138AANXXXLG 96 Kbytes 1 Kbyte
×
4
R5F2138CANXXXLG 128 Kbytes 1 Kbyte
×
4
PLQP0080KB-A N version
PLQP0080KB-A
PLQP0080KB-A
PLQP0080KB-A
PLQP0080KB-A
PTLG0081KA-A
PTLG0081KA-A
PTLG0081KA-A
PTLG0081KA-A
PTLG0081KA-A
PLQP0080KB-A N version
Factory
programming
PLQP0080KB-A
product
(1)
PLQP0080KB-A
PLQP0080KB-A
PLQP0080KB-A
PTLG0081KA-A
PTLG0081KA-A
PTLG0081KA-A
PTLG0081KA-A
PTLG0081KA-A
Note:
1. The user ROM is programmed before shipment.
Part No. R 5 F 21 38 C A N XXX FP
Package type:
FP: PLQP0080KB-A
LG: PTLG0081KA-A
ROM number
Classification
N: Operating ambient temperature
−20°C
to 85°C
ROM capacity
6: 32 KB
7: 48 KB
8: 64 KB
A: 96 KB
C: 128 KB
R8C/38A Group
R8C/3x Series
Memory type
F: Flash memory
Renesas MCU
Renesas semiconductor
Figure 1.1
Part Number, Memory Size, and Package of R8C/38A Group
Page 4 of 57
REJ03B0274-0120 Rev.1.20
Jul 31, 2010
R8C/38A Group
1. Overview
1.3
Block Diagram
Figure 1.2 shows a Block Diagram.
8
8
8
8
5
1
8
I/O ports
Port P0
Port P1
Port P2
Port P3
Port P4
Port P5
Peripheral functions
Timers
Timer RA (8 bits
×
1)
Timer RB (8 bits
×
1)
Timer RC (16 bits
×
1)
Timer RD (16 bits
×
2)
Timer RE (8 bits
×
1)
Timer RF (16 bits
×
1)
Timer RG (16 bits
×
1)
Watchdog timer
(14 bits)
A/D converter
(10 bits
×
20 channels)
D/A converter
(8 bits
×
2)
UART or
clock synchronous serial I/O
(8 bits
×
3)
I
2
C bus or SSU
(8 bits
×
1)
System clock generation
circuit
XIN-XOUT
Low-speed on-chip oscillator
XCIN-XCOUT
LIN module
Low-speed on-chip oscillator
for watchdog timer
Comparator B
Voltage detection circuit
Comparator A
DTC
R8C CPU core
R0H
R1H
R2
R3
A0
A1
FB
R0L
R1L
SB
USP
ISP
INTB
PC
FLG
Memory
ROM
(1)
RAM
(2)
Multiplier
Port P9
Port P8
Port P7
Port P6
6
8
8
8
Notes:
1. ROM size varies with MCU type.
2. RAM size varies with MCU type.
Figure 1.2
Block Diagram
REJ03B0274-0120 Rev.1.20
Jul 31, 2010
Page 5 of 57