R5F21257SNFP#U0 Renesas Electronics America, R5F21257SNFP#U0 Datasheet

IC R8C/25 MCU FLASH 52LQFP

R5F21257SNFP#U0

Manufacturer Part Number
R5F21257SNFP#U0
Description
IC R8C/25 MCU FLASH 52LQFP
Manufacturer
Renesas Electronics America
Series
R8C/2x/25r
Datasheets

Specifications of R5F21257SNFP#U0

Core Processor
R8C
Core Size
16/32-Bit
Speed
20MHz
Connectivity
I²C, LIN, SIO, SSU, UART/USART
Peripherals
POR, Voltage Detect, WDT
Number Of I /o
41
Program Memory Size
48KB (48K x 8)
Program Memory Type
FLASH
Ram Size
2.5K x 8
Voltage - Supply (vcc/vdd)
2.2 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
Internal
Operating Temperature
-20°C ~ 85°C
Package / Case
52-LQFP
For Use With
R0K521256S000BE - KIT EVAL STARTER FOR R8C/25
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
R5F21257SNFP#U0
Manufacturer:
AD
Quantity:
101
Company:
Part Number:
R5F21257SNFP#U0
Manufacturer:
Renesas Electronics America
Quantity:
135
Company:
Part Number:
R5F21257SNFP#U0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Company:
Part Number:
R5F21257SNFP#U0R5F21257SNFP#V2
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Company:
Part Number:
R5F21257SNFP#U0R5F21257SNFP#W4
Manufacturer:
Renesas Electronics America
Quantity:
10 000
To our customers,
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.
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
Renesas Electronics website:
Old Company Name in Catalogs and Other Documents
http://www.renesas.com
April 1
Renesas Electronics Corporation
st
, 2010

R5F21257SNFP#U0 Summary of contents

Page 1

To our customers, Old Company Name in Catalogs and Other Documents st On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the ...

Page 2

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

Page 3

R8C/24 Group, R8C/25 Group SINGLE-CHIP 16-BIT CMOS MCU 1. Overview These MCUs are fabricated using a high-performance silicon gate CMOS process, embedding the R8C/Tiny Series CPU core, and are packaged in a 52-pin molded-plastic LQFP or a 64-pin molded-plastic FLGA. ...

Page 4

R8C/24 Group, R8C/25 Group 1.2 Performance Overview Table 1.1 outlines the Functions and Specifications for R8C/24 Group and Table 1.2 outlines the Functions and Specifications for R8C/25 Group. Table 1.1 Functions and Specifications for R8C/24 Group Item CPU Number of ...

Page 5

R8C/24 Group, R8C/25 Group Table 1.2 Functions and Specifications for R8C/25 Group Item CPU Number of fundamental instructions Minimum instruction execution time Operating mode Address space Memory capacity Peripheral Ports Functions LED drive ports Timers Serial interface Clock synchronous serial ...

Page 6

