forked from arduino/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 6
FPB RL78L23 pin list
MikiyaKobayashi edited this page Aug 27, 2025
·
2 revisions
- 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.
- 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.
- 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.
-
- Using pin 2 as an input.
pinMode(2,INPUT);
val = digitalRead(2);
-
- Using pin 3 as an input_pullup.
pinMode(3,INPUT_PULLUP);
val = digitalRead(3);
-
- 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 | - |
- 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 | - |
- 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 | - |
- 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. |
- 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. |
- 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 | - |
- 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 | - |
- 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 | - |
- 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 | - |
- 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 | - |
- 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 | - |
- 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 | - |
- The FPB-RL78L23 has one user switch.
- The pin connected to the user switch is as follows.
Name | pin | memo |
---|---|---|
SW1 | 31 | - |
- See below for references to each macro.
- 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を返す |
- 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を返す |
- 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を返す |
- 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を返す |
- 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を返す |