Skip to content

RL78G15 Fast Prototyping Board pin list

Mikiya Kobayashi edited this page Mar 18, 2024 · 4 revisions

RL78/G15 Fast Prototyping Board

Description

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

1. pinlist

  • 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 Grove I/F Analog IO PWM Serial Wire SPI Interrupt Tone Pulse ShiftIn/ShiftOut LED User Switch
P04 IO0 0 - - - RXD1 - - 0 - -
P03 IO1 1 - - - TXD1 - - - - - - -
P137 IO2 2 - - - - - - 1 - - -
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 - - - - SCL0 - - - - - - -
P07 SDA 19 - - - - SDA0 - - - - - - -
- - IOREF - - - - - - - - - - - -
RESET - RESET - - - - - - - - - - - -
- - 3V3 - - - - - - - - - - - -
- - 5V - - - - - - - - - - - -
GND - GND - - - - - - - - - - - -

2. Functions

  • The functions of the RL78/G15 Fast Prototyping Board are listed below.
No. Name Function
1 Digital IO 10 Digital Input/output pins
2 Analog IO 3 Analog Input pins
3 PWM 1 PWM Output pins
4 Serial(UART) 1 Serial(UART) channels(※1)
5 Wire(I2C) 1 Wire(I2C) channels
6 Interrupt 3 Interrupt pins
7 Tone 3 Tone Output pins
8 Pulse 3 Pulse Input/Output pins
9 ShiftIn/ShitOut 10(5pair) shiftIn/ShiftOut pins
10 LED 2 on Board LED (pin 7 and pin 4)
11 User Switch 1 on Board User Switch (pin 2)
  • (※1) One serial channel (Serial) connects to a Micro-USB connector via a USB-serial converter.
  • Refer to the following link for reference on the various functions.
  • Arduino Reference - Arduino Reference

2-1. Digital IO

  • The RL78/G15 Fast Prototyping Board has 10 digital inputs and outputs.
  • In order to use digital I/O, it is necessary to first configure pin direction settings using

    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-4, 7, 13-16

2-2. Analog IO(Analog Input)

  • The RL78/G15 Fast Prototyping Board has three 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 -

2-3. PWM

  • The RL78/G15 Fast Prototyping Board has one 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 analogWritePinFrequency() 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 -

2-4. Serial(UART)

  • The RL78/G15 Fast Prototyping Board has one serial (UART) channel.
  • 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
Serial1 1 0 Serial1 cannot be used simultaneously with the SPI channel.

2-5. Wire(I2C)

  • The RL78/G15 Fast Prototyping Board has one wire (I2C) channel.
  • 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 19 18 -

2-6. Interrupt

  • Three channels have three external interrupt pins.
  • The correspondences between external interrupt numbers and pins are as follows.
Interrupt No. Interrupt pin memo
0 0 -
1 2 -
2 3 -

2-7. Tone

  • The RL78/G15 Fast Prototyping Board has three tone output pins.
  • The correspondences between tone outputs and pins are as follows.
Tone output pin memo
0 -
3 -
13 -

2-8. Pulse

  • The RL78/G15 Fast Prototyping Board has three pulse input/output pins.
  • The correspondences between pulse inputs/outputs and pins are as follows.
Pulse input/output pin memo
0 -
3 -
13 -

2-9. ShiftIn/ShiftOut

  • The RL78/G15 Fast Prototyping Board has 10 shift input/output pins (5 pairs).
  • The correspondences between shift inputs/outputs and pins are as follows.
Clock pin Data pin memo
0-4, 7, 13-16 0-4, 7, 13-16

2-10. LED

  • 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 -

2-11. User Switch

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