[PIC®/AVR®/dsPIC®产品] 【CuriosityNano测评报告】PIC18F16Q40 Curiosity Nano开箱点灯

[复制链接]
 楼主| wm20031015 发表于 2021-6-5 15:00 | 显示全部楼层 |阅读模式
      感谢microchip,感谢21IC,有机会能体验一下microchip的新产品,收到板子也有两天,趁着周末拿出来,搭个环境简单测试一下点个灯。
       先上两上板子照片,非常小巧,不但有板载的仿真器,还有一个按键和一个LED,方便对芯片进行简单的评估,附带的排针可以方便的插入板上的插孔,板上插孔位置交错,可以不需要焊接就可以把插针卡得很紧,设计非常巧妙。     
1、首先得安装开发环境,MPLAB X + MPLAB XC8
MPLAB® X IDE | Microchip Technology
MPLAB® XC Compilers | Microchip Technology

2、安装完成后,电脑连接好PIC18F16Q40 Curiosity Nano,打开MPLAB X,就会显示kit window,显示板子的资料链接,可以方便的下载。


3、新建项目,按向导一步步完成就好了,录了个视频,记录一下操作过程。


4、写个简单的点灯代码,按键切换LED的闪烁频率,有个需要注意的地方,PIC的调试时下载到芯片的程序,重新上电后会发现程序没有跑起来,参考下图,点圈起来的按键,会编译并下载程序到芯片,复位、断电都能正常跑起来。同时录了个视频,演示一下进入调试模式。







本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| wm20031015 发表于 2021-6-5 15:27 | 显示全部楼层
MPLAB X发现个bug,在仿真的时候拔掉仿真器,程序就会停止响应操作,不停的返回出错信息。

Data transmission failed. Error code -41167 returned while trying to send USB data.
Data transmission failed. Error code -41167 returned while trying to receive USB data.
Data transmission failed. Error code -41167 returned while trying to send USB data.
Data transmission failed. Error code -41167 returned while trying to receive USB data.
Data transmission failed. Error code -41167 returned while trying to send USB data.
Data transmission failed. Error code -41167 returned while trying to receive USB data.
Data transmission failed. Error code -41167 returned while trying to send USB data.
Data transmission failed. Error code -41167 returned while trying to receive USB data.
Data transmission failed. Error code -41167 returned while trying to send USB data.
Data transmission failed. Error code -41167 returned while trying to receive USB data.
Data transmission failed. Error code -41167 returned while trying to send USB data.
xinpian101 发表于 2021-6-6 22:04 | 显示全部楼层
板子是真的小巧。啊,值得入手。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

7

主题

320

帖子

6

粉丝
快速回复 在线客服 返回列表 返回顶部