The RL78/G23-64p Fast Prototyping Board has 52 Digital input pins and 41 Digital input_pullup pins and 48 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, 15-26, 29-40, 43-56
0-13, 15-25, 29-40, 43-46
0-13, 15-25, 29-40, 42-46, 51-56
-
2-2. Analog IO(Analog Input)
The RL78/G23-64p Fast Prototyping Board 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).
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 RL78/G23-64p Fast Prototyping Board has 6 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, 5, 6, 9-11
-
2-4. Serial(UART)
The RL78/G23-64p Fast Prototyping Board 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
36
37
Connect to Micro USB port via USB-Serial Converter when J13 is open-circuit
Serial1
1
0
Serial1 cannot be used simultaneously with the SPI channel.
Serial2
35
34
-
2-5. SoftwareSerial
The RL78/G23-64p Fast Prototyping Board has 7 RX pins and 48 TX pins for SoftwareSerial.
The pins corresponding to SoftwareSerial are listed below.
RX pin
TX pin
memo
4, 6, 7, 11-13, 26
0-13, 15-25, 29-40, 42-46, 51-56
-
2-6. Wire(I2C)
The RL78/G23-64p Fast Prototyping Board has 2 wire (I2C) channels.
The pin assignments of the channels are as follows.
Channel
Data pin
Clock pin
memo
Wire
48(SDA)
47(SCL)
-
Wire1
50
49
Connected to Grove I/F.
2-7. SPI
The RL78/G23-64p 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
10
11
12
13
Serial1 cannot be used simultaneously with the SPI channel.
2-8. Interrupt
The RL78/G23-64p 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
4
-
1
6
-
2
7
-
3
11
-
4
12
-
5
13
-
6
26(SW)
-
2-9. Tone
The RL78/G23-64p Fast Prototyping Board has 6 tone output pins.
The correspondences between tone outputs and pins are as follows.
Tone output pin
memo
3, 5, 6, 9-11
-
2-10. PulseIn
The RL78/G23-64p Fast Prototyping Board has 52 pulse input pins corresponding to pulseIn().
The pins corresponding to pulseIn() are as follows.
Pulse input pin
memo
0-13, 15-26, 29-40, 43-56
-
2-11. ShiftIn
The RL78/G23-64p Fast Prototyping Board has 48 clock output pins and 52 data input pins corresponding to shiftIn().
The pins corresponding to shiftIn() are as follows.
Clock pin
Data pin
memo
0-13, 15-25, 29-40, 42-46, 51-56
0-13, 15-26, 29-40, 43-56
-
2-12. ShiftOut
The RL78/G23-64p Fast Prototyping Board has 48 clock output pins and 48 data output pins corresponding to shiftOut().
The pins corresponding to shiftOut() are as follows.
Clock pin
Data pin
memo
0-13, 15-25, 29-40, 42-46, 51-56
0-13, 15-25, 29-40, 42-46, 51-56
-
2-13. Servo
The RL78/G23-64p Fast Prototyping Board has 48 Servo output pins.
The correspondences between Servo output pins are as follows.
Servo output pin
memo
0-13, 15-25, 29-40, 42-46, 51-56
-
2-14. Stepper
The RL78/G23-64p Fast Prototyping Board has 48 Stepper output pins.
The correspondences between Stepper output pins are as follows.
Stepper output pin
memo
0-13, 15-25, 29-40, 42-46, 51-56
-
2-15. LED
The RL78/G23-64p Fast Prototyping Board has two LEDs mounted on it.
The pins connected to the LEDs are as follows.
Name
pin
memo
LED1
16
-
LED2
15
-
2-16. User Switch
The RL78/G23-64p Fast Prototyping Board has one user switch.
The pin connected to the user switch is as follows.