FPB RL78L23 pin list - renesas/Arduino GitHub Wiki

FPB-RL78L23

Description

  • The FPB-RL78L23 is provided with interface pins for Arduino Uno conversion.

1. pinlist

  • A pin list of the FPB-RL78L23 is shown below.
RL78/L23 port Number Pin Name Arduino Pin Number(Digital IO) Arduino Uno I/F MCU header Pmod I/F Grove I/F LCD header LCD panel Analog IO PWM Serial Wire SPI Interrupt Tone PulseIn ShiftIn ShiftOut Servo Stepper LED User Switch
P146 IO0 0 ใ€‡ ใ€‡ - - - - - - RxD1 - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P03 IO1 1 ใ€‡ - - - ใ€‡ - - - TxD1 - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P02 IO2 2 ใ€‡ - - - ใ€‡ - - - - - - 0 - ใ€‡ ใ€‡ ใ€‡ - - - -
P01 IO3 3 ใ€‡ - - - ใ€‡ - - TAU - - - 1 TAU ใ€‡ ใ€‡ ใ€‡ - - - -
P16 IO4 4 ใ€‡ - - - ใ€‡ - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P15 IO5 5 ใ€‡ - - - ใ€‡ - - TAU - - - - TAU ใ€‡ ใ€‡ ใ€‡ - - - -
P147 IO6 6 ใ€‡ ใ€‡ - - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P80 IO7 7 ใ€‡ ใ€‡ - - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P62 IO8 8 ใ€‡ ใ€‡ - - - - - - - - - - - ใ€‡ ใ€‡ - - - - -
P77 IO9 9 ใ€‡ - - - ใ€‡ - - KB40 - - - - KB40 ใ€‡ ใ€‡ ใ€‡ - - - -
P76 IO10 10 ใ€‡ - - - ใ€‡ - - KB40 - - - 2 KB40 ใ€‡ ใ€‡ ใ€‡ - - - -
P47 IO11 11 ใ€‡ - - - ใ€‡ - - - - - - 3 - ใ€‡ ใ€‡ ใ€‡ - - - -
P46 IO12 12 ใ€‡ - - - ใ€‡ - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P140 IO13 13 ใ€‡ ใ€‡ - - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P127 - 14 - - - - - - - - - - - - - - - - - - - -
P126 - 15 - - - - - - - - - - - - - - - - - - - -
P87 - 16 - - - - - - - - - - - - - - - - - - - -
P86 - 17 - - - - - - - - - - - - - - - - - - - -
P85 - 18 - - - - - - - - - - - - - - - - - - - -
P125 - 19 - - - - - - - - - - - - - - - - - - - -
P45 - 20 - ใ€‡ ใ€‡ - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P44 - 21 - ใ€‡ ใ€‡ - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P43 - 22 - ใ€‡ ใ€‡ - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P42 - 23 - ใ€‡ ใ€‡ - - - - - TxD2 - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P41 - 24 - ใ€‡ ใ€‡ - - - - - RxD2 - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P66 - 25 - ใ€‡ ใ€‡ - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P67 - 26 - ใ€‡ ใ€‡ - - - - - - - - - - ใ€‡ ใ€‡ - - - - -
P40 - 27 - - - - - - - - - - - - - - - - - - - -
- RESET 28 ใ€‡ - - - - - - - - - - - - - - - - - - -
P124 - 29 - - - - - - - - - - - - - - - - - - - -
P123 - 30 - - - - - - - - - - - - - - - - - - - -
P137(โ€ป3) - 31 - ใ€‡ - - - - - - - - - 4 - ใ€‡ ใ€‡ - - - - SW1
P122 - 32 - ใ€‡ ใ€‡ - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P121 - 33 - ใ€‡ ใ€‡ - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P64 - 34 - ใ€‡ - - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - LED1 -
P65 - 35 - ใ€‡ - - - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - LED2 -
P63 - 36 - ใ€‡ ใ€‡ - - - - - - - - 5 - ใ€‡ ใ€‡ - - - - -
P84 - 37 - ใ€‡ ใ€‡ - - - - - - SCL1 - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P83 - 38 - ใ€‡ ใ€‡ - - - - - - SDA1 - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P82 - 39 - ใ€‡ - ใ€‡ - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P81 - 40 - ใ€‡ - ใ€‡ - - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P130(โ€ป2) - 41 - - - - ใ€‡ ใ€‡ - - - - - - - - - ใ€‡ - - - -
P35 - 42 - - ใ€‡ - ใ€‡ - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P34 - 43 - - ใ€‡ - ใ€‡ - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P33 - 44 - - ใ€‡ - ใ€‡ - - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P32 - 45 - - ใ€‡ - ใ€‡ - - - - - - 6 - ใ€‡ ใ€‡ ใ€‡ - - - -
P31 - 46 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P30 - 47 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P75 - 48 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P74 - 49 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P73 - 50 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P72 - 51 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P71 - 52 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P70 - 53 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P57 - 54 - - - - - - - - - - - - - - - - - - - -
P56 - 55 - - - - - - - - - - - - - - - - - - - -
P55 - 56 - - - - - - - - - - - - - - - - - - - -
P54 - 57 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P53 - 58 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P52 - 59 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P51 - 60 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P50 - 61 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P97 - 62 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P96 - 63 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P95 - 64 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P94 - 65 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P93 - 66 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P92 - 67 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P91 - 68 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P90 - 69 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P07 - 70 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P06 - 71 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P05 - 72 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P04 - 73 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P00 - 74 - - - - ใ€‡ - - - TxD0 - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P17 - 75 - - - - ใ€‡ - - - RxD0 - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P14 - 76 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P13 - 77 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P12 - 78 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P11 - 79 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P10 - 80 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P145 - 81 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P144 - 82 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P143 - 83 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P142 - 84 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P141 - 85 - - - - ใ€‡ ใ€‡ - - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P60 SCL 86 ใ€‡ ใ€‡ - - - - - - - SCL0 - - - ใ€‡ ใ€‡ - - - - -
P61 SDA 87 ใ€‡ ใ€‡ - - - - - - - SDA0 - - - ใ€‡ ใ€‡ - - - - -
P27 A0 88 ใ€‡ ใ€‡ - - - - A0 - - - - 7 - ใ€‡ ใ€‡ ใ€‡ - - - -
P26 A1 89 ใ€‡ ใ€‡ - - - - A1 - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P25 A2 90 ใ€‡ ใ€‡ - - - - A2 - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P24 A3 91 ใ€‡ ใ€‡ - - - - A3 - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P23 A4 92 ใ€‡ ใ€‡ - - - - A4 - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
P22 A5 93 ใ€‡ ใ€‡ - - - - A5 - - - - - - ใ€‡ ใ€‡ ใ€‡ - - - -
- EVDD(IOREF) - ใ€‡ ใ€‡ ใ€‡ ใ€‡ - ใ€‡ - - - - - - - - - - - - - -
- 3V3 - ใ€‡ - - - - - - - - - - - - - - - - - - -
- 5V - ใ€‡ - - - - - - - - - - - - - - - - - - -
- GND - ใ€‡ ใ€‡ ใ€‡ ใ€‡ - ใ€‡ - - - - - - - - - - - - - -
- VIN - ใ€‡ - - - - - - - - - - - - - - - - - - -
P21(โ€ป1) AREF - ใ€‡ - - - - - - - - - - - - - - - - - - -
  • (โ€ป1) External reference voltage supply pin.
  • (โ€ป2) Pin 41 (P130) is an output-only port, so the INPUT setting cannot be used.
  • (โ€ป3) Pin 31 (P137) is an input-only port, so the OUTPUT setting cannot be used.