R8C/24 Group, R8C/25 Group 1.3 Block Diagram Figure 1.1 shows a Block Diagram. I/O ports Peripheral functions Timers Timer RA (8 bits) Timer RB (8 bits) Timer RD (16 bits × 2 channels) Timer RE (8 bits) Watchdog timer (15 ...

Page 7

R8C/24 Group, R8C/25 Group 1.4 Product Information Table 1.3 lists the Product Information for R8C/24 Group and Table 1.4 lists the Product Information for R8C/25 Group. Table 1.3 Product Information for R8C/24 Group Type No. R5F21244SNFP 16 Kbytes R5F21245SNFP 24 ...

Page 8

R8C/24 Group, R8C/25 Group Type No XXX FP NOTE: 1. Please contact Renesas Technology sales offices for the Y version. Figure 1.2 Type Number, Memory Size, and Package of R8C/24 Group Rev.3.00 ...

Page 9

R8C/24 Group, R8C/25 Group Table 1.4 Product Information for R8C/25 Group Type No. Program ROM R5F21254SNFP 16 Kbytes R5F21255SNFP 24 Kbytes R5F21256SNFP 32 Kbytes R5F21257SNFP 48 Kbytes R5F21258SNFP 64 Kbytes R5F21254SNLG 16 Kbytes R5F21256SNLG 32 Kbytes R5F21254SDFP 16 Kbytes R5F21255SDFP ...

Page 10

R8C/24 Group, R8C/25 Group Type No XXX FP NOTE: 1. Please contact Renesas Technology sales offices for the Y version. Figure 1.3 Type Number, Memory Size, and Package of R8C/25 Group Rev.3.00 ...

Page 11

R8C/24 Group, R8C/25 Group 1.5 Pin Assignments Figure 1.4 shows PLQP0052JA-A Package Pin Assignments (Top View). Figure 1.5 shows PTLG0064JA-A Package Pin Assignments. Pin assignments (top view P0_6/AN1 41 P0_5/AN2 42 P0_4/AN3 43 P4_2/VREF 44 P6_0/TREO 45 P6_2 ...

Page 12

R8C/24 Group, R8C/25 Group Pin assignments (top perspective view P3_3/SSI P0_1/AN6 P3_4/SDA/ P0_0/AN7 SCS MODE P4_4/XCOUT P2_7/ VCC/AVCC TRDIOD1 VSS/AVSS ...

Page 13

R8C/24 Group, R8C/25 Group 1.6 Pin Functions Table 1.5 lists Pin Functions. Table 1.5 Pin Functions Type Symbol Power supply input VCC, VSS Analog power AVCC, AVSS supply input Reset input RESET MODE MODE XIN clock input XIN XIN clock ...

Page 14

R8C/24 Group, R8C/25 Group Table 1.6 Pin Name Information by Pin Number Pin Control Pin Port Number 2 P3_5 3 P3_3 4 P3_4 5 MODE 6 XCIN P4_3 7 XCOUT P4_4 8 RESET 9 XOUT P4_7 10 VSS/AVSS 11 XIN ...

Page 15

R8C/24 Group, R8C/25 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 ...

Page 16

R8C/24 Group, R8C/25 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 ...

Page 17

R8C/24 Group, R8C/25 Group 2.8.7 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 ...

Page 18

R8C/24 Group, R8C/25 Group 3. Memory 3.1 R8C/24 Group Figure 3 Memory Map of R8C/24 Group. The R8C/24 group has 1 Mbyte of address space from addresses 00000h to FFFFFh. The internal ROM is allocated lower addresses, beginning ...

Page 19

R8C/24 Group, R8C/25 Group 3.2 R8C/25 Group Figure 3 Memory Map of R8C/25 Group. The R8C/25 group has 1 Mbyte of address space from addresses 00000h to FFFFFh. The internal ROM (program ROM) is allocated lower addresses, beginning ...

Page 20

R8C/24 Group, R8C/25 Group 4. Special Function Registers (SFRs) An SFR (special function register control register for a peripheral function. Tables 4.1 to 4.7 list the special function registers. Table 4.1 SFR Information (1) Address 0000h 0001h 0002h ...

Page 21

R8C/24 Group, R8C/25 Group Table 4.2 SFR Information (2) Address 0040h 0041h 0042h 0043h 0044h 0045h 0046h 0047h 0048h Timer RD0 Interrupt Control Register 0049h Timer RD1 Interrupt Control Register 004Ah Timer RE Interrupt Control Register 004Bh 004Ch 004Dh Key ...

Page 22

R8C/24 Group, R8C/25 Group Table 4.3 SFR Information (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 ...

Page 23

R8C/24 Group, R8C/25 Group Table 4.4 SFR Information (4) Address 00C0h A/D Register 00C1h 00C2h 00C3h 00C4h 00C5h 00C6h 00C7h 00C8h 00C9h 00CAh 00CBh 00CCh 00CDh 00CEh 00CFh 00D0h 00D1h 00D2h 00D3h 00D4h A/D Control Register 2 00D5h 00D6h A/D ...

Page 24

R8C/24 Group, R8C/25 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 0106h LIN Control Register ...

Page 25

R8C/24 Group, R8C/25 Group Table 4.6 SFR Information (6) Address 0140h Timer RD Control Register 0 0141h Timer RD I/O Control Register A0 0142h Timer RD I/O Control Register C0 0143h Timer RD Status Register 0 0144h Timer RD Interrupt ...

Page 26

R8C/24 Group, R8C/25 Group Table 4.7 SFR Information (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 ...

Page 27

R8C/24 Group, R8C/25 Group 5. Electrical Characteristics The electrical characteristics of N version (Topr = -20 to 85°C) and D version (Topr = -40 to 85°C) are listed below. Please contact Renesas Technology sales offices for the electrical characteristics in ...

Page 28

R8C/24 Group, R8C/25 Group Table 5.2 Recommended Operating Conditions Symbol Parameter V /AV Supply voltage /AV Supply voltage Input “H” voltage IH V Input “L” voltage IL I Peak sum output Sum of all ...

Page 29

R8C/24 Group, R8C/25 Group Table 5.3 A/D Converter Characteristics Symbol Parameter − Resolution − Absolute 10-bit mode accuracy 8-bit mode 10-bit mode 8-bit mode 10-bit mode 8-bit mode R Resistor ladder ladder t Conversion time 10-bit mode conv 8-bit mode ...

Page 30

R8C/24 Group, R8C/25 Group Table 5.4 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 ...

Page 31

R8C/24 Group, R8C/25 Group Table 5.5 Flash Memory (Data flash Block A, Block B) 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) − ...

Page 32

R8C/24 Group, R8C/25 Group Suspend request (maskable interrupt request) FMR46 Figure 5.2 Time delay until Suspend Table 5.6 Voltage Detection 0 Circuit Electrical Characteristics Symbol V Voltage detection level det0 − Voltage detection circuit self power consumption t Waiting time ...

Page 33

R8C/24 Group, R8C/25 Group Table 5.9 Power-on Reset Circuit, Voltage Monitor 0 Reset Electrical Characteristics Symbol Parameter V Power-on reset valid voltage por1 V Power-on reset or voltage monitor 0 reset valid por2 voltage t External power V rth CC ...

Page 34

R8C/24 Group, R8C/25 Group Table 5.10 High-speed On-Chip Oscillator Circuit Electrical Characteristics Symbol Parameter fOCO40M 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 (4) FRA1 register ...

Page 35

R8C/24 Group, R8C/25 Group Table 5.13 Timing Requirements of Clock Synchronous Serial I/O with Chip Select Symbol Parameter t SSCK clock cycle time SUCYC t SSCK clock “H” width HI t SSCK clock “L” width LO t SSCK clock rising ...

Page 36

R8C/24 Group, R8C/25 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 = 0 ...

Page 37

R8C/24 Group, R8C/25 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) ...

Page 38

R8C/24 Group, R8C/25 Group SSCK SSO (output) SSI (input) Figure 5.6 I/O Timing of Clock Synchronous Serial I/O with Chip Select (Clock Synchronous Communication Mode) Rev.3.00 Feb 29, 2008 Page 36 ...

Page 39

R8C/24 Group, R8C/25 Group Table 5.14 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 ...

Page 40

R8C/24 Group, R8C/25 Group Table 5.15 Electrical Characteristics (1) [V Symbol Parameter V Output “H” voltage Except P2_0 to P2_7, OH XOUT P2_0 to P2_7 XOUT V Output “L” voltage Except P2_0 to P2_7, OL XOUT P2_0 to P2_7 XOUT ...

Page 41

R8C/24 Group, R8C/25 Group Table 5.16 Electrical Characteristics (2) [Vcc = -20 to 85°C (N version) / -40 to 85°C (D version), unless otherwise specified.) opr Symbol Parameter I Power supply High-speed CC current clock mode ...

Page 42

R8C/24 Group, R8C/25 Group Table 5.17 Electrical Characteristics (3) [Vcc = -20 to 85°C (N version) / -40 to 85°C (D version), unless otherwise specified.) opr Symbol Parameter I Power supply Wait mode CC current (V ...

Page 43

R8C/24 Group, R8C/25 Group Timing Requirements (Unless Otherwise Specified: V Table 5.18 XIN Input, XCIN Input Symbol t XIN input cycle time c(XIN) t XIN input “H” width WH(XIN) t XIN input “L” width WL(XIN) t XCIN input cycle time ...

Page 44

R8C/24 Group, R8C/25 Group Table 5.20 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 ...

Page 45

R8C/24 Group, R8C/25 Group Table 5.22 Electrical Characteristics (3) [V Symbol Parameter V Output “H” voltage Except P2_0 to P2_7, OH XOUT P2_0 to P2_7 XOUT V Output “L” voltage Except P2_0 to P2_7, OL XOUT P2_0 to P2_7 XOUT ...

Page 46

R8C/24 Group, R8C/25 Group Table 5.23 Electrical Characteristics (4) [Vcc = -20 to 85°C (N version) / -40 to 85°C (D version), unless otherwise specified.) opr Symbol Parameter I Power supply current High-speed ...

Page 47

R8C/24 Group, R8C/25 Group Timing requirements (Unless Otherwise Specified: V Table 5.24 XIN Input, XCIN Input Symbol t XIN input cycle time c(XIN) t XIN input “H” width WH(XIN) t XIN input “L” width WL(XIN) t XCIN input cycle time ...

Page 48

R8C/24 Group, R8C/25 Group Table 5.26 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 ...

Page 49

R8C/24 Group, R8C/25 Group Table 5.28 Electrical Characteristics (5) [V Symbol Parameter V Output “H” voltage Except P2_0 to P2_7, OH XOUT P2_0 to P2_7 XOUT V Output “L” voltage Except P2_0 to P2_7, OL XOUT P2_0 to P2_7 XOUT ...

Page 50

R8C/24 Group, R8C/25 Group Table 5.29 Electrical Characteristics (6) [Vcc = 2 -20 to 85°C (N version) / -40 to 85°C (D version), unless otherwise specified.) opr Symbol Parameter I Power supply current High-speed clock CC (V ...

Page 51

R8C/24 Group, R8C/25 Group Timing requirements (Unless Otherwise Specified: V Table 5.30 XIN Input, XCIN Input Symbol t XIN input cycle time c(XIN) t XIN input “H” width WH(XIN) t XIN input “L” width WL(XIN) t XCIN input cycle time ...

Page 52

R8C/24 Group, R8C/25 Group Table 5.32 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 ...

Page 53

R8C/24 Group, R8C/25 Group 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 RENESAS Code P-LQFP52-10x10-0.65 PLQP0052JA ...

Page 54

REVISION HISTORY REVISION HISTORY Rev. Date Page 0.01 Sep 17, 2004 - Dec 10, 2004 All pages Part Number revised. R8C/26 → R8C/24, R8C/27 → R8C/25 0. R8C/24 Group, ...

Page 55

REVISION HISTORY Rev. Date Page 0.10 Feb 24, 2005 13 0.20 Mar 8, 2005 0.30 Sep 01, 2005 ...

Page 56

REVISION HISTORY Rev. Date Page 0.30 Sep 01, 2005 R8C/24 Group, R8C/25 Group Datasheet Description Figure 1.4 Pin Assignment • Pin name revised; VSS → VSS/AVSS, VCC → VCC/AVCC, P1_5/RXD0/(TRAIO)/(INT1) → P1_5/RXD0/(TRAIO)/(INT1) P6_6/INT2/(TXD1) ...

Page 57

REVISION HISTORY Rev. Date Page 0.30 Sep 01, 2005 Electrical Characteristics added 0.40 Jan 24, 2006 all pages • “Preliminary” deleted ...

Page 58

REVISION HISTORY Rev. Date Page 0.40 Jan 24, 2006 R8C/24 Group, R8C/25 Group Datasheet Description Table 4.1 SFR ...

Page 59

REVISION HISTORY Rev. Date Page 0.40 Jan 24, 2006 46 1.00 May 31, 2006 all pages “Under development” deleted R8C/24 ...

Page 60

REVISION HISTORY Rev. Date Page 2.00 Jul 14, 2006 all pages “PTLG0064JA-A (64F0G)” package added 3.00 Feb 29, 2008 all pages Y version added ...

Page 61

Notes: 1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained ...

Related keywords