Skip to content

RL78G23 128pin Fast Prototyping Board

SuguruHarada64 edited this page Jun 28, 2024 · 1 revision

RL78/G23-128p Fast Prototyping Board

Description

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

1. pinlist

  • A pin list of the RL78/G23-128p Fast Prototyping Board is shown below.
RL78/G23-128p port Number Pin Name Arduino Pin Number(Digital IO) Arduino Uno I/F MCU header Pmod I/F Grove I/F Analog IO PWM(※5)(※6) Serial(※3) Wire SPI(※3) Interrupt Tone(※5)(※7) Pulse ShiftIn/ShiftOut Servo(※6)(※7) Stepper LED User Switch
P33 IO0 0 - - - - - RxDA1 - - - - - -
P34 IO1 1 - - - - - TxDA1 - - - - - -
P145 IO2 2 - - - - TAU0 - - - - - -
P106 IO3 3 - - - - TAU1 - - - - - -
P105 IO4 4 - - - - TAU1 - - - - - -
P104 IO5 5 - - - - TAU1 - - - - - -
P103 IO6 6 - - - - TAU1 - - - - - -
P46 IO7 7 - - - - TAU0 - - - 0 - -
P42 IO8 8 - - - - TAU0 - - - - - -
P31 IO9 9 - - - - TAU0 - - - 1 - -
P64 IO10 10 - - - - - (※4) - - - - - -
P65 IO11 11 - - - - TAU1 - - - - - -
P66 IO12 12 - - - - TAU1 - - - - - -
P67 IO13 13 - - - - TAU1 - - - - - -
P144 IO14 14 - - - - TxD3 - MOSI - - - -
P143 IO15 15 - - - - RxD3 - MISO - - - -
P02 IO16 16 - - - - TxD1 - - - - - -
P03 IO17 17 - - - - RxD1 - - - - - -
P13 IO18 18 - - - - TxD2 - - - - - -
P14 IO19 19 - - - - RxD2 - - - - - -
P61 IO20(SDA) 20 - - - - - SDAA0 - - - - - - - - -
P60 IO21(SCL) 21 - - - - - SCLA0 - - - - - - - - -
P40 IO22 22 - - - - - - - - - - - - - - - -
P80 IO23 23 - - - - - - - - - - - -
P05 IO24 24 - - - - - - - - - - - - - - - -
P81 IO25 25 - - - - - - - - - - - -
P82 IO26 26 - - - - - - - - - - - -
P85 IO27 27 - - - - - - - - - - - -
P86 IO28 28 - - - - - - - - - - - -
P87 IO29 29 - - - - - - - - - - - -
P30 IO30 30 - - - - - - - - - - - - - - - -
P50 IO31 31 - - - - - - - - - - LED1 -
P51 IO32 32 - - - - - - - - - - LED2 -
P52 IO33 33 - - - - - - - - - - - -
P53 IO34 34 - - - - - - - - - - - -
P54 IO35 35 - - - - - - - - - - - -
P55 IO36 36 - - - - - - - - - - - -
P56 IO37 37 - - - - - - - - - - - -
P57 IO38 38 - - - - - - - - - - - -
P17 IO39 39 - - - - - - - - - - - -
P12 IO40 40 - - - - - TxD0※1 - - - - - -
P11 IO41 41 - - - - - RxD0(※1) - - - - - -
P10 IO42 42 - - - - - - - - - - - -
P90 IO43 43 - - - - - - - - - - - -
P91 IO44 44 - - - - - - - - - - - -
P92 IO45 45 - - - - - - - - - - - -
P93 IO46 46 - - - - - - - - - - - -
P94 IO47 47 - - - - - - - - - - - -
P97 IO48 48 - - - - - - - - - - - -
P112 IO49 49 - - - - - - - - - - - -
P113 IO50 50 - - - - - - - - - - - -
P114 IO51 51 - - - - - - - - - - - -
P101 IO52 52 - - - - - - - - - - - -
P111 IO53 53 - - - - - - - - - - - -
P146 IO54 54 - - - - - - - - - - - -
P23 IO55 55 - - - - - - - - - - - -
P22 IO56 56 - - - - - - - - - - - -
P21 IO57 57 - - - - - - - - - - - - - - - -
P130 IO58(※8) 58 - - - - - - - - - - - - -
P102 IO59 59 - - - - - - - - - - - -
P06 IO60 60 - - - - - - - - - - - - - - - -
P137 IO61(※9) 61 - - - - - - - - 2 - - - - SW1
P70 IO62 62 - - - - - - - - - - - -
P71 IO63 63 - - - - - - - - - - - -
P72 IO64 64 - - - - - - - - - - - -
P73 IO65 65 - - - - - - - - - - - -
P74 IO66 66 - - - - - - - - 3 - - -
P75 IO67 67 - - - - - - - - 4 - - -
P76 IO68 68 - - - - - - - - 5 - - -
P77 IO69 69 - - - - - - - - 6 - - -
P121 IO70 70 - - - - - - - - - - - -
P122 IO71 71 - - - - - - - - - - - -
P123 IO72 72 - - - - - - - - - - - - - - - -
P124 IO73 73 - - - - - - - - - - - - - - - -
P125 IO74 74 - - - - - - - - - - - -
P126 IO75 75 - - - - - - - - - - - -
P127 IO76 76 - - - - - - - - - - - -
P41 IO77 77 - - - - - - - - - - - -
P45 IO78 78 - - - - - - - - - - - -
P32 IO79 79 - - - - - - - - - - - -
P35 IO80 80 - - - - - - - - - - - -
P36 IO81 81 - - - - - - - - - - - -
P37 IO82 82 - - - - - - - - - - - -
P120 IO83 83 - - - - - - - - - - - -
P01 IO84 84 - - - - - - - - - - - -
P141 IO85 85 - - - - - - - - SS - - - -
P142 IO86 86 - - - - - - - - SCK - - - -
P140 IO87 87 - - - - - - - - - 7 - - -
P00 IO88 88 - - - - - - - - - - - - -
P16 IO89 89 - - - - - - - - - 8 - - -
P62 IO90 90 - - - - - - - SCLA1 - - - - - - - - -
P63 IO91 91 - - - - - - - SDAA1 - - - - - - - - -
P47 IO92 92 - - - - - - - - - - - - -
P110 IO93 93 - - - - - - - - - - - - -
P04 IO94 94 - - - - - - - - - - - - -
P07 IO95 95 - - - - - - - - - - - - -
P15 IO96 96 - - - - - - - - - - - -
P43 IO97 97 - - - - - - - - - - - -
P44 IO98 98 - - - - - - - - - - - -
P95 IO99 99 - - - - - - - - - - - -
P96 IO100 100 - - - - - - - - - - - -
P84 IO101 101 - - - - - - - - - - - -
P83 IO102 102 - - - - - - - - - - - -
P115 A0 103 - - - A0 - - - - - - - -
P116 A1 104 - - - A1 - - - - - - - -
P117 A2 105 - - - A2 - - - - - - - -
P147 A3 106 - - - A3 - - - - - - - -
P100 A4 107 - - - A4 - - - - - - - -
P156 A5 108 - - - A5 - - - - - - - -
P155 A6 109 - - - A6 - - - - - - - -
P154 A7 110 - - - A7 - - - - - - - -
P153 A8 111 - - - A8 - - - - - - - -
P152 A9 112 - - - A9 - - - - - - - -
P151 A10 113 - - - A10 - - - - - - - -
P150 A11 114 - - - A11 - - - - - - - -
P27 A12 115 - - - A12 - - - - - - - -
P26 A13 116 - - - A13 - - - - - - - -
P25 A14 117 - - - A14 - - - - - - - -
P24 A15 118 - - - A15 - - - - - - - -
- IOREF - - - - - - - - - - - - - - - - -
- RESET - - - - - - - - - - - - - - - - -
- 3V3 - - - - - - - - - - - - - - - - -
- 5V - - - - - - - - - - - - - - - - -
- GND - - - - - - - - - - - - - - - - -
- VIN - - - - - - - - - - - - - - - - -
P20 REF - - - - 〇 (※2) - - - - - - - - - - - -
  • (※1) Connection to USB-serial converter.
  • (※2) External reference voltage supply pin.
  • (※3) The Serial4(RXD3,TXD3) channel and SPI channel cannot be used simultaneously.
  • (※4) Pin 10 cannot be used when outputting PWM from TAU1.
  • (※5) Simultaneous use of PWM/Tone between pins using the same TAU terminal is not possible.
  • (※6) If there are more than 25 pins using Servo, simultaneous use of PWM using Servo/TAU0 pins not possible.
  • (※7) If there are more than 25 pins using Servo, simultaneous use of Servo/Tone using pin 2 is not possible.
  • (※8) Pin 58 (P130) is an output-only port, so the INPUT setting cannot be used.
  • (※9) Pin 61 (P137) is an input-only port, so the OUTPUT setting cannot be used.

