Skip to content

RL78G16 Fast Prototyping Board ピンリスト

SuguruHarada64 edited this page Jun 23, 2023 · 1 revision

RL78/G16 Fast Prototyping Board

Description

    • RL78/G16 Fast Prototyping BoardはArduino-Uno互換のインターフェースピンを持つボードである。

1. pinlist

  • RL78/G16 Fast Prototyping Boardのピンリストを以下に示す。
RL78/G16 port Number 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 SD Card Servo Motor Stepper
P04 0 J2-23 - - - SoftRXD - - 0 - - - - - - -
P03 1 J2-22 - - - SoftTXD - - - - - - - - - -
P11 2 J1-12 - - - - - - 1 - - - - - - -
P10 3 J1-11 - - - - - 2 - - - - -
P14 4 J1-15 - - - - - - 3 - - - - - - -
P16 5 J2-20 - - - - - - - - - - - - - -
P17 6 J2-21 - - - - - - - - - - -
P43 8 J1-1 - - - - - - - - - - - - - -
P21 11 J2-29 - - - - - - - - - - - - -
P20 12 J2-30 - - - - - - - - - - - - - -
P41 13 J2-32 - - - - - - - - - - - - - -
P40 14 - J1-2 - - - - - - - - - - - - - -
P137 15 - J1-4 - - - - - - 4 - - - SW2 - - -
P12 16 - J1-13 - - - - - - - - - LED1 - - - -
P13 17 - J1-14 - - - - - - 5 - - - - - - -
P15 18 - J1-16 - - - - - - - - - LED2 - - - -
P00 19 - J2-17 - - - TXD0 - - - - - - - - - -
P01 20 - J2-18 - - - RXD0 - - - - - - - - - -
P60 21 J1-9 - - - SCL0 - - - - - - - - -
P61 22 J-10 - - - SDA0 - - - - - - - - -
P05 23 J2-24 - A0 - - - - 6 - - - - - - -
- IOREF - - - - - - - - - - - - - - - -
P125 RESET J1-3 - - - - - - - - - - - - - - -
- 3V3 - - - - - - - - - - - - - - - -
VDD 5V J1-8 - - - - - - - - - - - - - -
GND GND J1-7 - - - - - - - - - - - - - -
- VIN - - - - - - - - - - - - - - - -

2. Functions

  • RL78/G16 Fast Prototyping Boardの機能一覧を以下に示す。
No. Name Function
1 Digital IO 21 Digital Input/output pins
2 Analog IO 1 Analog Input pins
3 PWM 2 PWM Output pins
4 Serial(UART) 1 Serial(UART) channels(※1)
5 Wire(I2C) 1 Wire(I2C) channels
6 Interrupt 7 Interrupt pins
7 Tone 3 Tone Output pins
8 Pulse 2 Pulse Input/Output pins
9 ShiftIn/ShitOut 10(5pair) shiftIn/ShiftOut pins
10 LED 2 on Board LED (pin 16 and pin 18)
11 User Switch 1 on Board User Switch (pin 15)

2-1. Digital IO

  • RL78/G16 Fast Prototyping Boardは29本のデジタル入出力を持つ。
  • デジタルIOを使用する場合、初めにpinMode()でピンディレクションの設定を行う必要がある。

    1. pin15を入力として使用する
   pinMode(15,INPUT);
   val = digitalRead(15);
    1. pin18を出力として使用する
   pinMode(18,OUTPUT);
   digitailWrite(18,HIGH);
  • デジタル入出力に対応するピンを以下に示す。

    Digital pin memo
    0-28

2-2. Analog IO(Analog Input)

  • RL78/G16 Fast Prototyping Boardは1本のアナログ入力ピンを持つ。
  • 入力されたアナログ信号をAD変換し結果としてデジタル値を返す。
  • アナログ入力を使用する場合analogRead()でアナログピン名を指定しデータを読み取る。

  • Use A0 pin
val =analogRead(A0);
  • アナログ入力に対応するピンを以下に示す。
analog input pin memo
A0 -

2-3. PWM

  • RL78/G16 Fast Prototyping Boardは2本のPWM出力ピンを持つ。
  • PWM出力を使用する場合analogWrite()でピン名、デューティを指定しPWM出力を行う。
  • PWM出力パルスの周波数を変更する場合はanaglogWriteFrequency()で周波数を設定した後、analogWrite()でPWM出力を行う。
  • PWM出力に対応するピンを以下に示す。
PWM output pin memo
3, 6 -

2-4. Serial(UART)

  • RL78/G16 Fast Prototyping BoardはSerial(UART)を1チャネル持つ。
  • 各チャネルのピン割り当てを以下に示す。
Channel Transmit pin Receive pin memo
Serial 19 20 Connect to Micro USB port via USB-Serial Converter.

2-5. Wire(I2C)

  • RL78/G16 Fast Prototyping BoardはWire(I2C)を1チャネル持つ。
  • 各チャネルのピン割り当てを以下に示す。
Channel Data pin Clock pin memo
Wire 21 22 -

2-6. Interrupt

  • RL78/G16 Fast Prototyping Boardは外部割込みピンを7本持つ。
  • 外部割込み番号とピンの対応を以下に示す。
Interrupt No. Interrupt pin memo
0 0 -
1 2 -
2 3 -
3 4 -
4 15 -
5 17 -
6 23 -

2-7. Tone

  • RL78/G16 Fast Prototyping Boardはtone出力ピンを3本持つ。
  • Tone出力に対応するピンを以下に示す。
Tone output pin memo
3 -
6 -
11 -

2-8. Pulse

  • RL78/G16 Fast Prototyping BoardはPulse入出力ピンを3本持つ。
  • Pulse入出力に対応するピンを以下に示す。
Pulse input/output pin memo
3 -
6 -

2-9. ShiftIn/ShiftOut

  • RL78/G16 Fast Prototyping BoardはShift入出力ピンを21本(10ペア)持つ。
  • Shift入出力に対応するピンを以下に示す。
Clock pin Data pin memo
0~6, 8, 11-23 0~6 , 8, 11-23 15pinはShiftInのData Pinでのみ使用可

2-10. LED

  • RL78/G16 Fast Prototyping Boardは2つのLEDが実装されている。
  • LEDに接続するピンを以下に示す。
Name pin memo
LED1 16 -
LED2 18 -

2-11. User Switch

  • RL78/G16 Fast Prototyping Boardは1つのユーザスイッチが実装されている。
  • ユーザスイッチに接続するピンを以下に示す。
Name pin memo
SW1 15 -
Clone this wiki locally