RL78/G16 Fast Prototyping Board
- The RL78/G16 Fast Prototyping Board is provided with interface pins for Arduino Uno conversion.
- A pin list of the RL78/G16 Fast Prototyping Board is shown below.
RL78/G16 port Number |
Pin Name |
Arduino Pin Number(Digital IO) |
Arduino Uno I/F |
MCU header |
Pmod I/F |
Grove I/F |
Analog IO |
PWM |
Serial |
Wire |
SPI |
Interrupt |
Tone |
PulseIn |
ShiftIn |
ShiftOut |
Servo |
Stepper |
LED |
User Switch |
P04 |
0 |
0 |
γ |
γ |
γ |
- |
- |
- |
- |
- |
- |
0 |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P03 |
1 |
1 |
γ |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P11 |
2 |
2 |
γ |
γ |
γ |
- |
- |
- |
- |
- |
- |
1 |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P10 |
~3 |
3 |
γ |
γ |
γ |
- |
- |
γ |
- |
- |
- |
2 |
γ |
γ |
γ |
γ |
γ |
γ |
- |
- |
P14 |
4 |
4 |
γ |
γ |
γ |
- |
- |
- |
- |
- |
- |
3 |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P16 |
5 |
5 |
γ |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P17 |
~6 |
6 |
γ |
γ |
γ |
- |
- |
γ |
- |
- |
- |
- |
γ |
γ |
γ |
γ |
γ |
γ |
- |
- |
P43 |
8 |
8 |
γ |
γ |
γ |
- |
- |
- |
- |
- |
SS |
- |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P21 |
11 |
11 |
γ |
γ |
γ |
- |
- |
- |
- |
- |
MOSI |
- |
γ |
- |
γ |
γ |
γ |
γ |
- |
- |
P20 |
12 |
12 |
γ |
γ |
- |
- |
- |
- |
- |
- |
MISO |
- |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P41 |
13 |
13 |
γ |
γ |
- |
- |
- |
- |
- |
- |
SCK |
- |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P40 |
- |
14 |
- |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P137(β»1) |
- |
15 |
- |
γ |
γ |
- |
- |
- |
- |
- |
- |
4 |
- |
- |
γ |
- |
- |
- |
- |
SW2 |
P12 |
- |
16 |
- |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
γ |
γ |
γ |
γ |
LED1 |
- |
P13 |
- |
17 |
- |
γ |
γ |
- |
- |
- |
- |
- |
- |
5 |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P15 |
- |
18 |
- |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
γ |
γ |
γ |
γ |
LED2 |
- |
P00 |
- |
19 |
- |
γ |
- |
- |
- |
- |
TxD0 |
- |
- |
- |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P01 |
- |
20 |
- |
γ |
- |
- |
- |
- |
RxD0 |
- |
- |
- |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
P60 |
SCL |
21 |
γ |
γ |
γ |
γ |
- |
- |
- |
SCL0 |
- |
- |
- |
- |
γ |
- |
- |
- |
- |
- |
P61 |
SDA |
22 |
γ |
γ |
γ |
γ |
- |
- |
- |
SDA0 |
- |
- |
- |
- |
γ |
- |
- |
- |
- |
- |
P05 |
A0 |
23 |
γ |
γ |
γ |
- |
A0 |
- |
- |
- |
- |
6 |
- |
- |
γ |
γ |
γ |
γ |
- |
- |
- |
VDD(IOREF) |
- |
γ |
γ |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
RESET |
- |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
3V3 |
- |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
5V |
- |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
GND |
- |
γ |
γ |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- (β»1) Pin 15 (P137) is an input-only port, so the OUTPUT setting cannot be used.
- The functions of the RL78/G16 Fast Prototyping Board are listed below.
No. |
Name |
Function |
1 |
Digital IO |
21 Digital input pins / 18 Digital input_pullup pins / 18 Digital output pins |
2 |
Analog IO |
1 Analog input pin |
3 |
PWM |
2 PWM output pins |
4 |
Serial(UART) |
1 Serial(UART) channel(β»1) |
5 |
SoftwareSerial |
7 RX pins / 18 TX pins |
6 |
Wire(I2C) |
1 Wire(I2C) channel |
7 |
SPI |
1 SPI channel |
8 |
Interrupt |
7 Interrupt pins |
9 |
Tone |
3 Tone output pins |
10 |
PulseIn |
2 Pulse input pins |
11 |
ShiftIn |
18 Clock output pins / 21 Data input pins |
12 |
ShiftOut |
18 Clock output pins / 18 Data output pins |
13 |
Servo |
18 Servo output pins |
14 |
Stepper |
18 Stepper output pins |
15 |
LED |
2 on Board LED (pin 16 and pin 18)(β»2) |
16 |
User Switch |
1 on Board User Switch (pin 15)(β»3) |
-
(β»1) Serial(RxD0, TxD0) connects to a USB Type-C connector via a USB-serial converter.
-
(β»2) LED1 (pin 16) and LED2 (pin 18) are pulled up on the circuit.
-
(β»3) User Switch (pin 15) is pulled up on the circuit.
-
Refer to the following link for reference on the various functions.
-
Arduino Reference - Arduino Reference
- The RL78/G16 Fast Prototyping Board has 21 Digital input pins and 18 Digital input_pullup pins and 18 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-6, 8, 11-23 |
0-6, 8, 11-14, 16-20, 23 |
0-6, 8, 11-14, 16-20, 23 |
- |
2-2. Analog IO(Analog Input)
- The RL78/G16 Fast Prototyping Board has 1 analog input pin.
- 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 pins corresponding to analog input are as follows.
analog input pin |
memo |
A0 |
- |
- The RL78/G16 Fast Prototyping Board has 2 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 |
3, 6 |
- |
- The RL78/G16 Fast Prototyping Board has one serial (UART) channel.
- The default transmit buffer size when using each channel is 32 bytes.
- The default receive buffer size when using each channel is 32 bytes.
- The pin assignments of the channels are as follows.
Channel |
Transmit pin |
Receive pin |
memo |
Serial |
19 |
20 |
Connect to USB Type-C port via USB-Serial Converter. |
- The RL78/G16 Fast Prototyping Board has 7 RX pins and 18 TX pins for SoftwareSerial.
- The pins corresponding to SoftwareSerial are listed below.
RX pin |
TX pin |
memo |
0, 2-4, 15, 17, 23 |
0-6, 8, 11-14, 16-20, 23 |
- |
- The RL78/G16 Fast Prototyping Board has 1 wire (I2C) channel.
- The pin assignments of the channels are as follows.
Channel |
Data pin |
Clock pin |
memo |
Wire |
22(SDA) |
21(SCL) |
- |
- The RL78/G16 Fast Prototyping Board has 1 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 |
8 |
11 |
12 |
13 |
- |
- The RL78/G16 Fast Prototyping Board has 7 external interrupt pins.
- The correspondences between external interrupt numbers and pins are as follows.
Interrupt No. |
Interrupt pin |
memo |
0 |
0 |
- |
1 |
2 |
- |
2 |
3 |
- |
3 |
4 |
- |
4 |
15(SW) |
- |
5 |
17 |
- |
6 |
23 |
- |
- The RL78/G16 Fast Prototyping Board has 3 tone output pins.
- The correspondences between tone outputs and pins are as follows.
Tone output pin |
memo |
3, 6, 11 |
- |
- The RL78/G16 Fast Prototyping Board has 2 pulse input pins corresponding to pulseIn().
- The pins corresponding to pulseIn() are as follows.
Pulse input pin |
memo |
3, 6 |
- |
- The RL78/G16 Fast Prototyping Board has 18 clock output pins and 21 data input pins corresponding to shiftIn().
- The pins corresponding to shiftIn() are as follows.
Clock pin |
Data pin |
memo |
0-6, 8, 11-14, 16-20, 23 |
0-6, 8, 11-23 |
- |
- The RL78/G16 Fast Prototyping Board has 18 clock output pins and 18 data output pins corresponding to shiftOut().
- The pins corresponding to shiftOut() are as follows.
Clock pin |
Data pin |
memo |
0-6, 8, 11-14, 16-20, 23 |
0-6, 8, 11-14, 16-20, 23 |
- |
- The RL78/G16 Fast Prototyping Board has 18 Servo output pins.
- The correspondences between Servo output pins are as follows.
Servo output pin |
memo |
0-6, 8, 11-14, 16-20, 23 |
- |
- The RL78/G16 Fast Prototyping Board has 18 Stepper output pins.
- The correspondences between Stepper output pins are as follows.
Stepper output pin |
memo |
0-6, 8, 11-14, 16-20, 23 |
- |
- The RL78/G16 Fast Prototyping Board has two LEDs mounted on it.
- The pins connected to the LEDs are as follows.
Name |
pin |
memo |
LED1 |
16 |
- |
LED2 |
18 |
- |
- TheRL78/G16 Fast Prototyping Board has one user switch.
- The pin connected to the user switch is as follows.