1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
如何在PIC32 MZ EF SK上运行和声示例UARTHYBASIC?起动器套件有一个MCP2221与TX&RX的RB14和RG6。与初学者工具包BSP,我不能选择这些引脚的UART使用。如果我禁用BSP并在USAT驱动程序实例中选择USAT模块ID:UARTARSItiD2,那么我可以为U2TX&U2RX使用StErrB14和RG6。但是,当我编译和运行UARTHYBASIC示例时,仍然没有串行数据。USAT模块ID的区别是什么,为什么只有AuthARTIDID2允许连接SRB1414和RG6?
以上来自于百度翻译 以下为原文 How can I run the hARMony example uart_basic on a pic32MZ EF SK? The starter kit has an MCP2221 with TX & RX on RB14 & RG6. With the starter kit BSP I am not able to select these pins for uart use. If I disable the BSP and select USART Module ID: USART_ID_2 in the USART Driver Instance, then I can select RB14 & RG6 for U2TX & U2RX. However, there is still no serial data coming over when I compile and run the uart_basic example. What is the difference between the USART Module ID's and why is it only USART_ID_2 that allows RB14 & RG6 to be connected? |
|
相关推荐
4个回答
|
|
如果您查看PIC32 MZ2048 EFH144数据表下的“第12节IO端口”,在PPS(外围引脚选择)下,您将看到所有可用的MUX选项,用于连接外围设备到引脚。这是相当有限的,所以你会发现,例如,只有U2RX有一个可用的输入映射到RPG6。Similary,RPB14具有U2TX作为可用的映射,但不是U1TX。因此UARTARGIDID2是U2RX,U2TX,并且是唯一的USAT在这些特定引脚上可用。至于为什么您的示例不与包含BSP一起工作,我不确定。
以上来自于百度翻译 以下为原文 If you look at the PIC32MZ2048EFH144 datasheet under "Section 12 IO Ports", under PPS (peripheral pin select) you will see all of the available mux options for connecting peripherals to pins. It is fairly limited, so you will find for example that only U2RX has an available input mapping to RPG6. Similary, RPB14 has U2TX as an available mapping, but not U1TX. So USART_ID_2 is U2RX, U2TX and is the only usart available on those specific pins. As for why your example is not working with the include BSP, I am not sure. |
|
|
|
我有同样的问题-罐装BSP阻止您选择适当的RX和Tx引脚的演示板。所以…我只是重新创建了这个项目,没有使用BSP。或者编辑BSP从RX和TX.Hth- Steve H.需要的别针中删除其他函数。
以上来自于百度翻译 以下为原文 I had the same problem - the canned BSP prevents you from selecting the proper Rx and Tx pins for the demo board. So... I just re-created the project and did not use the BSP. Or - edit the BSP to remove the other functions from the pins you need for Rx and Tx. HTH - Steve H. |
|
|
|
谢谢您的回复。我现在了解PPS引脚。但是,我仍然无法获得UARTHYBASIC基本示例来返回/接收串行数据。如有任何帮助,我们将不胜感激。
以上来自于百度翻译 以下为原文 Thanks for the replies. I understand about PPS pins now. However, I am still unable to get the uart_basic example to return/receive serial data. Any assistance would be appreciated. |
|
|
|
HIPCADCALYLYCARCUS,USATARTHOBASICDEMO有PIC32 MZYEFSKSCONTION,请从MPLABX配置下拉选择配置并使用它。(MPLABX工具栏上的组合框在多个配置之间切换)和声帮助可在AT & lt版本& gt;/doc中使用。将帮助您了解如何运行demo.Goto节,“开始使用MPLAB HORANG.GT;应用程序帮助& GT;示例和GT;外围库示例& G.USAT外围库示例和GT;演示和GT;UARTHYBASIC”在该帮助文件中。
以上来自于百度翻译 以下为原文 Hi PICcadillyCircus, usart_basic demo has pic32mz_ef_sk configuration, please select the configuration from the MPLABX configuration drop down and use it straightaway.(The combo box on the MPLABX toolbar to switch between the multiple configurations) Harmony help available at Goto section, "Getting Started With MPLAB Harmony > Applications Help > Examples > Peripheral Library Examples > USART Peripheral Library Examples > Demonstrations > uart_basic" in that help file. |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
778浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
677浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 10:15 , Processed in 1.382154 second(s), Total 53, Slave 47 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号