在前面的测评中曾尝试了以Arduino IDE来进行开发,但无奈的是无法搜寻到RL78/G15的安装内容。
后来按网友地提示向官网提交了问题反馈,其提供的答复是安装最新版本的Arduino IDE。
但在另一台WIN10系统上试了一下还是一样的情况,后来又在单位的电脑上试了一次1.8.19版的软件确奇迹般地找到了RL78/G15,但在安装时确很不稳定,在装了多次后,终于是将它装上了!

图1 搜寻并完成安装

图2 完成板型设置

图3 设置工作串口

图4完成编译
在开发板上配有2个LED,其电路如图5示,所占用的引脚为P20和P21。

图5 LED电路
此外,由图5可得到其对应的引脚号为4和7,为此其测试程序及下载结果如图6所示。

图6 引脚分配

图7完成下载
在完成下载后,其运行效果如图8 和图9所示,说明开发环境正常且有效。

图8 点亮LED

图9 熄灭LED
若将程序修改为图10所示的内容,则可得到图11所示的双灯闪烁效果。

图10 双LED测试程序

图11 显示效果
在没有配置显示器件的情况下,串口是一个重要的调试工具,按图12所示来添加相应的语句即可实现串口输出的功能,其测试效果如图13所示。

图12 串口测试程序

图13 串口测试效果
除了串口通讯之外,另一个重要功能就是ADC数据采集,其测试程序见图14所示。

图14 数据采集程序
在引脚悬空的情况下,其采集结果如图15所示。

图15 数据采集效果
至此,几项基本测试就完成了,后面的工作是为开发板添加相应的外设以实现功能扩展。