R5F2L3AAANFP#U1 Renesas Electronics America, R5F2L3AAANFP#U1 Datasheet

MCU FLASH 96+4KB 100LQFP

R5F2L3AAANFP#U1

Manufacturer Part Number
R5F2L3AAANFP#U1
Description
MCU FLASH 96+4KB 100LQFP
Manufacturer
Renesas Electronics America
Series
R8C/Lx/3AAr
Datasheet

Specifications of R5F2L3AAANFP#U1

Core Processor
R8C
Core Size
16/32-Bit
Speed
20MHz
Connectivity
I²C, LIN, SIO, SSU, UART/USART
Peripherals
LCD, POR, PWM, Voltage Detect, WDT
Number Of I /o
88
Program Memory Size
96KB (96K x 8)
Program Memory Type
FLASH
Ram Size
10K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 20x10b; D/A 2x8b
Oscillator Type
Internal
Operating Temperature
-20°C ~ 85°C
Package / Case
100-LQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
R5F2L3AAANFP#U1
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

Related parts for R5F2L3AAANFP#U1

R5F2L3AAANFP#U1 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/L35A R8C/L36A , Group R8C/L35B R8C/L36B , Group Hardware Manual Renesas MCU R8C Family / R8C/Lx Series All information contained in this material, including products and product specifications at the time of publication of this material, is subject to change ...

Page 4

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

Page 5

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 6

How to Use This Manual 1. Purpose and Target Readers This manual is designed to provide the user with an understanding of the hardware functions and electrical characteristics of the MCU intended for users designing application systems incorporating ...

Page 7

Notation of Numbers and Symbols The notation conventions for register names, bit names, numbers, and symbols used in this manual are described below. (1) Register Names, Bit Names, and Pin Names Registers, bits, and pins are referred to in ...

Page 8

Register Notation The symbols and terms used in register diagrams are described below. x.x.x XXX Register (Symbol) Address XXXXh Bit b7 b6 Symbol XXX7 XXX6 After Reset 0 0 Bit Symbol b0 XXX0 XXX bit b1 XXX1 b2 — ...

Page 9

List of Abbreviations and Acronyms Abbreviation ACIA bps CRC DMA DMAC GSM Hi-Z IEBus I/O IrDA LSB MSB NC PLL PWM SFR SIM UART VCO All trademarks and registered trademarks are the property of their respective owners. Asynchronous Communication ...

Page 10

SFR Page Reference ........................................................................................................................... Overview ......................................................................................................................................... 1 1.1 Features ..................................................................................................................................................... 1 1.1.1 Applications .......................................................................................................................................... 1 1.1.2 Differences between Groups ................................................................................................................. 2 1.1.3 Specifications ........................................................................................................................................ 4 1.2 Product Lists .............................................................................................................................................. 7 1.3 Block Diagrams ....................................................................................................................................... 15 1.4 ...

Page 11

I/O Ports ........................................................................................................................................ 59 6.1 Introduction ............................................................................................................................................. 59 6.2 I/O Port Functions ................................................................................................................................... 60 6.3 Effect on Peripheral Functions ................................................................................................................ 60 6.4 Pins Other than I/O Ports ......................................................................................................................... 60 6.5 Registers .................................................................................................................................................. 66 6.5.1 Port Pi Direction Register (PDi) ...

Page 12

Peripheral Function Clock (f1, f2, f4, f8, and f32) ........................................................................... 118 8.6.4 fOCO-S ............................................................................................................................................. 118 8.6.5 fOCO128 ........................................................................................................................................... 118 8.6.6 fC-LCD ............................................................................................................................................. 118 8.6.7 fC, fC2, fC4, and fC32 ...................................................................................................................... 119 8.6.8 fOCO-WDT ...................................................................................................................................... 119 8.7 Oscillation Stop Detection ...

Page 13

Reducing Internal Power Consumption ............................................................................................ 142 9.7.9 Stopping Flash Memory .................................................................................................................... 143 9.7.10 Low-Current-Consumption Read Mode ........................................................................................... 144 9.8 Notes on Power Control ........................................................................................................................ 145 9.8.1 Stop Mode ......................................................................................................................................... 145 9.8.2 Wait Mode ........................................................................................................................................ 145 9.8.3 Power-Off Mode ............................................................................................................................... ...

Page 14