2. Functions

  • The functions of the FPB-RL78L23 are listed below.
No. Name Function
1 Digital IO 80 Digital input pins / 75 Digital input_pullup pins / 76 Digital output pins
2 Analog IO 6 Analog input pins
3 PWM 4 PWM output pins(โ€ป2)(โ€ป3)
4 Serial(UART) 3 Serial(UART) channels(โ€ป1)
5 Wire(I2C) 2 Wire(I2C) channels
6 Interrupt 8 Interrupt pins
7 Tone 4 Tone output pins(โ€ป2)(โ€ป3)(โ€ป6)
8 PulseIn 80 Pulse input pins
9 PulseInLong 80 Pulse input pins
10 ShiftIn 76 Clock output pins / 80 Data input pins
11 ShiftOut 76 Clock output pins / 76 Data output pins
12 LED 2 on Board LED (pin 34 and pin 35)(โ€ป4)
13 User Switch 1 on Board User Switch (pin 31)(โ€ป5)
  • (โ€ป1) Serial(RxD0, TxD0) connects to a USB Type-C connector via a USB-serial converter.

  • (โ€ป2) Simultaneous use of PWM/Tone is not possible between pins that use timer TAU.

  • (โ€ป3) Simultaneous use of PWM/Tone is not possible between pins that use timer KB32.

  • (โ€ป4) LED1 (pin 34) and LED2 (pin 35) are pulled up on the circuit.

  • (โ€ป5) User Switch (pin 31) is pulled up on the circuit.

  • (โ€ป6) Tone cannot be output simultaneously from multiple terminals.

  • Refer to the following link for reference on the various functions.

  • Arduino Reference - Arduino Reference

