forked from arduino/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 5
RL78G23 64pin Fast Prototyping Board
SuguruHarada64 edited this page Oct 27, 2023
·
16 revisions
- A pin list of the RL78/G23-64p Fast Prototyping Board is shown below.
RL78/G23 port Number | Pin Name | 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 | IO0 | 0 | 〇 | - | A0 | - | RXD1 | - | - | - | - | 〇 | 〇 | - | - | |
P02 | IO1 | 1 | 〇 | - | A7 | - | TXD1 | - | - | - | - | 〇 | 〇 | - | - | |
P43 | IO2 | 2 | 〇 | - | - | - | - | - | - | - | - | 〇 | 〇 | - | - | |
P42 | IO3 | 3 | 〇 | - | - | 〇 | - | - | - | - | 〇 | 〇 | 〇 | - | - | |
P77 | IO4 | 4 | 〇 | - | - | - | - | - | - | 0 | - | 〇 | 〇 | - | - | |
P41 | IO5 | 5 | 〇 | - | - | 〇 | - | - | - | - | 〇 | 〇 | 〇 | - | - | |
P31 | IO6 | 6 | 〇 | - | - | 〇 | - | - | - | 1 | 〇 | 〇 | 〇 | - | - | |
P76 | IO7 | 7 | 〇 | - | - | - | - | - | - | 2 | - | 〇 | 〇 | - | - | |
P73 | IO8 | 8 | 〇 | - | - | - | - | - | - | - | - | 〇 | 〇 | - | - | |
P06 | IO9 | 9 | 〇 | - | - | 〇 | - | - | - | - | 〇 | 〇 | 〇 | - | - | |
P05 | IO10 | 10 | 〇 | - | - | 〇 | - | - | SS | - | 〇 | 〇 | 〇 | - | - | |
P51 | IO11 | 11 | 〇 | - | - | 〇 | - | - | MOSI | 3 | 〇 | 〇 | 〇 | - | - | |
P50 | IO12 | 12 | 〇 | - | - | - | - | - | MISO | 4 | - | 〇 | 〇 | - | - | |
P30 | IO13 | 13 | 〇 | - | - | - | - | - | SCK | 5 | - | 〇 | 〇 | - | - | |
P40 | - | 14 | - | 〇 | - | - | - | - | - | - | - | - | 〇 | 〇 | - | - |
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 | - | 〇 | - | - | - | - | - | - | 6 | - | 〇 | 〇 | - | 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 | SCL | 47 | 〇 | - | - | - | - | SCL0 | - | - | - | - | - | - | - | |
P61 | SDA | 48 | 〇 | - | - | - | - | SDA0 | - | - | - | - | - | - | - | |
P62 | - | 49 | - | 〇 | - | - | - | SCL1(※2) | - | - | - | - | - | - | - | |
P63 | - | 50 | - | 〇 | - | - | - | SDA1(※2) | - | - | - | - | - | - | - | |
P22 | A0 | 51 | 〇 | - | A0 | - | - | - | - | - | - | 〇 | 〇 | - | - | |
P23 | A1 | 52 | 〇 | - | A1 | - | - | - | - | - | - | 〇 | 〇 | - | - | |
P24 | A2 | 53 | 〇 | - | A2 | - | - | - | - | - | - | 〇 | 〇 | - | - | |
P25 | A3 | 54 | 〇 | - | A3 | - | - | - | - | - | - | 〇 | 〇 | - | - | |
P26 | A5 | 55 | 〇 | - | A4 | - | - | - | - | - | - | 〇 | 〇 | - | - | |
P27 | A6 | 56 | 〇 | - | A5 | - | - | - | - | - | - | 〇 | 〇 | - | - | |
- | - | IOREF | 〇 | - | - | - | - | - | - | - | - | - | - | - | - | |
RESET | - | RESET | 〇 | - | - | - | - | - | - | - | - | - | - | - | - | |
- | - | 3V3 | 〇 | - | - | - | - | - | - | - | - | - | - | - | - | |
- | - | 5V | 〇 | - | - | - | - | - | - | - | - | - | - | - | - | |
GND | - | GND | 〇 | - | - | - | - | - | - | - | - | - | - | - | - | |
- | - | VIN | 〇 | - | - | - | - | - | - | - | - | - | - | - | - | |
P20 | - | REF | 〇 | - | 〇(※3) | - | - | - | - | - | - | - | - | - | - |
- (※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.
- The functions of the RL78/G23-64p 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 | 6 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 | 7 Interrupt pins |
8 | Tone | 6 Tone Output pins |
9 | Pulse | 53 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
- The RL78/G23-64p 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().
-
- Using pin3 as an input.
pinMode(3,INPUT);
val = digitalRead(3);
-
- 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
- The RL78/G23-64p 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 | - |
- The RL78/G23-64p Fast Prototyping Board has six 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 | - |
- The RL78/G23-64p 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 when J13 is open-circuit |
Serial1 | 1 | 0 | Serial1 cannot be used simultaneously with the SPI channel. |
Serial2 | 35 | 34 | - |
- The RL78/G23-64p 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 | Connected to Grove interface. |
- The RL78/G23-64p 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.
Channel | Chip Select pin | Data out pin | Data in pin | Clock pin | memo |
---|---|---|---|---|---|
SPI | 10 | 11 | 12 | 13 | Serial1 cannot be used simultaneously with the SPI channel. |
- Three channels have seven external interrupt pins.
- The correspondences between external interrupt numbers and pins are as follows.
Interrupt No. | Interrupt pin | memo |
---|---|---|
0 | 4 | - |
1 | 6 | - |
2 | 7 | - |
3 | 11 | - |
4 | 12 | - |
5 | 13 | - |
6 | 26 | - |
- The RL78/G23-64p Fast Prototyping Board has six tone output pins.
- The correspondences between tone outputs and pins are as follows.
Tone output pin | memo |
---|---|
3 | - |
5 | - |
6 | - |
9 | - |
10 | - |
11 | - |
- The RL78/G23-64p Fast Prototyping Board has 53 pulse input/output pins.
- The correspondences between pulse inputs/outputs and pins are as follows.
Pulse input/output pin | memo |
---|---|
0-13,15-46,A0-A5 |
- The RL78/G23-64p 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 |
- The RL78/G23-64p 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 | - |
- The RL78/G23-64p Fast Prototyping Board has one user switch.
- The pin connected to the user switch is as follows.
Name | pin | memo |
---|---|---|
SW1 | 26 | - |