Skip to content

RL78G24 Fast Prototyping Board pin list

SuguruHarada64 edited this page Sep 8, 2023 · 2 revisions

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 Arduino Pin Number(Digital IO) Arduino Uno I/F MCU header Grove I/F Analog IO PWM(※3)(※4) Serial Wire SPI Interrupt Tone(※3)(※4) Pulse ShiftIn/ShiftOut LED User Switch
P03 0 J2-27 - - - RXD1 - - - - - -
P02 1 J2-28 - - - TXD1 - - - - - -
P140 2 J2-32 - - - - - - 0 - - -
P17 3 J2-7 - - KB32 - - - - KB32 - -
P122 4 J1-10 - - - - - - 1 - - -
P16 5 J2-8 - - KB32 - - - 2 KB32 - -
P15 6 J2-9 - - RD2 - - - - RD2 - -
P121 7 J1-11 - - - - - - 3 - - -
P30 8 J1-32 - - - - - - - - - -
P14 9 J2-10 - - RD2 - - - - RD2 - -
P13 10 J2-11 - - RD2 - - - - RD2 - -
P12 11 J2-12 - - RD2 - - - - RD2 - -
P11 12 J2-13 - RD2 - - - - RD2 - -
P10 13 J2-14 - RD2 - - - - RD2 - -
P43 14 - J1-2 - - - - - - 4 - - -
P42 15 - J1-3 - - - - - - 5 - - -
P41 16 - J1-4 - - - - - - - - - -
P40 17 - J1-5 - - - - - - - - - -
P124 18 - - - - - - - - - - - - - -
P123 19 - - - - - - - - - - - - - -
P137 20 - J1-9 - - - - - - 6 - - SW
P62 21 - J1-19 - - - - - - - - - LED1 -
P63 22 - J1-20 - - - - - - - - - LED2 -
P31 23 - J1-21 - - - - - - - - - -
P77 24 - J1-22 - - - TXD2 - - 7 - - -
P76 25 - J1-23 - - - RXD2 - - 8 - - -
P75 26 - J1-24 - - - - - - - - -
P74 27 - J1-25 - - - - - - - - -
P73 28 - J1-26 - - - - - - - - - -
P72 29 - J1-27 - - - - - - - - - -
P71 30 - J1-28 - - - - - - - - -
P70 31 - J1-29 - - - - - - - - -
P06 32 - J1-30 - - - - - - - - - -
P05 33 - J1-31 - - - - - - - - - -
P50 34 - J2-1 - - - RXD0(※1) - - - - - -
P51 35 - J2-2 - - - TXD0(※1) - - - - - -
P52 36 - J2-3 - - - - - - 9 - - -
P53 37 - J2-4 - - - - - - 10 - - -
P54 38 - J2-5 - - - - - - 11 - - -
P55 39 - J2-6 - - - - - - 12 - - -
P146 40 - J2-15 - - - - - - - - - -
P27 41 - J2-17 - - - - - - - - -
P26 42 - J2-18 - - - - - - - - - -
P25 43 - J2-19 - - - - - - - - - -
P24 44 - J2-20 - - - - - - - - - -
P21 45 - J2-23 - - - - - - - - - - - -
P130 46 - J2-25 - - - - - - - - - -
P04 47 - J2-26 - - - - - - - - - -
P141 48 - J2-31 - - - - - - - - - -
P60 49 J1-17 - - - - Wire(SCLA0) - - - - - - -
P61 50 J1-18 - - - - Wire(SDAA0) - - - - - - -
P20 51 J2-24 - 〇(※2) - - - - - - - - - -
P147 52 J2-16 - A0 - - - - - - - -
P23 53 J2-21 - A1 - - - - - - - -
P22 54 J2-22 - A2 - - - - - - - -
P01 55 J2-29 - A3 - - - - - - - -
P00 56 J2-30 - A4 - - - - - - - -
P120 57 J1-1 - A5 - - - - - - - -
- IOREF - - - - - - - - - - - - -
RESET RESET J1-6 - - - - - - - - - - - -
- 3V3 - - - - - - - - - - - - -
VDD 5V J1-15 - - - - - - - - - - -
GND GND J1-13 - - - - - - - - - - -
- VIN - - - - - - - - - - - - -
- EVSS - J1-14 - - - - - - - - - - - -
- EVDD - J1-16 - - - - - - - - - - - -
  • (※1) Connection to USB-serial converter
  • (※2) Connection to Grove connector
  • (※3) Simultaneous use of PWM/Tone is not allowed between pins using Timer RD2
  • (※4) Simultaneous use of PWM/Tone is not allowed between pins using Timer KB32

2. Functions

  • The functions of the RL78/G24 Fast Prototyping Board are listed below.
No. Name Function
1 Digital IO 52 Digital Input/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)
5 Wire(I2C) 1 Wire(I2C) channels
6 SPI No SPI channels
7 Interrupt 13 Interrupt pins
8 Tone 8 Tone Output pins(※2)(※3)
9 Pulse 50 Pulse Input pins
10 ShiftIn/ShitOut 50(25pair) shiftIn/ShiftOut pins
11 LED 2 on Board LED (pin 21 and pin 22)
12 User Switch 1 on Board User Switch (pin 20)
  • (※1) One serial channel (Serial) 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.

  • 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 52 digital inputs and outputs.
  • In order to use digital I/O, it is necessary to first configure pin direction settings using pinMode().

    1. Using pin3 as an input.
   pinMode(3,INPUT);
   val = digitalRead(3);
    1. Using pin4 as an output.
   pinMode(4,OUTPUT);
   digitailWrite(4,HIGH);
  • The pins corresponding to digital I/O are as follows.

    Digital pin memo
    0-17,20-44,46-48,52-57 -

2-2. Analog IO(Analog Input)

  • The RL78/G24 Fast Prototyping Board has six analog inputs and outputs.
  • 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.

  • Use A0 pin
val =analogRead(A0);
  • The pins corresponding to analog input are as follows.
analog input pin memo
A0 -
A1 -
A2 -
A3 -
A4 -
A5 -

2-3. PWM

  • The RL78/G24 Fast Prototyping Board has eight 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 -
10 -
11 -
12 -
13 -

2-4. Serial(UART)

  • The RL78/G24 Fast Prototyping Board has three serial (UART) channels.
  • A serial channel (Serial) is connected to a Micro-USB connector via a USB-serial converter.
  • 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 channel.
Serial2 24 25 -

2-5. Wire(I2C)

  • The RL78/G24 Fast Prototyping Board has one wire (I2C) channel.
  • The pin assignments of the channels are as follows.
Channel Data pin Clock pin memo
Wire 50 49

2-6. SPI

  • The RL78/G24 Fast Prototyping Board has no SPI channel.
  • The pin assignment of the channel is as follows.
annel Chip Select pin Data out pin Data in pin Clock pin memo

2-7. Interrupt

  • Three channels have seven external thirteen 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 -

2-8. Tone

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

2-9. Pulse

  • The RL78/G24 Fast Prototyping Board has fifty pulse input/output pins.
  • The correspondences between pulse inputs/outputs and pins are as follows.
Pulse input/output pin memo
0-17,20,23-44,46-48,52-57 -

2-10. ShiftIn/ShiftOut

  • The RL78/G24 Fast Prototyping Board has 52 shift input/output pins (26 pairs).
  • The correspondences between shift inputs/outputs and pins are as follows.
Clock pin Data pin memo
0-17,20-44,46-48,52-57 0-17,20-44,46-48,52-57

2-11. 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-12. 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 -
Clone this wiki locally