forked from arduino/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 5
RL78G24 Fast Prototyping Board pin list
SuguruHarada64 edited this page Sep 8, 2023
·
2 revisions
- 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
- 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.
- 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().
-
- 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-17,20-44,46-48,52-57 -
- 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 | - |
- 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 | - |
- 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 | - |
- 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 |
- 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 |
---|
- 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 | - |
- 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 | - |
- 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 | - |
- 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 |
- 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 | - |
- 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 | - |