Skip to content

Quick Start Guide

MikiyaKobayashi edited this page Jan 6, 2023 · 11 revisions

Installing Arduino IDE

  • https://www.arduino.cc/en/software
    • Download the version of Arduino IDE that matches the type of PC you are using.
      • The example below describes the procedure for “Windows Win 7 and newer.”
        • At the time this Quick Start Guide was created, operation had been confirmed with version “Arduino IDE 1.8.19.”

Launching Arduino IDE

  • Double-click the icon on the desktop to launch Arduino IDE.

Specifying the Board Manager File for the RL78/G23-64p Fast Prototyping Board

Using Boards Manager to Install Tools

  • Select Tools → Boards: “Arduino Uno” → Boards Manager….
      • In the text entry box to the right of Type All, enter RL78 and perform a search, then click the Install button.
  • The compiler, Arduino library for RL78/G23-64p Fast Prototyping Board, and board programming tool are downloaded and installed in Arduino IDE.

Writing a sketch to make an LED flash at 0.1-second intervals.

  • Enter the following source code into the source code editor (sketch_date tab) of Arduino IDE.
void setup() {
  // put your setup code here, to run once:
  pinMode(16,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(16,HIGH);
  delay(100);
  digitalWrite(16,LOW);
  delay(100);
}

Hardware Setup

  • Connect the PC to the RL78/G23-64p Fast Prototyping Board using a USB cable.
  • Use Device Manager to confirm which COM port number has been recognized.
    • If you don't see the COM port, open-circuit J13 and reconnect USB.
  • Configure the COM port number setting in Arduino IDE.
  • Select the board in Arduino IDE.
    • Select Tools → Boards: “Arduino Uno”→ Renesas RL78/G23 → RL78-G23 Fast Prototyping Board 64Pin.

Compiling, Uploading, and Running Sketch

  • In Arduino IDE, select Sketch → Upload to compile and upload the sketch.
  • When the upload completes, the sketch runs and the LED flashes at 0.1-second intervals.
Clone this wiki locally