forked from arduino/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 6
RL78G15 Fast Prototyping Board pin list
SuguruHarada edited this page May 30, 2025
·
4 revisions
- A pin list of the RL78/G15 Fast Prototyping Board is shown below.
| RL78/G15 port Number | Pin Name | Arduino Pin Number(Digital IO) | Arduino Uno I/F | MCU header | Pmod I/F | Analog IO | PWM | Serial | Wire | Interrupt | Tone | PulseIn | ShiftIn | ShiftOut | LED | User Switch |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| P04 | IO0 | 0 | 〇 | 〇 | - | - | - | - | - | 0 | 〇 | - | 〇 | 〇 | - | - |
| P03 | IO1 | 1 | 〇 | 〇 | - | - | - | - | - | - | - | - | 〇 | 〇 | - | - |
| P137(※1) | IO2 | 2 | 〇 | 〇 | 〇 | - | - | - | - | 1 | - | - | 〇 | 〇 | - | SW |
| P41 | IO3 | 3 | 〇 | 〇 | 〇 | - | 〇 | - | - | 2 | 〇 | 〇 | 〇 | 〇 | - | - |
| P21 | IO4 | 4 | 〇 | 〇 | - | - | - | - | - | - | - | - | 〇 | 〇 | LED2 | - |
| P20 | IO7 | 7 | 〇 | 〇 | - | - | - | - | - | - | - | - | 〇 | 〇 | LED1 | - |
| P05 | IO13 | 13 | 〇 | 〇 | - | - | - | - | - | - | 〇 | - | 〇 | 〇 | - | - |
| P23 | A0 | 14 | 〇 | 〇 | 〇 | A0 | - | - | - | - | - | - | 〇 | 〇 | - | - |
| P22 | A1 | 15 | 〇 | 〇 | 〇 | A1 | - | - | - | - | - | - | 〇 | 〇 | - | - |
| P02 | A2 | 16 | 〇 | 〇 | 〇 | A2 | - | - | - | - | - | - | 〇 | 〇 | - | - |
| P06 | SCL | 18 | 〇 | 〇 | 〇 | - | - | - | SCLA0 | - | - | - | 〇 | 〇 | - | - |
| P07 | SDA | 19 | 〇 | 〇 | 〇 | - | - | - | SDAA0 | - | - | - | 〇 | 〇 | - | - |
| P00 | - | - | - | 〇 | - | - | - | TxD0 | - | - | - | - | - | - | - | - |
| P01 | - | - | - | 〇 | - | - | - | RxD0 | - | - | - | - | - | - | - | - |
| - | EVDD(IOREF) | - | 〇 | 〇 | 〇 | - | - | - | - | - | - | - | - | - | - | - |
| - | RESET | - | 〇 | - | - | - | - | - | - | - | - | - | - | - | - | - |
| - | 3V3 | - | 〇 | - | - | - | - | - | - | - | - | - | - | - | - | - |
| - | 5V | - | 〇 | - | - | - | - | - | - | - | - | - | - | - | - | - |
| - | GND | - | 〇 | 〇 | 〇 | - | - | - | - | - | - | - | - | - | - | - |
- (※1) Pin 2 (P137) is an input-only port, so the OUTPUT setting cannot be used.
- The functions of the RL78/G15 Fast Prototyping Board are listed below.
| No. | Name | Function |
|---|---|---|
| 1 | Digital IO | 12 Digital input pins / 11 Digital output pins |
| 2 | Analog IO | 3 Analog input pins |
| 3 | PWM | 1 PWM output pin |
| 4 | Serial(UART) | 1 Serial(UART) channel(※1) |
| 5 | Wire(I2C) | 1 Wire(I2C) channel |
| 6 | Interrupt | 3 Interrupt pins |
| 7 | Tone | 3 Tone output pins |
| 8 | PulseIn | 1 Pulse input pin |
| 9 | ShiftIn | 11 Clock output pins / 12 Data input pins |
| 10 | ShiftOut | 11 Clock output pins / 11 Data output pins |
| 11 | LED | 2 on Board LED (pin 7 and pin 4)(※2) |
| 12 | User Switch | 1 on Board User Switch (pin 2)(※3) |
-
(※1) Serial(RxD0, TxD0) connects to a Micro-USB connector via a USB-serial converter.
-
(※2) LED1 (pin 7) and LED2 (pin 4) are pulled up on the circuit.
-
(※3) User Switch (pin 2) is pulled up on the circuit.
-
Refer to the following link for reference on the various functions.
- The RL78/G15 Fast Prototyping Board has 12 Digital input pins and 11 Digital output pins.
- When using digital IO, pinMode() must first be called to set the specified pin to operate as an input or output.
-
- 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 input pin | Digital output pin | memo |
|---|---|---|
| 0-4, 7, 13-16, 18, 19 | 0, 1, 3, 4, 7, 13-16, 18, 19 | - |
- The RL78/G15 Fast Prototyping Board has 3 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.
- analogReference(INTERNAL) and analogReference(EXTERNAL) is not supported.
- Use A0 pin
val =analogRead(A0);- The pins corresponding to analog input are as follows.
| Analog input pin | memo |
|---|---|
| A0, A1, A2 | - |
- The RL78/G15 Fast Prototyping Board has 1 PWM output pin.
- 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 range of frequencies that can be set with analogWriteFrequency() is 500 Hz to 8 MHz, and analogWrite() cannot control the duty ratio in detail at high frequencies.
- The pin corresponding to PWM output are as follows.
| PWM output pin | memo |
|---|---|
| 3 | - |
- The RL78/G15 Fast Prototyping Board has 1 serial (UART) channel.
- The default transmit buffer size when using each channel is 32 bytes.
- The default receive buffer size when using each channel is 32 bytes.
- The pin assignments of the channels are as follows.
| Channel | Transmit pin | Receive pin | memo |
|---|---|---|---|
| Serial | -(P00) | -(P01) | Connect to Micro USB port via USB-Serial Converter when J14 is open-circuit |
- The RL78/G15 Fast Prototyping Board has 1 wire (I2C) channel.
- The pin assignments of the channels are as follows.
| Channel | Data pin | Clock pin | memo |
|---|---|---|---|
| Wire | 19(SDA) | 18(SCL) | - |
- The RL78/G15 Fast Prototyping Board has 3 external interrupt pins.
- The correspondences between external interrupt numbers and pins are as follows.
| Interrupt No. | Interrupt pin | memo |
|---|---|---|
| 0 | 0 | - |
| 1 | 2(SW) | - |
| 2 | 3 | - |
- The RL78/G15 Fast Prototyping Board has 3 tone output pins.
- The range of frequencies that can be set with Tone() is from 500 Hz to 65535 Hz.
- The correspondences between tone outputs and pins are as follows.
| Tone output pin | memo |
|---|---|
| 0, 3, 13 | - |
- The RL78/G15 Fast Prototyping Board has 1 pulse input pin corresponding to pulseIn().
- The default time before timeout is 65535 us and can be set from 2 us to 65535 us.
- Measurable pulse length is 1 us to 131072 us.
- Pulse measurement is not available when interrupt processing is disabled.
- The pin corresponding to pulseIn() are as follows.
| Pulse input pin | memo |
|---|---|
| 3 | - |
- The RL78/G15 Fast Prototyping Board has 11 clock output pins and 12 data input pins corresponding to shiftIn().
- The pins corresponding to shiftIn() are as follows.
| Clock pin | Data pin | memo |
|---|---|---|
| 0, 1, 3, 4, 7, 13-16, 18, 19 | 0-4, 7, 13-16, 18, 19 | - |
- The RL78/G15 Fast Prototyping Board has 11 clock output pins and 11 data output pins corresponding to shiftOut() and shiftOutEx().
- The pins corresponding to shiftOut() and shiftOutEx() are as follows.
| Clock pin | Data pin | memo |
|---|---|---|
| 0, 1, 3, 4, 7, 13-16, 18, 19 | 0, 1, 3, 4, 7, 13-16, 18, 19 | - |
- The RL78/G15 Fast Prototyping Board has two LEDs mounted on it.
- The pins connected to the LEDs are as follows.
| Name | pin | memo |
|---|---|---|
| LED1 | 7 | - |
| LED2 | 4 | - |
- The RL78/G15 Fast Prototyping Board has one user switch.
- The pin connected to the user switch is as follows.
| Name | pin | memo |
|---|---|---|
| SW | 2 | - |
