R5F21238DFP#U0 Renesas Electronics America, R5F21238DFP#U0 Datasheet
![IC R8C/23 MCU FLASH 48-LQFP](/photos/12/38/123822/r5f21238dfp_u0_sml.jpg)
R5F21238DFP#U0
Specifications of R5F21238DFP#U0
Available stocks
Related parts for R5F21238DFP#U0
R5F21238DFP#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/22 Group, R8C/23 Group RENESAS MCU 1. Overview This MCU is built using the high-performance silicon gate CMOS process using the R8C CPU core and is packaged in a 48-pin plastic molded LQFP. This MCU operates using sophisticated instructions featuring ...
Page 4
R8C/22 Group, R8C/23 Group 1.2 Performance Overview Table 1.1 outlines the Functions and Specifications for R8C/22 Group and Table 1.2 outlines the Functions and Specifications for R8C/23 Group. Table 1.1 Functions and Specifications for R8C/22 Group Item CPU Number of ...
Page 5
R8C/22 Group, R8C/23 Group Table 1.2 Functions and Specifications for R8C/23 Group Item CPU Number of fundamental instructions 89 instructions Minimum instruction execution time 50 ns (f(XIN MHz, VCC = 3.0 to 5.5 V) Operating mode Address space ...
Page 6
R8C/22 Group, R8C/23 Group 1.3 Block Diagram Figure 1.1 shows a Block Diagram. I/O port Timer Timer RA (8 bits) Timer RB (8 bits) × 2 channels Timer RD (16 bits Timer RE (8 bits) Watchdog timer (15 bits) Figure ...
Page 7
R8C/22 Group, R8C/23 Group 1.4 Product Information Table 1.3 lists Product Information for R8C/22 Group and Table 1.4 lists Product Information for R8C/23 Group. Table 1.3 Product Information for R8C/22 Group Type No. ROM Capacity R5F21226DFP 32 Kbytes R5F21227DFP 48 ...
Page 8
R8C/22 Group, R8C/23 Group Table 1.4 Product Information for R8C/23 Group Type No. Program ROM R5F21236DFP 32 Kbytes R5F21237DFP 48 Kbytes R5F21238DFP 64 Kbytes R5F21236JFP 32 Kbytes R5F21237JFP 48 Kbytes R5F21238JFP 64 Kbytes R5F2123AJFP 96 Kbytes R5F2123CJFP 128 Kbytes R5F21236KFP ...
Page 9
R8C/22 Group, R8C/23 Group 1.5 Pin Assignments Figure 1.4 shows Pin Assignments (Top View). Pin assignments (top view) P0_6/AN1 37 P0_5/AN2 38 P0_4/AN3 39 P4_2/VREF 40 P6_0/TREO 41 P6_2/CRX0 42 P6_1/CTX0 43 P0_3/AN4 44 P0_2/AN5 45 P0_1/AN6 46 P0_0/AN7 47 ...
Page 10
R8C/22 Group, R8C/23 Group 1.6 Pin Functions Table 1.5 lists the Pin Functions and Table 1.6 lists the Pin Name Information by Pin Number. Table 1.5 Pin Functions Type Power Supply Input VCC VSS Analog Power Supply AVCC, AVSS Input ...
Page 11
R8C/22 Group, R8C/23 Group Table 1.6 Pin Name Information by Pin Number Pin Control Pin Port Number 1 P3_5 2 P3_3 3 P3_4 4 MODE 5 P4_3 6 P4_4 7 RESET 8 XOUT P4_7 9 VSS/AVSS 10 XIN P4_6 11 ...
Page 12
R8C/22 Group, R8C/23 Group 2. Central Processing Unit (CPU) Figure 2.1 shows the CPU Registers. The CPU contains 13 registers. Of these, R0, R1, R2, R3, A0, A1, and FB comprise a register bank. Two sets of register banks are ...
Page 13
R8C/22 Group, R8C/23 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 bit (R0H) and low-order ...
Page 14
R8C/22 Group, R8C/23 Group 2.8.7 Interrupt Enable Flag (I) The I flag enables a maskable interrupt. An interrupt is disabled when the I flag is set to 0, and are enabled when the I flag is set to 1. The ...
Page 15
R8C/22 Group, R8C/23 Group 3. Memory 3.1 R8C/22 Group Figure 3.1 shows a Memory Map of R8C/22 Group. The R8C/22 Group has 1 Mbyte of address space from address 00000h to FFFFFh. The internal ROM is allocated lower addresses, beginning ...
Page 16
R8C/22 Group, R8C/23 Group 3.2 R8C/23 Group Figure 3.2 shows a Memory Map of R8C/23 Group. The R8C/23 Group has 1 Mbyte of address space from address 00000h to FFFFFh. The internal ROM (program ROM) is allocated lower addresses, beginning ...
Page 17
R8C/22 Group, R8C/23 Group 4. Special Function Registers (SFRs) An SFR (special function register control register for a peripheral function. Table 4.1 to Table 4.13 list the SFR Information. Table 4.1 SFR Information (1) Address 0000h 0001h 0002h ...
Page 18
R8C/22 Group, R8C/23 Group Table 4.2 SFR Information (2) Address 0040h 0041h 0042h 0043h CAN0 Wake Up Interrupt Control Register 0044h CAN0 Successful Reception Interrupt Control Register 0045h CAN0 Successful Transmission Interrupt Control Register 0046h CAN0 State/Error Interrupt Control Register ...
Page 19
R8C/22 Group, R8C/23 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 20
R8C/22 Group, R8C/23 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 21
R8C/22 Group, R8C/23 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 22
R8C/22 Group, R8C/23 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 23
R8C/22 Group, R8C/23 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 24
R8C/22 Group, R8C/23 Group Table 4.8 SFR Information (8) Address 1300h CAN0 Message Control Register 0 1301h CAN0 Message Control Register 1 1302h CAN0 Message Control Register 2 1303h CAN0 Message Control Register 3 1304h CAN0 Message Control Register 4 ...
Page 25
R8C/22 Group, R8C/23 Group Table 4.9 SFR Information (9) Address 1340h 1341h 1342h CAN0 Acceptance Filter Support Register 1343h 1344h 1345h 1346h 1347h 1348h 1349h 134Ah 134Bh 134Ch 134Dh 134Eh 134Fh 1350h 1351h 1352h 1353h 1354h 1355h 1356h 1357h 1358h ...
Page 26
R8C/22 Group, R8C/23 Group Table 4.10 SFR Information (10) Address 1380h CAN0 Slot 2: Identifier/DLC 1381h 1382h 1383h 1384h 1385h 1386h CAN0 Slot 2: Data Field 1387h 1388h 1389h 138Ah 138Bh 138Ch 138Dh 138Eh CAN0 Slot 2: Time Stamp 138Fh ...
Page 27
R8C/22 Group, R8C/23 Group Table 4.11 SFR Information (11) Address 13C0h CAN0 Slot 6: Identifier/DLC 13C1h 13C2h 13C3h 13C4h 13C5h 13C6h CAN0 Slot 6: Data Field 13C7h 13C8h 13C9h 13CAh 13CBh 13CCh 13CDh 13CEh CAN0 Slot 6: Time Stamp 13CFh ...
Page 28
R8C/22 Group, R8C/23 Group Table 4.12 SFR Information (12) Address 1400h CAN0 Slot 10: Identifier/DLC 1401h 1402h 1403h 1404h 1405h 1406h CAN0 Slot 10: Data Field 1407h 1408h 1409h 140Ah 140Bh 140Ch 140Dh 140Eh CAN0 Slot 10: Time Stamp 140Fh ...
Page 29
R8C/22 Group, R8C/23 Group Table 4.13 SFR Information (13) Address 1440h CAN0 Slot 14: Identifier/DLC 1441h 1442h 1443h 1444h 1445h 1446h CAN0 Slot 14: Data Field 1447h 1448h 1449h 144Ah 144Bh 144Ch 144Dh 144Eh CAN0 Slot 14: Time Stamp 144Fh ...
Page 30
R8C/22 Group, R8C/23 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 ...
Page 31
R8C/22 Group, R8C/23 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 R Resistor ladder ladder t Conversion time 10-bit mode conv 8-bit mode V Reference voltage ref ...
Page 32
R8C/22 Group, R8C/23 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) erase suspend − Interval from erase start/restart ...
Page 33
R8C/22 Group, R8C/23 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 34
R8C/22 Group, R8C/23 Group Suspend request (Maskable interrupt request) FMR46 Figure 5.2 Time delay until Suspend Table 5.6 Voltage Detection 1 Circuit Electrical Characteristics Symbol V Voltage detection level det1 t Voltage monitor 1 reset generation time d(Vdet1-A) − Voltage ...
Page 35
R8C/22 Group, R8C/23 Group Table 5.8 Power-on Reset Circuit, Voltage Monitor 1 Reset Circuit Electrical Characteristics Symbol V Power-on reset valid voltage por1 V Power-on reset or voltage monitor 1 valid voltage por2 trth External power V CC NOTES: 1. ...
Page 36
R8C/22 Group, R8C/23 Group Table 5.9 High-Speed On-Chip Oscillator Circuit Electrical Characteristics Symbol fOCO40M High-speed on-chip oscillator frequency temperature • supply voltage dependence − The value of the FRA1 register when the reset is deasserted − High-speed on-chip oscillator adjustment ...
Page 37
R8C/22 Group, R8C/23 Group Table 5.12 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 38
R8C/22 Group, R8C/23 Group 4-wire bus communication mode, Master, CPHS = 1 V SCS (output) SSCK (output) (CPOS = 1) SSCK (output) (CPOS = 0) SSO (output) SSI (input) 4-wire bus communication mode, Master, CPHS = 0 SCS (output) SSCK ...
Page 39
R8C/22 Group, R8C/23 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 40
R8C/22 Group, R8C/23 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.2.00 Aug 20, 2008 Page ...
Page 41
R8C/22 Group, R8C/23 Group Table 5.13 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 falling time sf t SCL, SDA ...
Page 42
R8C/22 Group, R8C/23 Group Table 5.14 Electrical Characteristics (1) [V Symbol Parameter V Output “H” Voltage Except XOUT OH XOUT V Output “L” Voltage Except XOUT OL XOUT V V Hysteresis T+- T- INT0, INT1, INT2, INT3, KI0, KI1, KI2, ...
Page 43
R8C/22 Group, R8C/23 Group Table 5.15 Electrical Characteristics (2) [V (Topr = -40 to 85°C (D, J version) / -40 to 125°C (K version), Unless Otherwise Specified.) Symbol Parameter I Power supply current High-clock 3.3 to 5.5 ...
Page 44
R8C/22 Group, R8C/23 Group Timing Requirements (Unless Otherwise Specified: V Table 5.16 XIN Input Symbol t XIN input cycle time c(XIN) t XIN input “H” width WH(XIN) t XIN input “L” width WL(XIN) XIN input Figure 5.8 XIN Input Timing ...
Page 45
R8C/22 Group, R8C/23 Group Table 5.18 Serial Interface Symbol t CLK0 input cycle time c(CK) t CLK0 input “H” width W(CKH) t CLK0 input “L” width W(CKL) t TXDi output delay time d(C-Q) t TXDi hold time h(C-Q) t RXDi ...
Page 46
R8C/22 Group, R8C/23 Group Table 5.20 Electrical Characteristics (3) [V Symbol Parameter V Output “H” voltage Except XOUT OH XOUT V Output “L” voltage Except XOUT OL XOUT V V Hysteresis T+- T- INT0, INT1, INT2, INT3, KI0, KI1, KI2, ...
Page 47
R8C/22 Group, R8C/23 Group Table 5.21 Electrical Characteristics (4) [V (Topr = -40 to 85°C (D, J version) / -40 to 125°C (K version), Unless Otherwise Specified.) Symbol Parameter I Power supply current High-clock 2.7 to 3.3 ...
Page 48
R8C/22 Group, R8C/23 Group Timing Requirements (Unless Otherwise Specified: V Table 5.22 XIN Input Symbol t XIN input cycle time c(XIN) t XIN input “H” width WH(XIN) t XIN input “L” width WL(XIN) XIN input Figure 5.12 XIN Input Timing ...
Page 49
R8C/22 Group, R8C/23 Group Table 5.24 Serial Interface Symbol t CLK0 input cycle time c(CK) t CLK0 input “H” width W(CKH) t CLK0 input “L” width W(CKL) t TXDi output delay time d(C-Q) t TXDi hold time h(C-Q) t RXDi ...
Page 50
R8C/22 Group, R8C/23 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-LQFP48-7x7-0.50 PLQP0048KB ...
Page 51
REVISION HISTORY Rev. Date Page − 0.10 Mar 08, 2005 − 0.20 Sep 29, 2005 R8C/22 Group, R8C/23 Group Datasheet Description First Edition issued Words standardized - Clock synchronous ...
Page 52
REVISION HISTORY Rev. Date Page 0.20 Sep 29, 2005 20 28 1.00 Oct 27, 2006 All pages “Preliminary” and “Under development” deleted R8C/22 Group, R8C/23 Group Datasheet Description Table 4.6 ...
Page 53
REVISION HISTORY Rev. Date Page 1.00 Oct 27, 2006 − 1.10 Mar 16, 2007 − 2.00 Aug 20, 2008 All trademarks ...
Page 54
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 ...