RL78G24 Fast Prototyping Board pin list - renesas/Arduino GitHub Wiki

RL78/G24 Fast Prototyping Board

Description

  • The RL78/G24 Fast Prototyping Board is provided with interface pins for Arduino Uno conversion.

1. pinlist

  • A pin list of the RL78/G24 Fast Prototyping Board is shown below.
RL78/G24 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
P03 0 0 〇 〇 〇 - - - RxD1 - MISO1 - - 〇 〇 〇 〇 〇 - -
P02 1 1 〇 〇 〇 - - - TxD1 - MOSI1 - - 〇 〇 〇 〇 〇 - -
P140 2 2 〇 〇 - - - - - - - 0 - 〇 〇 〇 〇 〇 - -
P17 ~3 3 〇 〇 - - - KB32 - - - - KB32 〇 〇 〇 〇 〇 - -
P122 4 4 〇 〇 - - - - - - - 1 - 〇 〇 〇 〇 〇 - -
P16 ~5 5 〇 〇 - - - KB32 - - - 2 KB32 〇 〇 〇 〇 〇 - -
P15 ~6 6 〇 〇 〇 - - RD2 - - - - RD2 〇 〇 〇 〇 〇 - -
P121 7 7 〇 〇 - - - - - - - 3 - 〇 〇 〇 〇 〇 - -
P30 8 8 〇 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P14 ~9 9 〇 〇 〇 - - RD2 - - - - RD2 〇 〇 〇 〇 〇 - -
P13 ~10 10 〇 〇 〇 - - RD2 - - SS - RD2 〇 〇 〇 〇 〇 - -
P12 ~11 11 〇 〇 - - - RD2 - - MOSI - RD2 〇 〇 〇 〇 〇 - -
P11 ~12 12 〇 〇 - 〇 - RD2 - SCL3 MISO - RD2 〇 〇 〇 〇 〇 - -
P10 ~13 13 〇 〇 - 〇 - RD2 - SDA3 SCK - RD2 〇 〇 〇 〇 〇 - -
P43 - 14 - 〇 〇 - - - - - - 4 - 〇 〇 〇 〇 〇 - -
P42 - 15 - 〇 〇 - - - - - - 5 - 〇 〇 〇 〇 〇 - -
P41 - 16 - 〇 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P40 - 17 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P124 - 18 - - - - - - - - - - - - - - - - - -
P123 - 19 - - - - - - - - - - - - - - - - - -
P137(β€»2) - 20 - 〇 - - - - - - - 6 - 〇 〇 - - - - SW
P62 - 21 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 LED1 -
P63 - 22 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 LED2 -
P31 - 23 - 〇 〇 - - - - - - - - 〇 〇 〇 〇 〇 - -
P77 - 24 - 〇 〇 - - - TxD2 - SS1 7 - 〇 〇 〇 〇 〇 - -
P76 - 25 - 〇 〇 - - - RxD2 - - 8 - 〇 〇 〇 〇 〇 - -
P75 - 26 - 〇 - 〇 - - - SCL1 - - - 〇 〇 〇 〇 〇 - -
P74 - 27 - 〇 - 〇 - - - SDA1 - - - 〇 〇 〇 〇 〇 - -
P73 - 28 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P72 - 29 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P71 - 30 - 〇 - 〇 - - - SCL2 - - - 〇 〇 〇 〇 〇 - -
P70 - 31 - 〇 - 〇 - - - SDA2 - - - 〇 〇 〇 〇 〇 - -
P06 - 32 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P05 - 33 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P50 - 34 - 〇 - - - - RxD0 - - - - 〇 〇 〇 〇 〇 - -
P51 - 35 - 〇 - - - - TxD0 - - - - 〇 〇 〇 〇 〇 - -
P52 - 36 - 〇 - - - - - - - 9 - 〇 〇 〇 〇 〇 - -
P53 - 37 - 〇 〇 - - - - - - 10 - 〇 〇 〇 〇 〇 - -
P54 - 38 - 〇 〇 - - - - - - 11 - 〇 〇 〇 〇 〇 - -
P55 - 39 - 〇 〇 - - - - - - 12 - 〇 〇 〇 〇 〇 - -
P146 - 40 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P27 - 41 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P26 - 42 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P25 - 43 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P24 - 44 - 〇 - - - - - - - - - 〇 〇 〇 〇 〇 - -
P21 - 45 - 〇 - - - - - - - - - - - - - - - -
P130(β€»3) - 46 - 〇 - - - - - - - - - - - 〇 〇 〇 - -
P04 - 47 - 〇 〇 - - - - - SCK1 - - 〇 〇 〇 〇 〇 - -
P141 - 48 - 〇 〇 - - - - - - 13 - 〇 〇 〇 〇 〇 - -
P60 SCL 49 〇 〇 - - - - - SCL - - - 〇 〇 - - - - -
P61 SDA 50 〇 〇 - - - - - SDA - - - 〇 〇 - - - - -
P20(β€»1) AREF 51 〇 〇 - - - - - - - - - - - - - - - -
P147 A0 52 〇 〇 - - A0 - - - - - - 〇 〇 〇 〇 〇 - -
P23 A1 53 〇 〇 - - A1 - - - - - - 〇 〇 〇 〇 〇 - -
P22 A2 54 〇 〇 - - A2 - - - - - - 〇 〇 〇 〇 〇 - -
P01 A3 55 〇 〇 - - A3 - - - - - - 〇 〇 〇 〇 〇 - -
P00 A4 56 〇 〇 - - A4 - - - - - - 〇 〇 〇 〇 〇 - -
P120 A5 57 〇 〇 - - A5 - - - - - - 〇 〇 〇 〇 〇 - -
- EVDD(IOREF) - 〇 〇 〇 〇 - - - - - - - - - - - - - -
- RESET - 〇 〇 - - - - - - - - - - - - - - - -
- 3V3 - 〇 - - - - - - - - - - - - - - - - -
- 5V - 〇 - - - - - - - - - - - - - - - - -
- GND - 〇 〇 〇 〇 - - - - - - - - - - - - - -
  • (β€»1) External reference voltage supply pin.
  • (β€»2) Pin 20 (P137) is an input-only port, so the OUTPUT setting cannot be used.
  • (β€»3) Pin 46 (P130) is an output-only port, so the INPUT setting cannot be used.

