RL78G23 64pin Fast Prototyping Board - renesas/Arduino GitHub Wiki

RL78/G23-64p Fast Prototyping Board

Description

  • The RL78/G23-64p Fast Prototyping Board is provided with interface pins for Arduino Uno conversion.

1. pinlist

  • A pin list of the RL78/G23-64p Fast Prototyping Board is shown below.
RL78/G23 port Number Pin Name Arduino Pin Number(Digital IO) Arduino Uno I/F MCU header Grove I/F Analog IO PWM Serial Wire SPI Interrupt Tone PulseIn ShiftIn ShiftOut Servo Stepper LED User Switch
P03 IO0 0 〇 - - - - RxD1 - - - - 〇 〇 〇 〇 〇 - -
P02 IO1 1 〇 - - - - TxD1 - - - - 〇 〇 〇 〇 〇 - -
P43 IO2 2 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P42 IO3 3 〇 - - - 〇 - - - - 〇 〇 〇 〇 〇 〇 - -
P77 IO4 4 〇 - - - - - - - 0 - 〇 〇 〇 〇 〇 - -
P41 IO5 5 〇 - - - 〇 - - - - 〇 〇 〇 〇 〇 〇 - -
P31 IO6 6 〇 - - - 〇 - - - 1 〇 〇 〇 〇 〇 〇 - -
P76 IO7 7 〇 - - - - - - - 2 - 〇 〇 〇 〇 〇 - -
P73 IO8 8 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P06 IO9 9 〇 - - - 〇 - - - - 〇 〇 〇 〇 〇 〇 - -
P05 IO10 10 〇 - - - 〇 - - SS - 〇 〇 〇 〇 〇 〇 - -
P51 IO11 11 〇 - - - 〇 - - MOSI 3 〇 〇 〇 〇 〇 〇 - -
P50 IO12 12 〇 - - - - - - MISO 4 - 〇 〇 〇 〇 〇 - -
P30 IO13 13 〇 - - - - - - SCK 5 - 〇 〇 〇 〇 〇 - -
P40 - 14 - 〇 - - - - - - - - - - - - - - -
P52 - 15 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 LED2 -
P53 - 16 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 LED1 -
P54 - 17 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P55 - 18 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P70 - 19 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P71 - 20 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P72 - 21 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P74 - 22 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P75 - 23 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P121 - 24 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P122 - 25 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P137(β€»3) - 26 - 〇 - - - - - - 6 - 〇 〇 - - - - SW1
P123 - 27 - 〇 - - - - - - - - - - - - - - -
P124 - 28 - 〇 - - - - - - - - - - - - - - -
P120 - 29 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P04 - 30 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P17 - 31 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P16 - 32 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P15 - 33 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P14 - 34 - 〇 - - - RxD2 - - - - 〇 〇 〇 〇 〇 - -
P13 - 35 - 〇 - - - TxD2 - - - - 〇 〇 〇 〇 〇 - -
P12 - 36 - 〇 - - - TxD0 - - - - 〇 〇 〇 〇 〇 - -
P11 - 37 - 〇 - - - RxD0 - - - - 〇 〇 〇 〇 〇 - -
P10 - 38 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P146 - 39 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P147 - 40 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P21 - 41 - 〇 - - - - - - - - - - - - - - -
P130(β€»2) - 42 - 〇 - - - - - - - - - - 〇 〇 〇 - -
P01 - 43 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P00 - 44 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P141 - 45 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P140 - 46 - 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P60 SCL 47 〇 - - - - - SCL0 - - - 〇 〇 - - - - -
P61 SDA 48 〇 - - - - - SDA0 - - - 〇 〇 - - - - -
P62 - 49 - - 〇 - - - SCL1 - - - 〇 〇 - - - - -
P63 - 50 - - 〇 - - - SDA1 - - - 〇 〇 - - - - -
P22 A0 51 〇 - - A0 - - - - - - 〇 〇 〇 〇 〇 - -
P23 A1 52 〇 - - A1 - - - - - - 〇 〇 〇 〇 〇 - -
P24 A2 53 〇 - - A2 - - - - - - 〇 〇 〇 〇 〇 - -
P25 A3 54 〇 - - A3 - - - - - - 〇 〇 〇 〇 〇 - -
P26 A4 55 〇 - - A4 - - - - - - 〇 〇 〇 〇 〇 - -
P27 A5 56 〇 - - A5 - - - - - - 〇 〇 〇 〇 〇 - -
- EVDD(IOREF) - 〇 〇 〇 - - - - - - - - - - - - - -
- RESET - 〇 - - - - - - - - - - - - - - - -
- 3V3 - 〇 - - - - - - - - - - - - - - - -
- 5V - 〇 - - - - - - - - - - - - - - - -
- GND - 〇 〇 〇 - - - - - - - - - - - - - -
- VIN - 〇 - - - - - - - - - - - - - - - -
P20(β€»1) AREF - 〇 - - - - - - - - - - - - - - - -
  • (β€»1) External reference voltage supply pin.
  • (β€»2) Pin 42 (P130) is an output-only port, so the INPUT setting cannot be used.
  • (β€»3) Pin 26 (P137) is an input-only port, so the OUTPUT setting cannot be used.

2. Functions

  • The functions of the RL78/G23-64p Fast Prototyping Board are listed below.
No. Name Function
1 Digital IO 52 Digital input pins / 41 Digital input_pullup pins / 48 Digital output pins
2 Analog IO 6 Analog input pins
3 PWM 6 PWM output pins(β€»3)
4 Serial(UART) 3 Serial(UART) channels(β€»1)(β€»2)
5 SoftwareSerial 7 RX pins / 48 TX pins
6 Wire(I2C) 2 Wire(I2C) channels
7 SPI 1 SPI channel(β€»2)
8 Interrupt 7 Interrupt pins
9 Tone 6 Tone output pins(β€»3)
10 PulseIn 52 Pulse input pins
11 ShiftIn 48 Clock output pins / 52 Data input pins
12 ShiftOut 48 Clock output pins / 48 Data output pins
13 Servo 48 Servo output pins(β€»3)
14 Stepper 48 Stepper output pins
15 LED 2 on Board LED (pin 15 and pin 16)(β€»4)
16 User Switch 1 on Board User Switch (pin 26)(β€»5)
  • (β€»1) Serial(RxD0, TxD0) connects to a Micro-USB connector via a USB-serial converter.

  • (β€»2) Serial1 cannot be used simultaneously with the SPI channel.

  • (β€»3) PWM and Tone and Servo cannot be used simultaneously.

  • (β€»4) LED1 (pin 16) and LED2 (pin 15) are pulled up on the circuit.

  • (β€»5) User Switch (pin 26) is pulled up on the circuit.

  • Refer to the following link for reference on the various functions.

  • Arduino Reference - Arduino Reference

2-1. Digital IO

  • 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.

    1. Using pin 2 as an input.
   pinMode(2,INPUT);
   val = digitalRead(2);
    1. Using pin 3 as an input_pullup.
   pinMode(3,INPUT_PULLUP);
   val = digitalRead(3);
    1. 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.
Name pin memo
SW1 26 -
⚠️ **GitHub.com Fallback** ⚠️