Skip to content

RL78G24 Fast Prototyping Board pin list

SuguruHarada edited this page Sep 30, 2024 · 5 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 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 LED User Switch
P03 0 0 - - - RxD1 - - - - - -
P02 1 1 - - - TxD1 - - - - - -
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 - - - - RD2 - -
P12 ~11 11 - - - RD2 - - - - RD2 - -
P11 ~12 12 - - RD2 - - - - RD2 - -
P10 ~13 13 - - RD2 - - - - 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 - - 7 - - -
P76 - 25 - - - - RxD2 - - 8 - - -
P75 - 26 - - - - - - - - - - -
P74 - 27 - - - - - - - - - - -
P73 - 28 - - - - - - - - - - - -
P72 - 29 - - - - - - - - - - - -
P71 - 30 - - - - - - - - - - -
P70 - 31 - - - - - - - - - - -
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 - - - - - - - - - - -
P141 - 48 - - - - - - - - - - -
P60 SCL 49 - - - - - SCLA0 - - - - - -
P61 SDA 50 - - - - - SDAA0 - - - - - -
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)
5 Wire(I2C) 1 Wire(I2C) channel
6 Interrupt 13 Interrupt pins
7 Tone 8 Tone output pins(※2)(※3)
8 PulseIn 53 Pulse input pins
9 ShiftIn 51 Clock output pins / 53 Data input pins
10 ShiftOut 51 Clock output pins / 51 Data output pins
11 LED 2 on Board LED (pin 21 and pin 22)(※4)
12 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.

  • 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 -
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(SDA) 49(SCL)

2-6. Interrupt

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

2-7. 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-8. 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-9. 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-10. 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-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