Skip to content

RL78G23 64pin Fast Prototyping Board

SuguruHarada64 edited this page Feb 24, 2022 · 16 revisions

RL78/G23 Fast Prototyping Board

Description

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

1. pinlist

  • A pin list of the RL78/G23 Fast Prototyping Board is shown below.
RL78/G23 port Number Arduino Pin Number(Digital IO) Arduino Uno I/F MCU header Grove I/F Analog IO PWM Serial(※4) Wire SPI(※4) Interrupt Tone Pulse ShiftIn/ShiftOut LED User Switch
P03 0 - A0 - RXD1 - - - - - - -
P02 1 - A7 - TXD1 - - - - - - -
P43 2 - - - - - - - - - - -
P42 3 - - - - - - 0 - -
P77 4 - - - - - - - - - - -
P41 5 - - - - - - - -
P31 6 - - - - - 1 - -
P76 7 - - - - - - 2 - - - -
P73 8 - - - - - - - - - - -
P06 9 - - - - - - - - -
P05 10 - - - - SS - - -
P51 11 - - - - - MOSI 3 - - - -
P50 12 - - - - - MISO 4 - - - -
P30 13 - - - - - SCK 5 - - - -
P20 14 - - 〇(※3) - - - - - - - - - -
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 26 - - - - - - - - - - - SW1
P123 27 - - - - - - - - - - - -
P124 28 - - - - - - - - - - - -
P120 29 - - A8 - - - - - - - - -
P04 30 - - - - - - - - - - - -
P17 31 - - - - - - - - - -
P16 32 - - - - - - - - -
P15 33 - - - - - - - - - - - -
P14 34 - - - - RXD2 - - - - - - -
P13 35 - - - - TXD2 - - - - - - -
P12 36 - - - - TXD0(※1) - - - - - - -
P11 37 - - - - RXD0(※1) - - - - - - -
P10 38 - - - - - - - - - - - -
P146 39 - - - - - - - - - - - -
P147 40 - - A9 - - - - - - - - -
P21 41 - - - - - - - - - - - -
P130 42 - - - - - - - - - - - -
P01 43 - - - - - - - - - - - -
P00 44 - - - - - - - - - - - -
P141 45 - - - - - - - - - - - -
P140 46 - - - - - - - - - - - -
P60 47 - - - - SCL0 - - - - - - -
P61 48 - - - - SDA0 - - - - - - -
P62 49 - - - - SCL1(※2) - - - - - - -
P63 50 - - - - SDA1(※2) - - - - - - -
P22 51 - A0 - - - - - - - - -
P23 52 - A1 - - - - - - - - -
P24 53 - A2 - - - - - - - - -
P25 54 - A3 - - - - - - - - -
P26 55 - A4 - - - - - - - - -
P27 56 - A5 - - - - - - - - -
- IOREF - - - - - - - - - - - -
RESET RESET - - - - - - - - - - - -
- 3V3 - - - - - - - - - - - -
- 5V - - - - - - - - - - - -
GND GND - - - - - - - - - - - -
- VIN - - - - - - - - - - - -
  • (※1) Connection to USB-serial converter
  • (※2) Connection to Grove connector
  • (※3) External reference voltage supply pin
  • (※4) The Serial1 (RXD1 or TXD1) channel and SPI channel cannot be used simultaneously.

2. Functions

  • The functions of the RL78/G23 Fast Prototyping Board are listed below.
No. Name Function
1 Digital IO 57 Digital Input/output pins
2 Analog IO 8 Analog Input pins
3 PWM 4 PWM Output pins
4 Serial(UART) 3 Serial(UART) channels(※1)(※3)
5 Wire(I2C) 2 Wire(I2C) channels(※2)
6 SPI 1 SPI channels(※3)
7 Interrupt 6 Interrupt pins
8 Tone 7 Tone Output pins
9 Pulse 7 Pulse Input/Output pins
10 ShiftIn/ShitOut 52(26pair) shiftIn/ShiftOut pins
11 LED 2 on Board LED (pin 15 and pin 16)
12 User Switch 1 on Board User Switch (pin 26)
  • (※1) One serial channel (Serial) connects to a Micro-USB connector via a USB-serial converter.
  • (※2) One wire channel (Wire1) connects to a Grove connector.
  • (※3) The Serial1 (RXD1 or TXD1) channel and SPI channel 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/G23 Fast Prototyping Board has 57 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-56

2-2. Analog IO(Analog Input)

  • The RL78/G23 Fast Prototyping Board has eight 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/G23 Fast Prototyping Board has four 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 anaglogPinFrequency() to set the frequency, then use analogWrite() to generate PWM output.
  • The pins corresponding to PWM output are as follows.
PWM output pin memo
4 -
5 -
10 -
32 -

2-4. Serial(UART)

  • The RL78/G23 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 Serial1 channel and SPI channel cannot be used simultaneously.
  • 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
Serial1 1 0 If use SPI channel,Serial1 can not use.
Serial2 35 34 -

2-5. Wire(I2C)

  • The RL78/G23 Fast Prototyping Board has two wire (I2C) channels.
  • The Wire1 channel is connected to the Grove interface pin.
  • The pin assignments of the channels are as follows.
Channel Data pin Clock pin memo
Wire 48 47 -
Wire1 50 49 Connect Grove I/F

2-6. SPI

  • The RL78/G23 Fast Prototyping Board has one SPI channel.
  • The SPI channel cannot be used simultaneously with the Serial1 channel.
  • The pin assignment of the channel is as follows.
annel Chip Select pin Data out pin Data in pin Clock pin memo
SPI 10 11 12 13 If use Serial1 channel,SPI can not use.

2-7. Interrupt

  • Three channels have six external interrupt pins.
  • The correspondences between external interrupt numbers and pins are as follows.
Interrupt No. Interrupt pin memo
0 3 -
1 6 -
2 7 -
3 11 -
4 12 -
5 13 -

2-8. Tone

  • The RL78/G23 Fast Prototyping Board has seven tone output pins.
  • The correspondences between tone outputs and pins are as follows.
Tone output pin memo
3 -
5 -
6 -
9 -
10 -
31 -
32 -

2-9. Pulse

  • The RL78/G23 Fast Prototyping Board has seven pulse input/output pins.
  • The correspondences between pulse inputs/outputs and pins are as follows.
Pulse output pin memo
3 -
5 -
6 -
9 -
10 -
31 -
32 -

2-10. ShiftIn/ShiftOut

  • The RL78/G23 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-13,15-46,A0-A5 0-13,15-46,A0-A5

2-11. LED

  • The RL78/G23 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-12. User Switch

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