2-1. Digital IO

  • The FPB-RL78L23 has 80 Digital input pins and 75 Digital input_pullup pins and 76 Digital output pins.
  • When using digital IO, pinMode() must first be called to set the specified pin to operate as an input or output.

    1. Using pin 2 as an input.
   pinMode(2,INPUT);
   val = digitalRead(2);
    1. Using pin 3 as an input_pullup.
   pinMode(3,INPUT_PULLUP);
   val = digitalRead(3);
    1. Using pin 4 as an output.
   pinMode(4,OUTPUT);
   digitailWrite(4,HIGH);
  • The pins corresponding to digital I/O are as follows.
Digital input pin Digital input_pullup pin Digital output pin memo
0-13, 20-26, 31-40, 42-53, 57-93 0-7, 9-13, 20-26, 32-35, 37-40, 42-53, 57-85, 88-93 0-7, 9-13, 20-26, 32-35, 37-53, 57-85, 88-93 -

2-2. Analog IO(Analog Input)

  • The FPB-RL78L23 has 6 analog input pins.
  • Analog input signals are A/D converted and the resulting digital values are returned.
  • To use analog input, use analogRead() to specify the analog pin name and read the data.
  • The reference voltage used for analog input is 5V by default. When analogReference(INTERNAL) is called, the reference voltage is the internal reference voltage (1.48V).
  • analogReference(EXTERNAL) is not supported.

  • Use A0 pin
val = analogRead(A0);
  • The pins corresponding to analog input are as follows.
Analog input pin memo
A0-A5 -

2-3. PWM

  • The FPB-RL78L23 has 4 PWM output pins.
  • To use PWM output, use analogWrite() to specify the pin name and duty, and generate PWM output.
  • To change the PWM output pulse frequency, use analogWriteFrequency() to set the frequency, then use analogWrite() to generate PWM output.
  • The range of frequencies that can be set with anaglogWriteFrequency() is 500 Hz to 8 MHz, and analogWrite() cannot control the duty ratio in detail at high frequencies.
  • The pins corresponding to PWM output are as follows.
PWM output pin memo
3, 5, 9, 10 -

2-4. Serial(UART)

  • The FPB-RL78L23 has 3 serial (UART) channels.
  • The default transmit buffer size when using each channel is 256 bytes.
  • The default receive buffer size when using each channel is 256 bytes.
  • The pin assignments of the channels are as follows.
Channel Transmit pin Receive pin memo
Serial 74 75 Connect to USB Type-C port via USB-to-Serial Converter when J23 is 1-2 shorts.
Serial1 1 0 -
Serial2 23 24 Connected to Pmod1 I/F.

2-5. Wire(I2C)

  • The FPB-RL78L23 has 2 wire (I2C) channels.
  • The pin assignments of the channels are as follows.
Channel Data pin Clock pin memo
Wire 87(SDA) 86(SCL) -
Wire1 38 37 Connected to Pmod2 I/F.

2-6. Interrupt

  • The FPB-RL78L23 has 8 external interrupt pins.
  • The correspondences between external interrupt numbers and pins are as follows.
Interrupt No. Interrupt pin memo
0 2 -
1 3 -
2 10 -
3 11 -
4 31(SW) -
5 36 -
6 45 -
7 A0 -

