RL78/G23-128p Fast Prototyping Board
The RL78/G23-128p Fast Prototyping Board is provided with interface pins for Arduino Uno conversion.
A pin list of the RL78/G23-128p Fast Prototyping Board is shown below.
RL78/G23-128p port Number
Pin Name
Arduino Pin Number(Digital IO)
Arduino Uno I/F
MCU header
Pmod I/F
Grove I/F
Analog IO
PWM(β»4)
Serial
Wire
SPI
Interrupt
Tone
PulseIn
ShiftIn
ShiftOut
Servo
Stepper
LED
User Switch
P33
0
0
γ
-
-
-
-
-
RxDA1
-
-
-
-
γ
γ
γ
γ
γ
-
-
P34
1
1
γ
-
-
-
-
-
TxDA1
-
-
-
-
γ
γ
γ
γ
γ
-
-
P145
~2
2
γ
-
-
-
-
TAU0
-
-
-
-
γ
γ
γ
γ
γ
γ
-
-
P106
~3
3
γ
-
-
-
-
TAU1
-
-
-
-
γ
γ
γ
γ
γ
γ
-
-
P105
~4
4
γ
-
-
-
-
TAU1
-
-
-
-
γ
γ
γ
γ
γ
γ
-
-
P104
~5
5
γ
-
-
-
-
TAU1
-
-
-
-
γ
γ
γ
γ
γ
γ
-
-
P103
~6
6
γ
-
-
-
-
TAU1
-
-
-
-
γ
γ
γ
γ
γ
γ
-
-
P46
~7
7
γ
-
-
-
-
TAU0
-
-
-
0
γ
γ
γ
γ
γ
γ
-
-
P42
~8
8
γ
-
-
-
-
TAU0
-
-
-
-
γ
γ
γ
γ
γ
γ
-
-
P31
~9
9
γ
-
-
-
-
TAU0
-
-
-
1
γ
γ
γ
γ
γ
γ
-
-
P64
10
10
γ
-
-
-
-
-
-
-
-
-
γ
γ
γ
γ
γ
γ
-
-
P65
~11
11
γ
-
-
-
-
TAU1
-
-
-
-
γ
γ
γ
γ
γ
γ
-
-
P66
~12
12
γ
-
-
-
-
TAU1
-
-
-
-
γ
γ
γ
γ
γ
γ
-
-
P67
~13
13
γ
-
-
-
-
TAU1
-
-
-
-
γ
γ
γ
γ
γ
γ
-
-
P144
14
14
γ
-
γ
-
-
-
TxD3
-
MOSI
-
-
γ
γ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
γ
γ
γ
-
-
P24
A15
118
γ
-
-
-
A15
-
-
-
-
-
-
γ
γ
γ
γ
γ
-
-
-
EVDD(IOREF)
-
γ
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
RESET
-
γ
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
3V3
-
γ
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
5V
-
γ
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
GND
-
γ
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
P20(β»1)
AREF
-
γ
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(β»1) External reference voltage supply pin.
(β»2) Pin 58 (P130) is an output-only port, so the INPUT setting cannot be used.
(β»3) Pin 61 (P137) is an input-only port, so the OUTPUT setting cannot be used.
(β»4) Pin 10 cannot be used when outputting PWM from TAU1.
The functions of the RL78/G23-128p Fast Prototyping Board are listed below.
No.
Name
Function
1
Digital IO
111 Digital input pins / 93 Digital input_pullup pins / 107 Digital output pins
2
Analog IO
16 Analog input pins
3
PWM
11 PWM output pins(β»6)(β»7)
4
Serial(UART)
6 Serial(UART) channels(β»1)(β»2)(β»3)(β»4)(β»5)
5
SoftwareSerial
9 RX pins / 107 TX pins
6
Wire(I2C)
5 Wire(I2C) channels(β»2)(β»3)(β»4)
7
SPI
1 SPI channel(β»5)
8
Interrupt
9 Interrupt pins
9
Tone
12 Tone output pins(β»6)(β»8)
10
PulseIn
111 Pulse input pins
11
ShiftIn
107 Clock output pins / 111 Data input pins
12
ShiftOut
107 Clock output pins / 107 Data output pins
13
Servo
107 Servo output pins(β»7)(β»8)
14
Stepper
107 Stepper output pins
15
LED
2 on Board LED (pin 31 and pin 32)(β»9)
16
User Switch
1 on Board User Switch (pin 61)(β»10)
(β»1) Serial(RxD0, TxD0) connects to a Micro-USB connector via a USB-serial converter.
(β»2) Serial cannot be used simultaneously with the Wire3 channel.
(β»3) Serial2 cannot be used simultaneously with the Wire2 channel.
(β»4) Serial3 cannot be used simultaneously with the Wire4 channel.
(β»5) Serial4 cannot be used simultaneously with the SPI channel.
(β»6) Simultaneous use of PWM/Tone between pins using the same TAU terminal is not possible.
(β»7) If there are more than 25 pins using Servo, simultaneous use of PWM using Servo/TAU0 pins not possible.
(β»8) If there are more than 25 pins using Servo, simultaneous use of Servo/Tone using pin 2 is not possible.
(β»9) LED1 (pin 31) and LED2 (pin 32) are pulled up on the circuit.
(β»10) User Switch (pin 61) is pulled up on the circuit.
Refer to the following link for reference on the various functions.
Arduino Reference - Arduino Reference
The RL78/G23-128p Fast Prototyping Board has 111 Digital input pins and 93 Digital input_pullup pins and 107 Digital output pins.
When using digital IO, pinMode() must first be called to set the specified pin to operate as an input or output.
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-21, 23, 25-29, 31-56, 59, 61-71, 74-118
0-19, 23, 25-29, 31-54, 59, 62-71, 74-89, 92-107
0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118
-
2-2. Analog IO(Analog Input)
The RL78/G23-128p Fast Prototyping Board has 16 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).
The pins corresponding to analog input are as follows.
analog input pin
memo
A0-A15
-
The RL78/G23-128p Fast Prototyping Board has 11 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 pins corresponding to PWM output are as follows.
PWM output pin
memo
2-9, 11-13
-
The RL78/G23-128p Fast Prototyping Board has 6 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
40
41
Serial cannot be used simultaneously with the Wire3 channel. Connect to Micro USB port via USB-Serial Converter when J17 is open-circuit.
Serial1
1
0
-
Serial2
18
19
Serial2 cannot be used simultaneously with the Wire2 channel.
Serial3
16
17
Serial3 cannot be used simultaneously with the Wire4 channel.
Serial4
14
15
Serial4 cannot be used simultaneously with the SPI channel.
Serial5
102
101
Connected to Grove5 I/F.
The RL78/G23-128p Fast Prototyping Board has 9 RX pins and 107 TX pins for SoftwareSerial.
The pins corresponding to SoftwareSerial are listed below.
RX pin
TX pin
memo
7, 9, 61, 66-69, 87, 89
0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118
-
The RL78/G23-128p Fast Prototyping Board has 5 wire (I2C) channels.
The pin assignments of the channels are as follows.
Channel
Data pin
Clock pin
memo
Wire
20(SDA)
21(SCL)
-
Wire1
91
90
Connected to Pmod2 I/F.
Wire2
19
96
Connected to Grove2 I/F. Serial2 cannot be used simultaneously with the Wire2 channel.
Wire3
98
97
Connected to Grove3 I/F. Serial cannot be used simultaneously with the Wire3 channel.
Wire4
100
99
Connected to Grove4 I/F. Serial3 cannot be used simultaneously with the Wire4 channel.
The RL78/G23-128p Fast Prototyping Board has one SPI channel.
The pin assignment of the channel is as follows.
Channel
Chip Select pin
Data out pin
Data in pin
Clock pin
memo
SPI
85
14
15
86
Connected to Pmod1 I/F. Serial4 cannot be used simultaneously with the SPI channel.
The RL78/G23-128p Fast Prototyping Board has 9 external interrupt pins.
The correspondences between external interrupt numbers and pins are as follows.
Interrupt No.
Interrupt pin
memo
0
7
-
1
9
-
2
61(SW)
-
3
66
-
4
67
-
5
68
-
6
69
-
7
87
-
8
89
-
The RL78/G23-128p Fast Prototyping Board has 12 tone output pins.
The correspondences between tone outputs and pins are as follows.
Tone output pin
memo
2-13
-
The RL78/G23-128p Fast Prototyping Board has 111 pulse input pins corresponding to pulseIn().
The pins corresponding to pulseIn() are as follows.
Pulse input pin
memo
0-21, 23, 25-29, 31-56, 59, 61-71, 74-118
-
The RL78/G23-128p Fast Prototyping Board has 107 clock output pins and 111 data input pins corresponding to shiftIn().
The pins corresponding to shiftIn() are as follows.
Clock pin
Data pin
memo
0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118
0-21, 23, 25-29, 31-56, 59, 61-71, 74-118
-
The RL78/G23-128p Fast Prototyping Board has 107 clock output pins and 107 data output pins corresponding to shiftOut().
The pins corresponding to shiftOut() are as follows.
Clock pin
Data pin
memo
0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118
0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118
-
The RL78/G23-128p Fast Prototyping Board has 107 Servo output pins.
The correspondences between Servo output pins are as follows.
Servo output pin
memo
0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118
-
The RL78/G23-128p Fast Prototyping Board has 107 Stepper output pins.
The correspondences between Stepper output pins are as follows.
Stepper output pin
memo
0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118
-
The RL78/G23-128p Fast Prototyping Board has two LEDs mounted on it.
The pins connected to the LEDs are as follows.
Name
pin
memo
LED1
31
-
LED2
32
-
The RL78/G23-128p Fast Prototyping Board has one user switch.
The pin connected to the user switch is as follows.