R5F21348KDFP

Manufacturer Part NumberR5F21348KDFP
Description
ManufacturerRENESAS [Renesas Technology Corp]
R5F21348KDFP datasheet
 


1
Page 1
2
Page 2
3
Page 3
4
Page 4
5
Page 5
6
Page 6
7
Page 7
8
Page 8
9
Page 9
10
Page 10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Page 1/61

Download datasheet (573Kb)Embed
Next
R8C/34K Group
RENESAS MCU
1.Overview
1.1
Features
The R8C/34K Group of single-chip MCUs incorporates 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/34K Group has data flash (1 KB × 4 blocks) with the background operation (BGO) function.
1.1.1
Applications
Peripherals (USB applicable), audio components, cameras, televisions, household appliances, office equipment,
communication devices, mobile devices, industrial equipment, and other applications.
R01DS0040EJ0100 Rev.1.00
Feb 25, 2011
Datasheet
R01DS0040EJ0100
Rev.1.00
Feb 25, 2011
Page 1 of 58

R5F21348KDFP Summary of contents

  • Page 1

    R8C/34K Group RENESAS MCU 1.Overview 1.1 Features The R8C/34K Group of single-chip MCUs incorporates 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 ...

  • Page 2

    R8C/34K Group 1.1.2 Specifications Tables 1.1 and 1.2 outline the Specifications for R8C/34K Group. Table 1.1 Specifications for R8C/34K Group (1) Item Function CPU Central processing unit Memory ROM, RAM, Data flash Power Supply Voltage detection Voltage circuit Detection I/O ...

  • Page 3

    R8C/34K Group Table 1.2 Specifications for R8C/34K Group (2) Item Function bus LIN Module USB Functions A/D Converter Comparator B Flash Memory Operating Frequency/Supply Voltage Current consumption Operating Ambient Temperature Package R01DS0040EJ0100 Rev.1.00 Feb 25, 2011 Specification ...

  • Page 4

    ... Table 1.3 Product List for R8C/34K Group Part No. Program ROM R5F21348KNFP 64 Kbytes 128Kbytes 1 Kbyte × Kbytes PLQP0048KB-A R5F2134CKNFP R5F21348KDFP 64 Kbytes 128Kbytes 1 Kbyte × Kbytes PLQP0048KB-A R5F2134CKDFP R5F21348KNXXXFP 64 Kbytes R5F2134CKNXXXFP 128Kbytes 1 Kbyte × Kbytes PLQP0048KB-A R5F21348KDXXXFP 64 Kbytes R5F2134CKDXXXFP 128Kbytes 1 Kbyte × Kbytes PLQP0048KB-A Note: 1 ...

  • Page 5

    R8C/34K Group 1.3 Block Diagram Figure 1.2 shows a Block Diagram. 8 I/O ports Port P0 Peripheral functions Timers Timer RA (8 bits × 1) Timer RB (8 bits × 1) Timer RC (16 bits × 1) Timer RF (16 ...

  • Page 6

    R8C/34K Group 1.4 Pin Assignment Figure 1.3 shows Pin Assignment (Top View). Tables 1.4 and 1.5 outline the Pin Name Information by Pin Number. P0_7/AN0(/TRCIOC) P0_6/AN1(/TRCIOD) P0_5/AN2(/TRCIOB) P0_4/AN3(/TRCIOB) P0_3/AN4(/CLK1/TRCIOB) P0_2/AN5(/RXD1/TRCIOA/TRCTRG) P0_1/AN6(/TXD1/TRCIOA/TRCTRG) P0_0/AN7(/TRCIOA/TRCTRG) P8_3(/TRFI/TRFO10/RXD3) P8_2(/TRFO02/TXD3) P8_1(/TRFO01/CLK3) P8_0(/TRFO00) Notes: 1. Can be ...

  • Page 7

    R8C/34K Group Table 1.4 Pin Name Information by Pin Number (1) Pin Control Pin Port Number Interrupt 1 P6_0 2 P3_0 3 4 MODE 5 P4_3 6 P4_4 7 RESET 8 XOUT P4_7 9 VSS/AVSS 10 XIN P4_6 11 VCC/AVCC ...

  • Page 8

    R8C/34K Group Table 1.5 Pin Name Information by Pin Number (2) Pin Control Pin Port Number Interrupt 41 P0_3 42 P0_2 43 P0_1 44 P0_0 45 P8_3 46 P8_2 47 P8_1 48 P8_0 Note: 1. Can be assigned to the ...

  • Page 9

    R8C/34K Group 1.5 Pin Functions Tables 1.6 and 1.7 list Pin Functions. Table 1.6 Pin Functions (1) Item Pin Name Power supply input VCC, VSS Analog power AVCC, AVSS supply input Reset input RESET MODE MODE XIN clock input XIN ...

  • Page 10

    R8C/34K Group Table 1.7 Pin Functions (2) Item Pin Name USB USB_DP/USB_DM USB_VBUS USB_VBUSEN USB_OVRCURA/ USB_OVRCURB USB_DPUPE USB_VCC USB_DPRPD/ USB_DRPD USB_ID USB_EXICEN Reference voltage VREF input A/D converter AN0 to AN11 ADTRG Comparator B IVCMP1, IVCMP3 IVREF1, IVREF3 I/O port ...

  • Page 11

    R8C/34K Group 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 ...

  • Page 12

    R8C/34K Group 2.1 Data Registers (R0, R1, R2, and R3 16-bit register for transfer, arithmetic, and logic operations. The same applies R3. R0 can be split into high-order bits (R0H) and low-order bits (R0L) ...

  • Page 13

    R8C/34K Group 2.8.7 Interrupt Enable Flag (I) The I flag enables maskable interrupts. Interrupts 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 ...

  • Page 14

    ... The data flash indicates block A (1 Kbyte), block B (1 Kbyte), block C (1 Kbyte), and block D (1 Kbyte). 2. The SFR areas for the DTC and other modules are allocated to addresses 02C00h to 02FFFh. 3. The blank areas are reserved and cannot be accessed by users. Part Number R5F21348KNFP, R5F21348KDFP R5F21348KNXXXFP, R5F21348KDXXXFP R5F2134CKNFP, R5F2134CKDFP R5F2134CKNXXXFP, R5F213CKDXXXFP Figure 3 ...

  • Page 15

    R8C/34K Group 4. Special Function Registers (SFRs) An SFR (special function register control register for a peripheral function. Tables 4.1 to 4.15 list the special function registers. Table 4.16 lists the ID Code Areas and Option Function Select ...

  • Page 16

    R8C/34K Group Table 4.2 SFR Information (2) Address 003Ah Voltage Monitor 2 Circuit Control Register 003Bh 003Ch 003Dh 003Eh 003Fh 0040h 0041h Flash Memory Ready Interrupt Control Register 0042h 0043h 0044h 0045h 0046h INT4 Interrupt Control Register 0047h Timer RC ...

  • Page 17

    R8C/34K Group Table 4.3 SFR Information (3) Address 0080h DTC Activation Control Register 0081h 0082h 0083h 0084h 0085h 0086h 0087h 0088h DTC Activation Enable Register 0 0089h DTC Activation Enable Register 1 008Ah DTC Activation Enable Register 2 008Bh DTC ...

  • Page 18

    R8C/34K Group Table 4.4 SFR Information (4) Address 00C0h A/D Register 0 00C1h 00C2h A/D Register 1 00C3h 00C4h A/D Register 2 00C5h 00C6h A/D Register 3 00C7h 00C8h A/D Register 4 00C9h 00CAh A/D Register 5 00CBh 00CCh A/D ...

  • Page 19

    R8C/34K Group Table 4.5 SFR Information (5) Address 0100h Timer RA Control Register 0101h Timer RA I/O Control Register 0102h Timer RA Mode Register 0103h Timer RA Prescaler Register 0104h Timer RA Register 0105h LIN Control Register 2 0106h LIN ...

  • Page 20

    R8C/34K Group Table 4.6 SFR Information (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 ...

  • Page 21

    R8C/34K Group Table 4.7 SFR Information (7) Address 0180h Timer RA Pin Select Register 0181h Timer RC Pin Select Register 0182h Timer RC Pin Select Register 0 0183h Timer RC Pin Select Register 1 0184h 0185h 0186h Timer Pin Select ...

  • Page 22

    R8C/34K Group Table 4.8 SFR Information (8) Address 01C0h Address Match Interrupt Register 0 01C1h 01C2h 01C3h Address Match Interrupt Enable Register 0 01C4h Address Match Interrupt Register 1 01C5h 01C6h 01C7h Address Match Interrupt Enable Register 1 01C8h 01C9h ...

  • Page 23

    R8C/34K Group Table 4.9 SFR Information (9) Address 2C00h DTC Transfer Vector Area 2C01h DTC Transfer Vector Area 2C02h DTC Transfer Vector Area 2C03h DTC Transfer Vector Area 2C04h DTC Transfer Vector Area 2C05h DTC Transfer Vector Area 2C06h DTC ...

  • Page 24

    R8C/34K Group Table 4.10 SFR Information (10) Address 2C70h DTC Control Data 6 2C71h 2C72h 2C73h 2C74h 2C75h 2C76h 2C77h 2C78h DTC Control Data 7 2C79h 2C7Ah 2C7Bh 2C7Ch 2C7Dh 2C7Eh 2C7Fh 2C80h DTC Control Data 8 2C81h 2C82h 2C83h ...

  • Page 25

    R8C/34K Group Table 4.11 SFR Information (11) Address 2CB0h DTC Control Data 14 2CB1h 2CB2h 2CB3h 2CB4h 2CB5h 2CB6h 2CB7h 2CB8h DTC Control Data 15 2CB9h 2CBAh 2CBBh 2CBCh 2CBDh 2CBEh 2CBFh 2CC0h DTC Control Data 16 2CC1h 2CC2h 2CC3h ...

  • Page 26

    R8C/34K Group Table 4.12 SFR Information (12) Address 2CF0h DTC Control Data 22 2CF1h 2CF2h 2CF3h 2CF4h 2CF5h 2CF6h 2CF7h 2CF8h DTC Control Data 23 2CF9h 2CFAh 2CFBh 2CFCh 2CFDh 2CFEh 2CFFh 2D00h : 2DFFh 2E00h System Configuration Control Register ...

  • Page 27

    R8C/34K Group Table 4.13 SFR Information (13) Address 2E30h Interrupt Enable Register 0 2E31h 2E32h Interrupt Enable Register 1 2E33h 2E34h 2E35h 2E36h BRDY Interrupt Enable Register 2E37h 2E38h NRDY Interrupt Enable Register 2E39h 2E3Ah BEMP Interrupt Enable Register 2E3Bh ...

  • Page 28

    R8C/34K Group Table 4.14 SFR Information (14) Address 2E70h 2E71h 2E72h 2E73h 2E74h 2E75h 2E76h Pipe 4 Control Register 2E77h 2E78h Pipe 5 Control Register 2E79h 2E7Ah Pipe 6 Control Register 2E7Bh 2E7Ch Pipe 7 Control Register 2E7Dh 2E7Eh 2E7Fh ...

  • Page 29

    R8C/34K Group Table 4.15 SFR Information (15) Address 2F00h USB Module Control Register 2F01h PLL Control Register 0 2F02h PLL Control Register 1 2F03h PLL Division Control Register 2F04h 2F05h 2F06h 2F07h 2F08h 2F09h 2F0Ah 2F0Bh 2F0Ch 2F0Dh 2F0Eh 2F0Fh ...

  • Page 30

    R8C/34K Group 5. Electrical Characteristics Table 5.1 Absolute Maximum Ratings Symbol Parameter V /AV Supply voltage Input voltage I V Output voltage O P Power dissipation d T Operating ambient temperature opr T Storage temperature stg R01DS0040EJ0100 ...

  • Page 31

    R8C/34K Group Table 5.2 Recommended Operating Conditions (1) Symbol V /AV Supply voltage When USB function is used CC CC When USB function is not used UV USB Supply When USB function is used CC Voltage (When UVCC pin is ...

  • Page 32

    R8C/34K Group Figure 5.1 Ports P0, P1, P3, P4, P6, P7 and P8 Timing Measurement Circuit R01DS0040EJ0100 Rev.1.00 Feb 25, 2011 30pF Electrical Characteristics Page ...

  • Page 33

    R8C/34K Group Table 5.3 A/D Converter Characteristics Symbol Parameter — Resolution — Absolute accuracy φAD A/D conversion clock — Tolerance level impedance t Conversion time CONV t Sampling time SAMP I V current Vref ref V Reference voltage ref VIA ...

  • Page 34

    R8C/34K Group Table 5.4 Comparator B Electrical Characteristics Symbol Parameter V IVREF1, IVREF3 input reference voltage ref V IVCMP1, IVCMP3 input voltage I — Offset t Comparator output delay time d I Comparator operating current CMP Notes: = −20 to ...

  • Page 35

    R8C/34K Group Table 5.5 USB Characteristics Symbol V Input Input “H” voltage IH characteristics V Input “L” voltage IL V Differential input sensitivity DI V Differential common mode range CM V Output Output “H” voltage OH characteristics V Output “L” ...

  • Page 36

    R8C/34K Group Table 5.6 Flash Memory (Program ROM) Electrical Characteristics Symbol Parameter — Program/erase endurance — Byte program time — Block erase time t Time delay from suspend request until d(SR-SUS) suspend — Interval from erase start/restart until following suspend ...

  • Page 37

    R8C/34K Group Table 5.7 Flash Memory (Data flash Block A to Block D) Electrical Characteristics Symbol Parameter — Program/erase endurance — Byte program time (program/erase endurance ≤ 1,000 times) — Byte program time (program/erase endurance > 1,000 times) — Block ...

  • Page 38

    R8C/34K Group Table 5.8 Voltage Detection 0 Circuit Electrical Characteristics Symbol Parameter V Voltage detection level Vdet0_0 det0 Voltage detection level Vdet0_1 Voltage detection level Vdet0_2 Voltage detection level Vdet0_3 — Voltage detection 0 circuit response time — Voltage detection ...

  • Page 39

    R8C/34K Group Table 5.10 Voltage Detection 2 Circuit Electrical Characteristics Symbol Parameter V Voltage detection level Vdet2_0 det2 — Hysteresis width at the rising of V detection 2 circuit — Voltage detection 2 circuit response time — Voltage detection circuit ...

  • Page 40

    R8C/34K Group Table 5.12 High-speed On-Chip Oscillator Circuit Electrical Characteristics Symbol Parameter — High-speed on-chip oscillator frequency after reset High-speed on-chip oscillator frequency when the FRA4 register correction value is written into the FRA1 register and the FRA5 register correction ...

  • Page 41

    R8C/34K Group Table 5.15 Timing Requirements of Synchronous Serial Communication Unit (SSU) Symbol Parameter t SSCK clock cycle time SUCYC t SSCK clock “H” width HI t SSCK clock “L” width LO t SSCK clock rising RISE time t SSCK ...

  • Page 42

    R8C/34K Group 4-Wire Bus Communication Mode, Master, CPHS = SCS (output) SSCK (output) (CPOS = 1) SSCK (output) (CPOS = 0) SSO (output) SSI (input 4-Wire Bus Communication Mode, Master, CPHS = ...

  • Page 43

    R8C/34K Group 4-Wire Bus Communication Mode, Slave, CPHS = 1 SCS (input) SSCK (input) (CPOS = 1) SSCK (input) (CPOS = 0) SSO (input) SSI (output) 4-Wire Bus Communication Mode, Slave, CPHS = 0 SCS (input) SSCK (input) (CPOS = ...

  • Page 44

    R8C/34K Group SSCK SSO (output) SSI (input) Figure 5.8 I/O Timing of Synchronous Serial Communication Unit (SSU) (Clock Synchronous Communication Mode) R01DS0040EJ0100 Rev.1.00 Feb 25, 2011 ...

  • Page 45

    R8C/34K Group Table 5.16 Timing Requirements of I Symbol Parameter t SCL input cycle time SCL t SCL input “H” width SCLH t SCL input “L” width SCLL t SCL, SDA input fall time sf t SCL, SDA input spike ...

  • Page 46

    R8C/34K Group Electrical Characteristics (1) [4.2 V ≤ V Table 5.17 Symbol Parameter V Output “H” Other than XOUT OH voltage XOUT V Output “L” Other than XOUT OL voltage XOUT V V Hysteresis INT0, INT1, INT2, T+- T- INT3, ...

  • Page 47

    R8C/34K Group Electrical Characteristics (2) [3.3 V ≤ V Table 5.18 = − °C (N version)/− °C (D version), unless otherwise specified.) (T opr Symbol Parameter I Power supply current High-speed 3.3 to ...

  • Page 48

    R8C/34K Group Timing Requirements (Unless Otherwise Specified: V Table 5.19 External Clock Input (XOUT) Symbol t XOUT input cycle time c(XOUT) t XOUT input “H” width WH(XOUT) t XOUT input “L” width WL(XOUT) External clock input Figure 5.10 External Clock ...

  • Page 49

    R8C/34K Group Table 5.22 Serial Interface Symbol t CLKi input cycle time c(CK) t CLKi input “H” width W(CKH) t CLKi input “L” width W(CKL) t TXDi output delay time d(C-Q) t TXDi hold time h(C-Q) t RXDi input setup ...

  • Page 50

    R8C/34K Group Electrical Characteristics (3) [2.7 V ≤ V Table 5.24 Symbol Parameter V Output “H” voltage Other than XOUT OH XOUT V Output “L” voltage Other than XOUT OL XOUT V V Hysteresis T+- T- INT0, INT1, INT2, INT3, ...

  • Page 51

    R8C/34K Group Electrical Characteristics (4) [2.7 V ≤ V Table 5.25 = − °C (N version)/− °C (D version), unless otherwise specified.) (T opr Symbol Parameter I Power supply current High-speed 2.7 to ...

  • Page 52

    R8C/34K Group Timing requirements (Unless Otherwise Specified: V Table 5.26 External Clock Input (XOUT) Symbol t XOUT input cycle time c(XOUT) t XOUT input “H” width WH(XOUT) t XOUT input “L” width WL(XOUT) External clock input Figure 5.15 External Clock ...

  • Page 53

    R8C/34K Group Table 5.29 Serial Interface Symbol t CLKi input cycle time c(CK) t CLKi input “H” width W(CKH) t CLKi Input “L” width W(CKL) t TXDi output delay time d(C-Q) t TXDi hold time h(C-Q) t RXDi input setup ...

  • Page 54

    R8C/34K Group Electrical Characteristics (5) [1.8 V ≤ V Table 5.31 Symbol Parameter V Output “H” voltage Other than XOUT OH XOUT V Output “L” voltage Other than XOUT OL XOUT V V Hysteresis T+- T- NT0, INT1, INT2, INT3, ...

  • Page 55

    R8C/34K Group Electrical Characteristics (6) [1.8 V ≤ V Table 5.32 = − °C (N version)/− °C (D version), unless otherwise specified.) (T opr Symbol Parameter I Power supply current High-speed 1.8 to ...

  • Page 56

    R8C/34K Group Timing requirements (Unless Otherwise Specified: V Table 5.33 External Clock Input (XOUT) Symbol t XOUT input cycle time c(XOUT) t XOUT input “H” width WH(XOUT) t XOUT input “L” width WL(XOUT) External clock input Figure 5.20 External Clock ...

  • Page 57

    R8C/34K Group Table 5.36 Serial Interface Symbol t CLKi input cycle time c(CK) t CLKi input “H” width W(CKH) t CLKi input “L” width W(CKL) t TXDi output delay time d(C-Q) t TXDi hold time h(C-Q) t RXDi input setup ...

  • Page 58

    R8C/34K Group Package Dimensions Diagrams showing the latest package dimensions and mounting information are available in the “Packages” section of the Renesas Electronics website. JEITA Package Code RENESAS Code P-LQFP48-7x7-0.50 PLQP0048KB Index ...

  • Page 59

    REVISION HISTORY Rev. Date Page 0.01 Nov 08, 2010 — 1.00 Feb 25, 2011 All pages “Preliminary”, “Under development” deleted All ...

  • Page 60

    General Precautions in the Handling of MPU/MCU Products The following usage notes are applicable to all MPU/MCU products from Renesas. For detailed usage notes on the products covered by this manual, refer to the relevant sections of the manual. If ...

  • Page 61

    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 ...