2. Functions

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

  • (β€»2) Simultaneous use of PWM/Tone is not allowed between pins using Timer RD2.

  • (β€»3) Simultaneous use of PWM/Tone is not allowed between pins using Timer KB32.

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

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

  • (β€»6) Serial1 and Wire3 and SPI cannot be used simultaneously.

  • (β€»7) Serial1 and SPI1 cannot be used simultaneously.

  • (β€»8) Serial2 and Wire2 cannot be used simultaneously.

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

  • Arduino Reference - Arduino Reference

2-1. Digital IO

  • The RL78/G24 Fast Prototyping Board has 53 Digital input pins and 44 Digital input_pullup pins and 51 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-17, 20-44, 47-50, 52-57 0-17, 21-40, 47, 48, 52, 55-57 0-17, 21-44, 46-48, 52-57 -

2-2. Analog IO(Analog Input)

  • The RL78/G24 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/G24 Fast Prototyping Board has 8 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-13 -

2-4. Serial(UART)

  • The RL78/G24 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 35 34 Connect to Micro USB port via USB-Serial Converter when J14 is open-circuit
Serial1 1 0 Serial1 cannot be used simultaneously with the SPI, SPI1, and Wire3 channel.
Serial2 24 25 Serial2 cannot be used simultaneously with the Wire2 channel.

2-5. SoftwareSerial

  • The RL78/G24 Fast Prototyping Board has 14 RX pins and 51 TX pins for SoftwareSerial.
  • The pins corresponding to SoftwareSerial are listed below.
RX pin TX pin memo
2, 4, 5, 7, 14, 15, 20, 24, 25, 36-39, 48 0-17, 21-44, 46-48, 52-57 -

2-6. Wire(I2C)

  • The RL78/G24 Fast Prototyping Board has 4 wire (I2C) channels.
  • The pin assignments of the channels are as follows.
Channel Data pin Clock pin memo
Wire 50(SDA) 49(SCL)
Wire1 27(SDA) 26(SCL) Wire1 cannot be used simultaneously with the Serial channel.
Wire2 30(SDA) 31(SCL) Wire2 cannot be used simultaneously with the Serial2 channel.
Wire3 12(SDA) 13(SCL) Wire3 cannot be used simultaneously with the Serial1, and SPI channel.

2-7. SPI

  • The RL78/G24 Fast Prototyping Board has 2 SPI channels.
  • 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 SPI cannot be used simultaneously with the Selial1,and Wire3 channel.
SPI1 24 1 0 47 SPI1 cannot be used simultaneously with the Selial1 channel.

2-8. Interrupt

  • The RL78/G24 Fast Prototyping Board has 14 external interrupt pins.
  • The correspondences between external interrupt numbers and pins are as follows.
Interrupt No. Interrupt pin memo
0 2 -
1 4 -
2 5 -
3 7 -
4 14 -
5 15 -
6 20(SW) -
7 24 -
8 25 -
9 36 -
10 37 -
11 38 -
12 39 -
13 48 -

2-9. Tone

  • The RL78/G24 Fast Prototyping Board has 8 tone output pins.
  • The correspondences between tone outputs and pins are as follows.
Tone output pin memo
3, 5, 6, 9-13 -

2-10. PulseIn

  • The RL78/G24 Fast Prototyping Board has 53 pulse input pins corresponding to pulseIn().
  • The pins corresponding to pulseIn() are as follows.
Pulse input pin memo
0-17, 20-44, 47-50, 52-57 -

2-11. ShiftIn

  • The RL78/G24 Fast Prototyping Board has 51 clock output pins and 53 data input pins corresponding to shiftIn().
  • The pins corresponding to shiftIn() are as follows.
Clock pin Data pin memo
0-17, 21-44, 46-48, 52-57 0-17, 20-44, 47-50, 52-57 -

2-12. ShiftOut

  • The RL78/G24 Fast Prototyping Board has 51 clock output pins and 51 data output pins corresponding to shiftOut().
  • The pins corresponding to shiftOut() are as follows.
Clock pin Data pin memo
0-17, 21-44, 46-48, 52-57 0-17, 21-44, 46-48, 52-57 -

2-13. Servo

  • The RL78/G24 Fast Prototyping Board has 51 Servo output pins.
  • The correspondences between Servo output pins are as follows.
Servo output pin memo
0-17, 21-44, 46-48, 52-57 -

2-14. Stepper

  • The RL78/G24 Fast Prototyping Board has 51 Stepper output pins.
  • The correspondences between Stepper output pins are as follows.
Stepper output pin memo
0-17, 21-44, 46-48, 52-57 -

2-15. LED

  • The RL78/G24 Fast Prototyping Board has two LEDs mounted on it.
  • The pins connected to the LEDs are as follows.
Name pin memo
LED1 21 -
LED2 22 -

2-16. User Switch

  • The RL78/G24 Fast Prototyping Board has one user switch.
  • The pin connected to the user switch is as follows.
Name pin memo
SW1 20 -
⚠️ **GitHub.com Fallback** ⚠️