2. Functions

  • The functions of the RL78/G23-128p Fast Prototyping Board are listed below.
No. Name Function
1 Digital IO 107 Digital Input/output pins
2 Analog IO 16 Analog Input pins
3 PWM 11 PWM Output pins(※4)
4 Serial(UART) 5 Serial(UART) channels(※1)(※3)(※5)
5 SoftwareSerial 9 RX pins / 106 TX pins
6 Wire(I2C) 2 Wire(I2C) channels(※5)
7 SPI 1 SPI channels(※3)
8 Interrupt 9 Interrupt pins
9 Tone 12 Tone Output pins(※4)
10 Pulse 106 Pulse Input/Output pins
11 ShiftIn/ShitOut 107(53pair) shiftIn/ShiftOut pins
12 Servo 106 Servo Output pins(※4)
13 Stepper 106 Stepper Output pins
14 LED 2 on Board LED (pin 31 and pin 32)
15 User Switch 1 on Board User Switch (pin 61)
  • (※1) One serial channel (Serial) connects to a Micro-USB connector via a USB-serial converter.

  • (※2) One wire channel (Wire1) connects to a Pmod2 I/F.

  • (※3) SPI connects to a Pmod1 I/F.

  • (※4) The Serial4(RXD3,TXD3) channel and SPI channel cannot be used simultaneously.

  • (※5) Pin 10 cannot be used when outputting PWM from TAU1.

  • (※6) Simultaneous use of PWM/Tone between pins using the same TAU terminal is not possible.

  • (※7) If there are more than 25 pins using Servo, simultaneous use of PWM using Servo/TAU0 pins not possible.

  • (※8) If there are more than 25 pins using Servo, simultaneous use of Servo/Tone using pin 2 is not possible.

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

  • Arduino Reference - Arduino Reference

