打印
[PIC®/AVR®/dsPIC®产品]

【CuriosityNano测评报告】- 1:preprogrammed with an ex...

[复制链接]
696|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
MianQi|  楼主 | 2021-5-29 10:09 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 MianQi 于 2021-5-29 10:28 编辑

按照这里“PIC18F16Q40 Curiosity Nano Hardware User Guide”第7页的说法:
The PIC18F16Q40 mounted on the Curiosity Nano Evaluation Kit is preprogrammed with an example applicationready to demonstrate some of the key features of the PIC18‑Q40 Family such as:
• 16-bit Pulse-Width Modulators (PWM)
• 12-bit Analog-to-Digital Converter with Computation (ADCC)
• UART module
• Integrated Temperature Indicator moduleTo get started with the application, find the user guide, code, and hex files for this application available online onGitHub.

猜测可能是这个示例:microchip-pic-avr-examples/pic18f16q40-cnano-demo-fw

先“Fork”下来以免丢失找不见,然后试用了一下“GitHub Desktop”,因为之前的图片一直看不见:



但用了之后发现,要知道详细的接线,还得到GitHub的页面里查:
Operation
Upon start-up in this code example, the UART module is used to display an introduction message before moving into the main application loop. After the introduction has been displayed on the serial port, the ADCC is then used to periodically measure the device temperature using the Temperature Indicator Module. The device temperature in degrees Celsius is printed using the UART module very 500ms. At any time during operation the push button labeled SW0 on the Curiosity Nano can be used to toggle LED0. Any time SW0 is pressed, the state of LED0 will change and a message will be printed via UART indicating that the button was pressed. Additionally, the PWM1 module is configured in this code example to drive pins RA4 and RA5.

将板子加电以后做了以下测试:
1、点击板子上的按键,用户LED的确是点一下亮,再点一下灭。
2、在Visual Studio Code的串口监视器中观察芯片自带的温度传感器的值:


每按一下SW0,在串口内都会显示出来:


但无论RA4还是RA5都没有看到PWM的效果:

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:所有未经解决的问题都一般大。

31

主题

387

帖子

3

粉丝