Key Input Enable Register 1 (KIEN1) .............................................................................................. 173 11.6 Address Match Interrupt ........................................................................................................................ 174 11.6.1 Address Match Interrupt Enable Register i (AIERi ...................................................... 175 11.6.2 Address Match Interrupt Register i (RMADi ...

Page 15

DTC Transfer Count Register j (DTCCTj 23) ................................................................... 201 15.2.4 DTC Transfer Count Reload Register j (DTRLDj 23) ...................................................... 201 15.2.5 DTC Source Address Register j (DTSARj ...

Page 16

Timer RB ..................................................................................................................................... 237 18.1 Introduction ........................................................................................................................................... 237 18.2 Registers ................................................................................................................................................ 238 18.2.1 Timer RB Control Register (TRBCR) .............................................................................................. 238 18.2.2 Timer RB One-Shot Control Register (TRBOCR) ........................................................................... 238 18.2.3 Timer RB I/O Control Register (TRBIOC) ...................................................................................... 239 18.2.4 ...

Page 17

Common Items for Multiple Modes ...................................................................................................... 272 19.3.1 Count Source ..................................................................................................................................... 272 19.3.2 Buffer Operation ............................................................................................................................... 273 19.3.3 Digital Filter ...................................................................................................................................... 275 19.3.4 Forced Cutoff of Pulse Output .......................................................................................................... 276 19.4 Timer Mode (Input Capture Function) .................................................................................................. 278 19.4.1 ...

Page 18

Timer RD Control Register i (TRDCRi for Input Capture Function ............................ 322 20.3.9 Timer RD I/O Control Register Ai (TRDIORAi for Input Capture Function .............. 323 20.3.10 Timer RD ...

Page 19

Timer RD Interrupt Enable Register i (TRDIERi PWM Mode ................................ 362 20.5.14 Timer RD PWM Mode Output Level Control Register i (TRDPOCRi PWM Mode . 362 20.5.15 ...

Page 20

PWM3 Mode ......................................................................................................................................... 402 20.8.1 Module Standby Control Register (MSTCR) ................................................................................... 404 20.8.2 Timer RD Control Expansion Register (TRDECR) ......................................................................... 404 20.8.3 Timer RD Trigger Control Register (TRDADCR) ........................................................................... 405 20.8.4 Timer RD Start Register (TRDSTR) in PWM3 Mode ...

Page 21

Reset .................................................................................................................................................. 441 21.4.2 Starting and Stopping Count ............................................................................................................. 441 21.4.3 Register Setting ................................................................................................................................. 441 21.4.4 Time Reading Procedure in Real-Time Clock Mode ....................................................................... 443 22. Timer RG .................................................................................................................................... 444 22.1 Introduction ........................................................................................................................................... 444 22.2 Registers ................................................................................................................................................ 446 22.2.1 ...

Page 22

UARTi Transmit/Receive Control Register 0 (UiC0 .................................................... 481 23.2.5 UARTi Transmit/Receive Control Register 1 (UiC1 .................................................... 481 23.2.6 UARTi Receive Buffer Register (UiRB ....................................................................... ...

Page 23

Output of Start and Stop Conditions ................................................................................................. 534 24.5.3 Transfer Clock .................................................................................................................................. 535 24.5.4 SDA Output ...................................................................................................................................... 535 24.5.5 SDA Input ......................................................................................................................................... 535 24.5.6 ACK and NACK ............................................................................................................................... 535 24.5.7 Initialization of Transmission/Reception .......................................................................................... 536 24.6 Multiprocessor Communication Function ...

Page 24

I C bus Interface ......................................................................................................................... 578 27.1 Introduction ........................................................................................................................................... 578 27.2 Registers ................................................................................................................................................ 581 27.2.1 Module Standby Control Register (MSTCR) ................................................................................... 581 27.2.2 SSU/IIC Pin Select Register (SSUIICSR) ........................................................................................ 581 27.2.3 I/O Function Pin Select Register (PINSR) ....................................................................................... ...

Page 25

A/D Converter ............................................................................................................................. 629 29.1 Introduction ........................................................................................................................................... 629 29.2 Registers ................................................................................................................................................ 631 29.2.1 On-Chip Reference Voltage Control Register (OCVREFCR) ......................................................... 631 29.2.2 A/D Register i (ADi ...................................................................................................... 632 29.2.3 A/D Mode Register (ADMOD) ........................................................................................................ ...

Page 26

LCD Port Select Register 1 (LSE1) .................................................................................................. 668 32.2.7 LCD Port Select Register 2 (LSE2) .................................................................................................. 669 32.2.8 LCD Port Select Register 3 (LSE3) .................................................................................................. 669 32.2.9 LCD Port Select Register 4 (LSE4) .................................................................................................. 670 32.2.10 LCD Port Select ...

Page 27

Electrical Characteristics ............................................................................................................ 729 34.1 Absolute Maximum Ratings .................................................................................................................. 729 34.2 Recommended Operating Conditions ................................................................................................... 730 34.3 Peripheral Function Characteristics ....................................................................................................... 732 34.4 DC Characteristics ................................................................................................................................. 737 34.5 AC Characteristics ................................................................................................................................. 743 35. Usage Notes ............................................................................................................................... 750 35.1 Notes ...

Page 28

Count Source Switching ................................................................................................................... 763 35.10.5 Input Capture Function ..................................................................................................................... 763 35.10.6 Reset Synchronous PWM Mode ....................................................................................................... 763 35.10.7 Complementary PWM Mode ............................................................................................................ 764 35.11 Notes on Timer RE ................................................................................................................................ 768 35.11.1 Reset .................................................................................................................................................. 768 35.11.2 Starting and Stopping ...

Page 29

SFR Page Reference Address Register 0000h 0001h 0002h 0003h 0004h Processor Mode Register 0 0005h Processor Mode Register 1 0006h System Clock Control Register 0 0007h System Clock Control Register 1 0008h Module Standby Control Register 0009h System Clock Control ...

Page 30

Address Register 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 Activation Enable Register 3 008Ch DTC ...

Page 31

Address Register 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 Control Register 0107h LIN Status Register ...

Page 32

Address Register 0160h UART1 Transmit/Receive Mode Register 0161h UART1 Bit Rate Register 0162h UART1 Transmit Buffer Register 0163h 0164h UART1 Transmit/Receive Control Register 0 0165h UART1 Transmit/Receive Control Register 1 0166h UART1 Receive Buffer Register 0167h 0168h 0169h 016Ah 016Bh ...

Page 33

Address Register 01D0h 01D1h 01D2h 01D3h 01D4h 01D5h 01D6h 01D7h 01D8h 01D9h 01DAh 01DBh 01DCh 01DDh 01DEh 01DFh 01E0h Port P0 Pull-Up Control Register 01E1h Port P1 Pull-Up Control Register 01E2h Port P2 Pull-Up Control Register 01E3h Port P3 Pull-Up ...

Page 34

Address Register 0240h LCD Display Data Register 0241h 0242h 0243h 0244h 0245h 0246h 0247h 0248h 0249h 024Ah 024Bh 024Ch 024Dh 024Eh 024Fh 0250h 0251h 0252h 0253h 0254h 0255h 0256h 0257h 0258h 0259h 025Ah 025Bh 025Ch 025Dh 025Eh 025Fh 0260h 0261h ...

Page 35

Address Register 02C0h LCD Display Control Data Register 02C1h 02C2h 02C3h 02C4h 02C5h 02C6h 02C7h 02C8h 02C9h 02CAh 02CBh 02CCh 02CDh 02CEh 02CFh 02D0h 02D1h 02D2h 02D3h 02D4h 02D5h 02D6h 02D7h 02D8h 02D9h 02DAh 02DBh 02DCh 02DDh 02DEh 02DFh 02E0h ...

Page 36

Address Register 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 2C84h 2C85h 2C86h 2C87h 2C88h DTC ...

Page 37

Address Register 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 2D01h : 0FFDBh Option Function Select Register 2 : 0FFFFh Option Function Select ...

Page 38

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group RENESAS MCU 1. Overview 1.1 Features The R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, and R8C/L3AB Group ...

Page 39

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 1.1.2 Differences between Groups Tables 1.1 and 1.2 list the differences between the groups, Table 1.3 lists the Programmable I/O Ports Provided for Each ...

Page 40

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.3 Programmable I/O Ports Provided for Each Group R8C/L35A Group R8C/L35B Group Programmable Total: 41 I/O pins I/O Port bit bit bit bit ...

Page 41

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 1.1.3 Specifications Tables 1.5 to 1.7 list the specifications. Table 1.5 Specifications (1) Item Function CPU Central processing unit Memory ROM/RAM Data flash I/O ...

Page 42

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.6 Specifications (2) Item Function Timer Timer RA Timer RB Timer RC Timer RD Timer RE Timer RG Serial UART0, UART1 UART2 Interface ...

Page 43

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.7 Specifications (3) Item Function Flash R8C/L35A Group Memory R8C/L36A Group R8C/L38A Group R8C/L3AA Group R8C/L35B Group R8C/L36B Group R8C/L38B Group R8C/L3AB Group ...

Page 44

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 1.2 Product Lists Tables 1.8 to 1.15 list product information for each group. Figure 1.1 to 1.8 show the Correspondence of Part No., with ...

Page 45

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.9 Product List for R8C/L35B Group Part No. R5F2L357BNFP 48 Kbytes R5F2L358BNFP 64 Kbytes R5F2L35ABNFP 96 Kbytes R5F2L35CBNFP 128 Kbytes R5F2L357BDFP 48 Kbytes ...

Page 46

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.10 Product List for R8C/L36A Group Part No. Program ROM R5F2L367ANFP 48 Kbytes R5F2L367ANFA 48 Kbytes R5F2L368ANFP 64 Kbytes R5F2L368ANFA 64 Kbytes R5F2L36AANFP ...

Page 47

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.11 Product List for R8C/L36B Group Part No. R5F2L367BNFP 48 Kbytes R5F2L367BNFA 48 Kbytes R5F2L368BNFP 64 Kbytes R5F2L368BNFA 64 Kbytes R5F2L36ABNFP 96 Kbytes ...

Page 48

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.12 Product List for R8C/L38A Group Part No. Program ROM R5F2L387ANFP 48 Kbytes R5F2L387ANFA 48 Kbytes R5F2L388ANFP 64 Kbytes R5F2L388ANFA 64 Kbytes R5F2L38AANFP ...

Page 49

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.13 Product List for R8C/L38B Group Part No. R5F2L387BNFP 48 Kbytes R5F2L387BNFA 48 Kbytes R5F2L388BNFP 64 Kbytes R5F2L388BNFA 64 Kbytes R5F2L38ABNFP 96 Kbytes ...

Page 50

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.14 Product List for R8C/L3AA Group Part No. Program ROM R5F2L3A7ANFP 48 Kbytes R5F2L3A7ANFA 48 Kbytes R5F2L3A8ANFP 64 Kbytes R5F2L3A8ANFA 64 Kbytes R5F2L3AAANFP ...

Page 51

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.15 Product List for R8C/L3AB Group Part No. R5F2L3A7BNFP 48 Kbytes R5F2L3A7BNFA 48 Kbytes R5F2L3A8BNFP 64 Kbytes R5F2L3A8BNFA 64 Kbytes R5F2L3AABNFP 96 Kbytes ...

Page 52

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 1.3 Block Diagrams Figure 1.9 shows a Block Diagram of R8C/L35A and R8C/L35B Groups. Figure 1.10 shows a Block Diagram of R8C/L36A and R8C/L36B ...

Page 53

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 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 ...

Page 54

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 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 ...

Page 55

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 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 ...

Page 56

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 1.4 Pin Assignments Figures 1.13 to 1.17 show pin assignments (top view). Tables 1.16 to 1.18 list the pin name information by pin number. ...

Page 57

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group P0_5/SEG5/AN9 49 P0_4/SEG4/AN8 50 P0_3/SEG3/AN7 51 P0_2/SEG2/AN6 52 P0_1/SEG1/AN5 53 P0_0/SEG0/AN4 54 VL1 55 VL2 56 VL3 57 CL2/P12_3 58 CL1/P12_2 59 VL4 60 ...

Page 58

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group P2_0/KI0 61 P1_3/SEG11/AN15 62 P1_2/SEG10/AN14 63 P1_1/SEG9/AN13 64 P1_0/SEG8/AN12 65 P0_7/SEG7/AN11 66 P0_6/SEG6/AN10 67 P0_5/SEG5/AN9 68 P0_4/SEG4/AN8 69 P0_3/SEG3/AN7 70 P0_2/SEG2/AN6 71 P0_1/SEG1/AN5 72 ...

Page 59

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group P1_6/SEG14 76 P1_5/SEG13 77 P1_4/SEG12 78 P1_3/SEG11/AN15 79 P1_2/SEG10/AN14 80 81 P1_1/SEG9/AN13 P1_0/SEG8/AN12 82 P0_7/SEG7/AN11 83 P0_6/SEG6/AN10 84 P0_5/SEG5/AN9 85 86 P0_4/SEG4/AN8 P0_3/SEG3/AN7 87 ...

Page 60

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 80 79 P1_3/SEG11/AN15 81 P1_2/SEG10/AN14 82 P1_1/SEG9/AN13 83 P1_0/SEG8/AN12 84 P0_7/SEG7/AN11 85 P0_6/SEG6/AN10 86 P0_5/SEG5/AN9 87 P0_4/SEG4/AN8 88 P0_3/SEG3/AN7 89 P0_2/SEG2/AN6 90 P0_1/SEG1/AN5 91 ...

Page 61

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.16 Pin Name Information by Pin Number (1) Pin Number L3AA Control L38A L36A L35A Pin L3AB L38B L36B L35B (Note 2) 1 ...

Page 62

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.17 Pin Name Information by Pin Number (2) Pin Number L3AA Control L38A L36A L35A L3AB Pin L38B L36B L35B (Note 2) 40 ...

Page 63

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.18 Pin Name Information by Pin Number (3) Pin Number L3AA Control L38A L36A L35A Pin L3AB L38B L36B L35B (Note 2) 85 ...

Page 64

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 1.5 Pin Functions Tables 1.19 and 1.20 list pin functions. Table 1.19 Pin Functions (1) Item Pin Name Power supply input VCC, VSS Analog ...

Page 65

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 1.20 Pin Functions (2) Item Pin Name 2 SCL I C bus SDA SSU SSI SCS SSCK SSO Reference voltage VREF input A/D ...

Page 66

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB 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 ...

Page 67

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 2.1 Data Registers (R0, R1, R2, and R3 16-bit register for transfer, arithmetic, and logic operations. The same applies to R1 ...

Page 68

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB 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 ...

Page 69

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 3. Memory Figure 3 Memory Map of each group. Each group has a 1-Mbyte address space from addresses 00000h to FFFFFh. The ...

Page 70

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 4. Special Function Registers (SFRs) An SFR (special function register control register for a peripheral function. Tables 4.1 to 4.16 list SFR ...

Page 71

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 4.2 SFR Information (2) Address 003Ah 003Bh 003Ch 003Dh 003Eh 003Fh 0040h 0041h Flash Memory Ready Interrupt Control Register 0042h 0043h INT7 Interrupt ...

Page 72

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB 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 ...

Page 73

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB 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 ...

Page 74

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB 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 ...

Page 75

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB 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 ...

Page 76

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 4.7 SFR Information (7) Address 0180h Timer RA Pin Select Register 0181h Timer RB/RC Pin Select Register 0182h Timer RC Pin Select Register ...

Page 77

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB 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 ...

Page 78

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 4.9 SFR Information (9) Address 0200h LCD Control Register 0201h LCD Bias Control Register 0202h LCD Display Control Register 0203h LCD Clock Control ...

Page 79

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 4.10 SFR Information (10) Address 0240h LCD Display Data Register 0241h 0242h 0243h 0244h 0245h 0246h 0247h 0248h 0249h 024Ah 024Bh 024Ch 024Dh ...

Page 80

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 4.11 SFR Information (11) Address 0280h LCD Display Control Data Register 0281h 0282h 0283h 0284h 0285h 0286h 0287h 0288h 0289h 028Ah 028Bh 028Ch ...

Page 81

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 4.12 SFR Information (12) Address 02C0h LCD Display Control Data Register 02C1h 02C2h 02C3h 02C4h 02C5h 02C6h 02C7h 02C8h 02C9h 02CAh 02CBh 02CCh ...

Page 82

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 4.13 SFR Information (13) Address 2C00h DTC Transfer Vector Area 2C01h DTC Transfer Vector Area 2C02h DTC Transfer Vector Area 2C03h DTC Transfer ...

Page 83

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 4.14 SFR Information (14) Address 2C70h DTC Control Data 6 2C71h 2C72h 2C73h 2C74h 2C75h 2C76h 2C77h 2C78h DTC Control Data 7 2C79h ...

Page 84

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 4.15 SFR Information (15) Address 2CB0h DTC Control Data 14 2CB1h 2CB2h 2CB3h 2CB4h 2CB5h 2CB6h 2CB7h 2CB8h DTC Control Data 15 2CB9h ...

Page 85

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 4.16 SFR Information (16) Address 2CF0h DTC Control Data 22 2CF1h 2CF2h 2CF3h 2CF4h 2CF5h 2CF6h 2CF7h 2CF8h DTC Control Data 23 2CF9h ...

Page 86

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 5. Resets The following resets are available: hardware reset, watchdog timer reset, and software reset. Table 5.1 lists the Reset Names and Sources and ...

Page 87

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 5.2 shows the Pin Status while RESET Pin Level is Low. Figure 5.2 shows the CPU Register Status after Reset and Figure 5.3 ...

Page 88

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group fOCO-S RESET pin more required fOCO-S clock Internal reset signal Activation time of flash memory (CPU clock CPU clock Address (internal ...

Page 89

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 5.1 Registers 5.1.1 Processor Mode Register 0 (PM0) Address 0004h Bit b7 b6 Symbol — — After Reset 0 0 Bit Symbol b0 — ...

Page 90

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 5.1.3 Option Function Select Register (OFS) Address 0FFFFh Bit b7 Symbol CSPROINI After Reset Bit Symbol b0 WDTON Watchdog timer start select bit b1 ...

Page 91

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 5.1.4 Option Function Select Register 2 (OFS2) Address 0FFDBh Bit b7 Symbol — After Reset Bit Symbol b0 WDTUFS0 Watchdog timer underflow period set ...

Page 92

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 5.2 Hardware Reset A reset is applied using the RESET pin. When a low-level signal is applied to the RESET pin while the supply ...

Page 93

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group VCC RESET Figure 5.4 Example of Hardware Reset Circuit and Operation RESET Figure 5.5 Example of Hardware Reset Circuit (Usage Example of External Supply ...

Page 94

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 5.3 Watchdog Timer Reset When the PM12 bit in the PM1 register is set to 1 (reset when watchdog timer underflows), the MCU resets ...

Page 95

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 5.5 Cold Start-Up/Warm Start-Up Determination Function The cold start-up/warm start-up determination function uses the CWR bit in the RSTFR register to determine cold start-up ...

Page 96

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6. I/O Ports Note The description offered in this chapter is based on the R8C/L3AA Group and the R8C/L3AB Group. For other groups, refer ...

Page 97

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.2 I/O Port Functions The PDi_j ( bit in the PDi ( 13) register ...

Page 98

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group P0 to P3, P5, and P7 Direction register Data bus Port latch P4 and P6 Direction register Data bus Port latch Note: 1. symbolizes ...

Page 99

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group P10 and P11 Direction register Data bus Port latch P12_2 and P12_3 Direction register Data bus Port latch Notes: 1. symbolizes a parasitic diode. ...

Page 100

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group P12_0/XIN Direction register Data bus Port latch Input to XIN clock P12_1/XOUT Direction register Data bus Port latch Notes: 1. symbolizes a parasitic diode. ...

Page 101

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group P13_0 to P13_7 Direction register Data bus Port latch Notes: 1. symbolizes a parasitic diode. 2. symbolizes a parasitic diode. Ensure the input voltage ...

Page 102

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group XCIN/XCOUT XCOUT Input to XCIN clock VREF A/D converter VREF WKUP0 Power-off mode input signal MODE MODE input signal RESET RESET input signal Notes: ...

Page 103

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5 Registers 6.5.1 Port Pi Direction Register (PDi 13) Address 00E2h (PD0), 00E3h (PD1), 00E6h (PD2), 00E7h ...

Page 104

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.2 Port Pi Register (Pi 13) Address 00E0h (P0), 00E1h (P1), 00E4h (P2), 00E5h (P3), 00E8h (P4), ...

Page 105

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.3 Timer RA Pin Select Register (TRASR) Address 0180h Bit b7 b6 Symbol — — After Reset 0 0 Bit Symbol b0 TRAIOSEL0 TRAIO ...

Page 106

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.4 Timer RB/RC Pin Select Register (TRBRCSR) Address 0181h Bit b7 Symbol TRCTRGSEL1 TRCTRGSEL0 After Reset 0 Bit Symbol b0 — Nothing is assigned. ...

Page 107

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.5 Timer RC Pin Select Register 0 (TRCPSR0) Address 0182h Bit b7 b6 Symbol — After Reset 0 Bit Symbol b0 TRCIOASEL0 TRCIOA pin ...

Page 108

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.6 Timer RC Pin Select Register 1 (TRCPSR1) Address 0183h Bit b7 b6 Symbol — — After Reset 0 0 Bit Symbol b0 TRCIOCSEL0 ...

Page 109

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.7 Timer RD Pin Select Register 0 (TRDPSR0) Address 0184h Bit b7 Symbol TRDIOD0SEL1 TRDIOD0SEL0 TRDIOC0SEL1 TRDIOC0SEL0 TRDIOB0SEL1 TRDIOB0SEL0 TRDIOA0SEL1 TRDIOA0SEL0 After Reset 0 ...

Page 110

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.8 Timer RD Pin Select Register 1 (TRDPSR1) Address 0185h Bit b7 Symbol TRDIOD1SEL1 TRDIOD1SEL0 TRDIOC1SEL1 TRDIOC1SEL0 TRDIOB1SEL1 TRDIOB1SEL0 TRDIOA1SEL1 TRDIOA1SEL0 After Reset 0 ...

Page 111

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.9 Timer RG Pin Select Register (TRGPSR) Address 0187h Bit b7 Symbol TRGCLKBSEL0 TRGCLKASEL0 TRGIOBSEL0 After Reset 0 Bit Symbol b0 — Nothing is ...

Page 112

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.11 UART1 Pin Select Register (U1SR) Address 0189h Bit b7 b6 Symbol — — After Reset 0 0 Bit Symbol b0 TXD1SEL0 TXD1 pin ...

Page 113

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.12 UART2 Pin Select Register 0 (U2SR0) Address 018Ah Bit b7 b6 Symbol — — After Reset 0 0 Bit Symbol b0 TXD2SEL0 TXD2/SDA2 ...

Page 114

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.13 UART2 Pin Select Register 1 (U2SR1) Address 018Bh Bit b7 b6 Symbol — — After Reset 0 0 Bit Symbol b0 CLK2SEL0 CLK2 ...

Page 115

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.14 SSU/IIC Pin Select Register (SSUIICSR) Address 018Ch Bit b7 b6 Symbol — — After Reset 0 0 Bit Symbol b0 IICSEL 2 SSU/I ...

Page 116

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.15 Key Input Pin Select Register (KISR) Address 018Dh Bit b7 b6 Symbol KI7SEL0 KI6SEL0 After Reset 0 Bit Symbol b0 KI0SEL0 KI0 pin ...

Page 117

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.16 INT Interrupt Input Pin Select Register (INTSR) Address 018Eh Bit b7 b6 Symbol INT7SEL0 INT6SEL0 INT5SEL0 INT4SEL0 INT3SEL0 INT2SEL0 INT1SEL0 INT0SEL0 After Reset ...

Page 118

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.17 I/O Function Pin Select Register (PINSR) Address 018Fh Bit b7 b6 Symbol SDADLY1 SDADLY0 IICTCHALF IICTCTWI IOINSEL After Reset 0 0 Bit Symbol ...

Page 119

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.18 Port Pi Pull-Up Control Register (PiPUR Address 01E0h (P0PUR), 01E1h (P1PUR), 01E2h (P2PUR), 01E3h (P3PUR), 01E4h (P4PUR), 01E5h ...

Page 120

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.20 Port P10 Drive Capacity Control Register (P10DRR) Address 01F0h Bit b7 b6 Symbol P10DRR7 P10DRR6 P10DRR5 P10DRR4 P10DRR3 P10DRR2 P10DRR1 P10DRR0 After Reset ...

Page 121

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.22 Input Threshold Control Register 0 (VLT0) Address 01F5h Bit b7 b6 Symbol VLT07 VLT06 After Reset 0 0 Bit Symbol b0 VLT00 P0 ...

Page 122

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.23 Input Threshold Control Register 1 (VLT1) Address 01F6h Bit b7 b6 Symbol VLT17 VLT16 After Reset 0 0 Bit Symbol b0 VLT10 P4 ...

Page 123

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.5.24 Input Threshold Control Register 2 (VLT2) Address 01F7h Bit b7 b6 Symbol VLT27 VLT26 After Reset 0 0 Bit Symbol b0 VLT20 P10 ...

Page 124

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.6 Port Settings Tables 6.6 to 6.24 list the port settings. Table 6.6 Port P0 Register PD0 Pin Bit PD0_i 0 1 Port P0_0 ...

Page 125

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.7 Port P1 Register PD1 Pin Bit PD1_i 0 1 Port P1_0 SEG8 AN12 Port P1_1 ...

Page 126

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.8 Port P2 Register PD2 Pin Bit PD2_i 0 1 Port P2_0 SEG16 KI0 Port P2_1 ...

Page 127

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.9 Port P3 Register PD3 LSE3 Pin Bit PD3_i LSEi+24 INTiSEL0 INTiEN INTiEN ADCAP1 Port P3_0 SEG24 i = ...

Page 128

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.10 Ports P4_0 to 4_2 Register PD4 LSE4 Pin Bit PD4_i LSEi+32 CLK1SEL0 RXD1SEL0 TXD1SEL0 SMD2 SMD1 SMD0 CKDIR 0 0 Port P4_0 ...

Page 129

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.12 Ports P4_5 to 4_7 Register PD4 LSE4 TRCPSR0 Pin TRCIOBSEL Bit PD4_i LSE37 Other than 01b 1 0 Other ...

Page 130

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.13 Port P5 Register PD5 Pin Bit PD5_i 0 Port P5_0 SEG40 X 0 Port P5_1 ...

Page 131

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.14 Ports P6_0 to P6_3 Register PD6 LSE5 Pin Bit PD6_i LSE44 Port P6_0 0 0 SEG44 ...

Page 132

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.15 Ports P6_4 to P6_7 Register PD6 LSE6 Pin Bit PD6_i LSE48 Port P6_4 0 0 SEG48 ...

Page 133

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.16 Port P7 Register PD7 Pin Bit PD7_i 0 Port P7_0 1 SEG52 COM7 0 Port P7_1 1 SEG53 ...

Page 134

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.17 Ports P10_0 to P10_3 Register PD10 KISR Pin Bit PD10_i KIiSEL0 KIiEN Port P10_0 (TRDIOA0 0 ...

Page 135

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.18 Ports P10_4 to P10_7 Register PD10 KISR Pin Bit PD10_i KIiSEL0 KIiEN Port P10_4 0 X ...

Page 136

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.19 Ports P11_0 and P11_1 Register PD11 INTSR INTEN Pin INTi Bit PD11_i INTiEN SEL0 Port 0 ...

Page 137

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.20 Ports P11_2 and P11_3 Register PD11 INTSR INTEN INTCMP Pin INTi Bit PD11_i INTiEN SEL0 ...

Page 138

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.21 Ports P11_4 to P11_7 Register PD11 INTSR INTEN1 TRASR TRAIOC Pin Bit PD11_i Port P11_4 TRAIO ...

Page 139

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.22 Ports P12_0 to P12_3 Register PD12 Pin Bit PD12_i CM05 CM07 CM10 CM11 CM13 Port P12_0 ...

Page 140

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.23 Ports P13_0 to P13_3 Register PD13 Pin Bit PD13_i Port P13_0 0 X AN0 ...

Page 141

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Table 6.24 Ports P13_4 to P13_7 Register PD13 Pin Bit PD13_i Port P13_4 0 X AN16 i ...

Page 142

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 6.7 Unassigned Pin Handling Table 6.25 lists Unassigned Pin Handling. Table 6.25 Unassigned Pin Handling Pin Name Ports P0 to P4, P5_0 to P5_3, ...

Page 143

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 7. Bus The bus cycles differ when accessing ROM/RAM and when accessing SFR. Table 7.1 lists the Bus Cycles by Access Area. ROM/RAM and ...

Page 144

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group However, only the following SFRs are connected with the 16-bit bus: Interrupts: Each interrupt control register Timer RC: Registers TRC, TRCGRA, TRCGRB, TRCGRC, and ...

Page 145

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8. Clock Generation Circuit The following five circuits are incorporated in the clock generation circuit: • XIN clock oscillation circuit • XCIN clock oscillation ...

Page 146

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group CM03 CM04 = 1 CM04 = 0 CM12 CM03 CM04 XCIN XCOUT CM10 = 1 (stop mode) RESET Software reset Interrupt request WAIT instruction ...

Page 147

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group fC-LCD fC fC2 fC4 fC32 fOCO128 fOCO-S fOCO-WDT INTi Timer f32 CPU clock Figure ...

Page 148

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8.2 Registers 8.2.1 System Clock Control Register 0 (CM0) Address 0006h Bit b7 b6 Symbol CM07 CM06 After Reset 0 0 Bit Symbol Bit ...

Page 149

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8.2.2 System Clock Control Register 1 (CM1) Address 0007h Bit b7 b6 Symbol CM17 CM16 After Reset 0 0 Bit Symbol b0 CM10 All ...

Page 150

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8.2.3 System Clock Control Register 3 (CM3) Address 0009h Bit b7 b6 Symbol CM37 CM36 After Reset 0 0 Bit Symbol b0 CM30 Wait ...

Page 151

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8.2.4 Oscillation Stop Detection Register (OCD) Address 000Ch Bit b7 b6 Symbol — — After Reset 0 0 Bit Symbol b0 OCD0 Oscillation stop ...

Page 152

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group The clocks generated by the clock generation circuits are described below. 8.3 XIN Clock The XIN clock is supplied by the XIN clock oscillation ...

Page 153

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8.4 On-Chip Oscillator Clock The on-chip oscillator clock is supplied by the on-chip oscillator (low-speed on-chip oscillator). 8.4.1 Low-Speed On-Chip Oscillator Clock The clock ...

Page 154

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8.5 XCIN Clock The XCIN clock is supplied by the XCIN clock oscillation circuit. This clock is used as the clock source for the ...

Page 155

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8.6 CPU Clock and Peripheral Function Clock There are a CPU clock to operate the CPU and a peripheral function clock to operate the ...

Page 156

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8.6.7 fC, fC2, fC4, and fC32 fC, fC2, fC4, and fC32 are used for timers RA, RD, RE and the serial interface. Use theses ...

Page 157

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8.7 Oscillation Stop Detection Function The oscillation stop detection function detects the stop of the XIN clock oscillating circuit. The oscillation stop detection function ...

Page 158

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group NO Figure 8.5 Procedure for Switching Low-Speed On-Chip Oscillator to XIN Clock Determination of interrupt sources (XIN clock stops) Set OCD1 bit to 0 ...

Page 159

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 8.8 Notes on Clock Generation Circuit 8.8.1 Oscillation Stop Detection Function Since the oscillation stop detection function cannot be used when the XIN clock ...

Page 160

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9. Power Control Note The description offered in this chapter is based on the R8C/L3AA Group and the R8C/L3AB Group. For other groups, refer ...

Page 161

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group State Transitions in Power Control Mode Standard operating mode CM14 = 0 OCD2 = 1 High-speed clock mode CM05 = CM07 ...

Page 162

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.2 Registers 9.2.1 System Clock Control Register 0 (CM0) Address 0006h Bit b7 b6 Symbol CM07 CM06 After Reset 0 0 Bit Symbol Bit ...

Page 163

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.2.2 System Clock Control Register 1 (CM1) Address 0007h Bit b7 b6 Symbol CM17 CM16 After Reset 0 0 Bit Symbol b0 CM10 All ...

Page 164

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.2.3 System Clock Control Register 3 (CM3) Address 0009h Bit b7 b6 Symbol CM37 CM36 After Reset 0 0 Bit Symbol b0 CM30 Wait ...

Page 165

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.2.4 Oscillation Stop Detection Register (OCD) Address 000Ch Bit b7 b6 Symbol — — After Reset 0 0 Bit Symbol b0 OCD0 Oscillation stop ...

Page 166

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.2.5 Voltage Detect Register 2 (VCA2) Address 0034h Bit b7 b6 Symbol — — After Reset 0 0 Bit Symbol b0 VCA20 Internal power ...

Page 167

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.2.6 Power-Off Mode Control Register 0 (POMCR0) Address 0020h Bit b7 b6 Symbol POM07 POM06 After Reset X 0 Initial write: Selection of the ...

Page 168

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.3 Standard Operating Mode Table 9.2 lists the Clock Selection in Standard Operating Mode. In standard operating mode, the CPU and peripheral function clocks ...

Page 169

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.3.1 High-Speed Clock Mode The XIN clock divided by 1 (no division used as the CPU clock. When ...

Page 170

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.4 Wait Mode Since the CPU clock stops in wait mode, CPU operation using the CPU clock and watchdog timer operation with count source ...

Page 171

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.4.4 Exiting Wait Mode The MCU exits wait mode by a reset or peripheral function interrupt. The peripheral function interrupts are affected by bits ...

Page 172

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Figure 9.2 shows the Time from Wait Mode to First Instruction Execution following Exit after CM30 Bit in CM3 Register is Set to 1 ...

Page 173

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group Figure 9.3 shows the Time from Wait Mode to Interrupt Routine Execution after WAIT instruction is Executed. To use a peripheral function interrupt to ...

Page 174

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.5 Stop Mode All oscillator circuits except fOCO-WDT stop in stop mode. Since the CPU clock and the peripheral function clock stop, CPU operation ...

Page 175

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.5.3 Exiting Stop Mode The MCU exits stop mode by a reset or peripheral function interrupt. Figure 9.4 shows the Time from Stop Mode ...

Page 176

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.6 Power-Off Mode All functions stop in power-off mode. However, the low-speed clock and timer RE functions can be set to operate or stop ...

Page 177

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.6.4 Exiting Power-Off Mode To exit power-off mode, input a low signal pulse to the RESET, WKUP0, or WKUP1 pin or use the timer ...

Page 178

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.7 Reducing Power Consumption This section describes key points and processing methods for reducing power consumption. They should be referred to when designing a ...

Page 179

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.7.6 A/D Converter When the A/D converter is not used, power consumption can be reduced by setting the ADSTBY bit in the ADCON1 register ...

Page 180

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.7.9 Stopping Flash Memory In low-speed on-chip oscillator mode and low-speed clock mode, power consumption can be further reduced by stopping the flash memory ...

Page 181

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.7.10 Low-Current-Consumption Read Mode In low-speed clock mode and low-speed on-chip oscillator mode, the current consumption when reading the flash memory can be reduced ...

Page 182

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.8 Notes on Power Control 9.8.1 Stop Mode To enter stop mode, set the FMR01 bit in the FMR0 register to 0 (CPU rewrite ...

Page 183

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 9.8.3 Power-Off Mode To enter power-off mode, set the FMR01 bit in the FMR0 register to 0 (CPU rewrite mode disabled) and then access ...

Page 184

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 10. Protection The protection function protects important registers from being easily overwritten if a program runs out of control. The registers protected by the ...

Page 185

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11. Interrupts Note The description offered in this chapter is based on the R8C/L3AA Group and the R8C/L3AB Group. For other groups, refer to ...

Page 186

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.1.2 Software Interrupts A software interrupt is generated when an instruction is executed. Software interrupts are non-maskable. 11.1.2.1 Undefined Instruction Interrupt An undefined instruction ...

Page 187

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.1.3 Special Interrupts Special interrupts are non-maskable. 11.1.3.1 Watchdog Timer Interrupt A watchdog timer interrupt is generated by the watchdog timer. For details, refer ...

Page 188

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.1.5 Interrupts and Interrupt Vectors There are 4 bytes in each vector. Set the starting address of an interrupt routine in each interrupt vector. ...

Page 189

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.1.5.2 Relocatable Vector Tables The relocatable vector tables occupy 256 bytes beginning from the starting address set in the INTB register. Table 11.2 lists ...

Page 190

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.2 Registers 11.2.1 Interrupt Control Register (TREIC, S2TIC, S2RIC, KUPIC, ADIC, S0TIC, S0RIC, S1TIC, S1RIC, TRAIC, TRBIC, U2BCNIC) Address 004Ah (TREIC), 004Bh (S2TIC), 004Ch ...

Page 191

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.2.2 Interrupt Control Register (FMRDYIC, TRCIC, TRD0IC, TRD1IC, SSUIC/IICIC, TRGIC) Address 0041h (FMRDYIC), 0047h (TRCIC), 0048h (TRD0IC), 0049h (TRD1IC), 004Fh (SSUIC/IICIC Bit b7 b6 ...

Page 192

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.2.3 INTi Interrupt Control Register (INTiIC Address 0043h (INT7IC), 0044h (INT6IC), 0045h (INT5IC), 0046h (INT4IC), 0055h (INT2IC), 0059h (INT1IC), ...

Page 193

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.3 Interrupt Control The following describes enabling and disabling maskable interrupts and setting the acknowledgement priority. This description does not apply to non-maskable interrupts. ...

Page 194

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.3.4 Interrupt Sequence The following describes an interrupt sequence which is performed from when an interrupt request is acknowledged until the interrupt routine is ...

Page 195

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.3.5 Interrupt Response Time Figure 11.4 shows the Interrupt Response Time. The interrupt response time is the period from when an interrupt request is ...

Page 196

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.3.7 Saving Registers In the interrupt sequence, the FLG register and PC are saved on the stack. After an extended 16 bits, 4 high-order ...

Page 197

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group The register saving operation, which is performed as part of the interrupt sequence, saved in 8 bits at a time in four steps. Figure ...

Page 198

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.3.8 Returning from Interrupt Routine When the REIT instruction is executed at the end of an interrupt routine, the FLG register and PC, which ...

Page 199

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.3.10 Interrupt Priority Level Selection Circuit The interrupt priority level selection circuit is used to select the highest priority interrupt. Figure 11.8 shows the ...

Page 200

R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 11.4 INT Interrupt 11.4.1 INTi Interrupt ( The INTi interrupt is generated by an INTi input. To use the INTi ...

Related keywords