2-1. Digital IO

  • The RL78/G23-128p Fast Prototyping Board has 49 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-19, 23, 25-29, 31-56, 58, 59, 61-71, 74-89, 92-118

2-2. Analog IO(Analog Input)

  • The RL78/G23-128p Fast Prototyping Board has 16 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-A15 -

2-3. PWM

  • The RL78/G23-128p Fast Prototyping Board has 11 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
2-9, 11-13 -

2-4. Serial(UART)

  • The RL78/G23-128p Fast Prototyping Board has 5 serial (UART) channels.
  • A serial channel (Serial) is connected to a Micro-USB connector via a USB-serial converter.
  • The Serial4 channel and SPI channel cannot be used simultaneously.
  • The pin assignments of the channels are as follows.
Channel Transmit pin Receive pin memo
Serial 40 41 Connect to Micro USB port via USB-Serial Converter when J17 is open-circuit
Serial1 1 0 -
Serial2 18 19 -
Serial3 16 17 -
Serial4 14 15 Serial4 cannot be used simultaneously with the SPI channel.

2-4. SoftwareSerial

  • The RL78/G23-128p Fast Prototyping Board has 9 RX pins and 106 TX pins for SoftwareSerial.
  • The pins corresponding to SoftwareSerial are listed below.
RX pin TX pin memo
7, 9, 61, 66-69, 87, 89 0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118 -

2-5. Wire(I2C)

  • The RL78/G23-128p Fast Prototyping Board has two wire (I2C) channels.
  • The pin assignments of the channels are as follows.
Channel Data pin Clock pin memo
Wire 20(SDA) 21(SCL) -
Wire1 91 90 Connected to Pmod2 I/F.

2-6. SPI

  • The RL78/G23-128p Fast Prototyping Board has one SPI channel.
  • The SPI channel cannot be used simultaneously with the Serial4 channel.
  • The pin assignment of the channel is as follows.
Channel Chip Select pin Data out pin Data in pin Clock pin memo
SPI 85 14 15 86 Serial4 cannot be used simultaneously with the SPI channel.

2-7. Interrupt

  • The RL78/G23-128p Fast Prototyping Board has 9 external interrupt pins.
  • The correspondences between external interrupt numbers and pins are as follows.
Interrupt No. Interrupt pin memo
0 7 -
1 9 -
2 61(SW) -
3 66 -
4 67 -
5 68 -
6 69 -
7 87 -
8 89 -

2-8. Tone

  • The RL78/G23-128p Fast Prototyping Board has 11 tone output pins.
  • The correspondences between tone outputs and pins are as follows.
Tone output pin memo
2-13 -

2-9. Pulse

  • The RL78/G23-128p Fast Prototyping Board has 106 pulse input pins.
  • The correspondences between pulse input and pins are as follows.
Pulse input pin memo
0-19, 23, 25-29, 31-56, 59, 61-71, 74-89, 92-118 -

2-10. ShiftIn/ShiftOut

  • The RL78/G23-128p Fast Prototyping Board has 107 shift input/output pins (53 pairs).
  • The correspondences between shift inputs/outputs and pins are as follows.
Clock pin Data pin memo
0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118 0-19, 23, 25-29, 31-56, 58, 59, 61-71, 74-89, 92-118 Pin 58 cannot be used as a Data pin when ShiftIn is used, Pin 61 cannot be used as a Data pin when ShiftOut is used.

2-11. Servo

  • The RL78/G23-128p Fast Prototyping Board has 106 Servo output pins.
  • The correspondences between Servo output pins are as follows.
Servo output pin memo
0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118 -

2-12. Stepper

  • The RL78/G23-128p Fast Prototyping Board has 106 Stepper output pins.
  • The correspondences between Stepper output pins are as follows.
Stepper output pin memo
0-19, 23, 25-29, 31-56, 58, 59, 62-71, 74-89, 92-118 -

2-13. LED

  • The RL78/G23-128p Fast Prototyping Board has two LEDs mounted on it.
  • The pins connected to the LEDs are as follows.
Name pin memo
LED1 31 -
LED2 32 -

2-14. User Switch

  • The RL78/G23-128p Fast Prototyping Board has one user switch.
  • The pin connected to the user switch is as follows.
Name pin memo
SW1 61 -
Clone this wiki locally