RL78/G15 Fast Prototyping Board
- The RL78/G15 Fast Prototyping Board is provided with interface pins for Arduino Uno conversion.
- A pin list of the RL78/G15 Fast Prototyping Board is shown below.
RL78/G15 port Number |
Pin Name |
Arduino Pin Number(Digital IO) |
Arduino Uno I/F |
MCU header |
Pmod I/F |
Analog IO |
PWM |
Serial |
Wire |
Interrupt |
Tone |
PulseIn |
ShiftIn |
ShiftOut |
LED |
User Switch |
P04 |
IO0 |
0 |
γ |
γ |
- |
- |
- |
- |
- |
0 |
γ |
- |
γ |
γ |
- |
- |
P03 |
IO1 |
1 |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
γ |
γ |
- |
- |
P137(β»1) |
IO2 |
2 |
γ |
γ |
γ |
- |
- |
- |
- |
1 |
- |
- |
γ |
γ |
- |
SW |
P41 |
IO3 |
3 |
γ |
γ |
γ |
- |
γ |
- |
- |
2 |
γ |
γ |
γ |
γ |
- |
- |
P21 |
IO4 |
4 |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
γ |
γ |
LED2 |
- |
P20 |
IO7 |
7 |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
γ |
γ |
LED1 |
- |
P05 |
IO13 |
13 |
γ |
γ |
- |
- |
- |
- |
- |
- |
γ |
- |
γ |
γ |
- |
- |
P23 |
A0 |
14 |
γ |
γ |
γ |
A0 |
- |
- |
- |
- |
- |
- |
γ |
γ |
- |
- |
P22 |
A1 |
15 |
γ |
γ |
γ |
A1 |
- |
- |
- |
- |
- |
- |
γ |
γ |
- |
- |
P02 |
A2 |
16 |
γ |
γ |
γ |
A2 |
- |
- |
- |
- |
- |
- |
γ |
γ |
- |
- |
P06 |
SCL |
18 |
γ |
γ |
γ |
- |
- |
- |
SCLA0 |
- |
- |
- |
γ |
γ |
- |
- |
P07 |
SDA |
19 |
γ |
γ |
γ |
- |
- |
- |
SDAA0 |
- |
- |
- |
γ |
γ |
- |
- |
P00 |
- |
- |
- |
γ |
- |
- |
- |
TxD0 |
- |
- |
- |
- |
- |
- |
- |
- |
P01 |
- |
- |
- |
γ |
- |
- |
- |
RxD0 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
EVDD(IOREF) |
- |
γ |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
RESET |
- |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
3V3 |
- |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
5V |
- |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
GND |
- |
γ |
γ |
γ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- (β»1) Pin 2 (P137) is an input-only port, so the OUTPUT setting cannot be used.
- The functions of the RL78/G15 Fast Prototyping Board are listed below.
No. |
Name |
Function |
1 |
Digital IO |
12 Digital input pins / 11 Digital output pins |
2 |
Analog IO |
3 Analog input pins |
3 |
PWM |
1 PWM output pin |
4 |
Serial(UART) |
1 Serial(UART) channel(β»1) |
5 |
Wire(I2C) |
1 Wire(I2C) channel |
6 |
Interrupt |
3 Interrupt pins |
7 |
Tone |
3 Tone output pins |
8 |
PulseIn |
1 Pulse input pin |
9 |
ShiftIn |
11 Clock output pins / 12 Data input pins |
10 |
ShiftOut |
11 Clock output pins / 11 Data output pins |
11 |
LED |
2 on Board LED (pin 7 and pin 4)(β»2) |
12 |
User Switch |
1 on Board User Switch (pin 2)(β»3) |
-
(β»1) Serial(RxD0, TxD0) connects to a Micro-USB connector via a USB-serial converter.
-
(β»2) LED1 (pin 7) and LED2 (pin 4) are pulled up on the circuit.
-
(β»3) User Switch (pin 2) is pulled up on the circuit.
-
Refer to the following link for reference on the various functions.
-
Arduino Reference - Arduino Reference
- The RL78/G15 Fast Prototyping Board has 12 Digital input pins and 11 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(3,INPUT);
val = digitalRead(3);
pinMode(4,OUTPUT);
digitailWrite(4,HIGH);
- The pins corresponding to digital I/O are as follows.
Digital input pin |
Digital output pin |
memo |
0-4, 7, 13-16, 18, 19 |
0, 1, 3, 4, 7, 13-16, 18, 19 |
- |
2-2. Analog IO(Analog Input)
- The RL78/G15 Fast Prototyping Board has 3 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 pins corresponding to analog input are as follows.
Analog input pin |
memo |
A0, A1, A2 |
- |
- The RL78/G15 Fast Prototyping Board has 1 PWM output pin.
- 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 pin corresponding to PWM output are as follows.
- The RL78/G15 Fast Prototyping Board has 1 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 |
-(P00) |
-(P01) |
Connect to Micro USB port via USB-Serial Converter when J14 is open-circuit |
- The RL78/G15 Fast Prototyping Board has 1 wire (I2C) channel.
- The pin assignments of the channels are as follows.
Channel |
Data pin |
Clock pin |
memo |
Wire |
19(SDA) |
18(SCL) |
- |
- The RL78/G15 Fast Prototyping Board has 3 external interrupt pins.
- The correspondences between external interrupt numbers and pins are as follows.
Interrupt No. |
Interrupt pin |
memo |
0 |
0 |
- |
1 |
2(SW) |
- |
2 |
3 |
- |
- The RL78/G15 Fast Prototyping Board has 3 tone output pins.
- The correspondences between tone outputs and pins are as follows.
Tone output pin |
memo |
0, 3, 13 |
- |
- The RL78/G15 Fast Prototyping Board has 1 pulse input pin corresponding to pulseIn().
- The pin corresponding to pulseIn() are as follows.
- The RL78/G15 Fast Prototyping Board has 11 clock output pins and 12 data input pins corresponding to shiftIn().
- The pins corresponding to shiftIn() are as follows.
Clock pin |
Data pin |
memo |
0, 1, 3, 4, 7, 13-16, 18, 19 |
0-4, 7, 13-16, 18, 19 |
- |
- The RL78/G15 Fast Prototyping Board has 11 clock output pins and 11 data output pins corresponding to shiftOut().
- The pins corresponding to shiftOut() are as follows.
Clock pin |
Data pin |
memo |
0, 1, 3, 4, 7, 13-16, 18, 19 |
0, 1, 3, 4, 7, 13-16, 18, 19 |
- |
- The RL78/G15 Fast Prototyping Board has two LEDs mounted on it.
- The pins connected to the LEDs are as follows.
Name |
pin |
memo |
LED1 |
7 |
- |
LED2 |
4 |
- |
- The RL78/G15 Fast Prototyping Board has one user switch.
- The pin connected to the user switch is as follows.