2-7. Tone

  • The FPB-RL78L23 has 4 tone output pins.
  • The range of frequencies that can be set with Tone() is from 500 Hz to 65535 Hz.
  • The correspondences between tone outputs and pins are as follows.
Tone output pin memo
3, 5, 9, 10 -

2-8. PulseIn

  • The FPB-RL78L23 has 80 pulse input pins corresponding to pulseIn().
  • The default time until timeout is 1 second and can be set in the range of unsigned long type.
  • If measurement is made while using functions with interrupts such as HardwareSerial, the error with the actual pulse width may be large.
  • The pins corresponding to pulseIn() are as follows.
Pulse input pin memo
0-13, 20-26, 31-40, 42-53, 57-93 -

2-9. PulseInLong

  • The FPB-RL78L23 has 80 pulse input pins corresponding to pulseInLong().
  • The time until timeout is set to 1 second by default, within the range of unsigned long type.
  • Pulse measurement is not available when interrupt processing is disabled.
  • The pins corresponding to pulseInLong() are as follows.
Pulse input pin memo
0-13, 20-26, 31-40, 42-53, 57-93 -

2-10. ShiftIn

  • The FPB-RL78L23 has 76 clock output pins and 80 data input pins corresponding to shiftIn().
  • The pins corresponding to shiftIn() are as follows.
Clock pin Data pin memo
0-7, 9-13, 20-26, 32-35, 37-53, 57-85, 88-93 0-13, 20-26, 31-40, 42-53, 57-93 -

2-11. ShiftOut

  • The FPB-RL78L23 has 76 clock output pins and 76 data output pins corresponding to shiftOut() and shiftOutEx().
  • The pins corresponding to shiftOut() and shiftOutEx() are as follows.
Clock pin Data pin memo
0-7, 9-13, 20-26, 32-35, 37-53, 57-85, 88-93 0-7, 9-13, 20-26, 32-35, 37-85, 88-93 -

2-12. LED

  • The FPB-RL78L23 has two LEDs mounted on it.
  • The pins connected to the LEDs are as follows.
Name pin memo
LED1 34 -
LED2 35 -

2-13. User Switch

  • The FPB-RL78L23 has one user switch.
  • The pin connected to the user switch is as follows.
Name pin memo
SW1 31 -

3. Macros

3-1. Macro definitions for Digital Port

3-1-1. digitalPinToPort(pin)

  • 93 pins can be specified in this macro.
  • The pins supporting to this macro are shown below.
pin number memo
0-27, 29-93 ๅทฆ่จ˜ไปฅๅค–ใฎๅ€คใ‚’ๆŒ‡ๅฎšใ—ใŸๅ ดๅˆใฏ255ใ‚’่ฟ”ใ™

3-1-2. digitalPinToBitMask(pin)

  • 93 pins can be specified in this macro.
  • The pins supporting to this macro are shown below.
pin number memo
0-27, 29-93 ๅทฆ่จ˜ไปฅๅค–ใฎๅ€คใ‚’ๆŒ‡ๅฎšใ—ใŸๅ ดๅˆใฏ255ใ‚’่ฟ”ใ™

3-1-3. portOutputRegister(port)

  • 13 ports can be specified in this macro.
  • The port numbers that can be specified for this macro are shown below.
port number memo
0-9, 12-14 ๅทฆ่จ˜ไปฅๅค–ใฎๅ€คใ‚’ๆŒ‡ๅฎšใ—ใŸๅ ดๅˆใฏNULLใ‚’่ฟ”ใ™

3-1-4. portInputRegister(port)

  • 13 ports can be specified in this macro.
  • The port numbers that can be specified for this macro are shown below.
port number memo
0-9, 12-14 ๅทฆ่จ˜ไปฅๅค–ใฎๅ€คใ‚’ๆŒ‡ๅฎšใ—ใŸๅ ดๅˆใฏNULLใ‚’่ฟ”ใ™

3-1-5. portModeRegister(port)

  • 12 ports can be specified in this macro.
  • The port numbers that can be specified for this macro are shown below.
port number memo
0-9, 12, 14 ๅทฆ่จ˜ไปฅๅค–ใฎๅ€คใ‚’ๆŒ‡ๅฎšใ—ใŸๅ ดๅˆใฏNULLใ‚’่ฟ”ใ™
โš ๏ธ **GitHub.com Fallback** โš ๏ธ