完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我使用PIC32 MX470微,并尝试在帮助文件中的USAT示例。UART驱动程序使用的是和声配置器(USAT 2是静态模式)。现在我不知道哪个指针用于USAT?MHC驱动程序配置是否自动为USAT分配PIN,如果是,我在哪里找到哪个引脚被分配。或者我们必须配置哪个引脚用于USAT后,我们已经使用了从MHC的USAT驱动程序?谢谢您!
以上来自于百度翻译 以下为原文 Hi, I am using PIC32MX470 micro and trying out an USART example in help file. There USART driver is used from hARMony configurator(usart 2 is used in static mode). Now I don't know which pin is used for USART? Does MHC driver configuration automatically assign the pin for USART and if so where do I find which pins was assigned. Or do we have to configure which pin to use for USART after we have used the USART driver from MHC? Thank you! |
|
相关推荐
3个回答
|
|
嗨,检查MHC窗口,它负责管脚配置。一个位于MPLAX的MHC中央选项卡,另一个位于底部表中。
以上来自于百度翻译 以下为原文 Hi, Check MHC windows which take care of the pin configuration. One is located in MHC central tabs of MPLAB X and the other one at the bottom tabs Regards |
|
|
|
你好,我用PIN图来设置TX和RX的PPS。引脚图和引脚设置表显示,我已经分配了引脚到USAT TX和RX。然而,当我编译时,我得到下面的未声明的错误,在链接到这行之后:它抱怨OutPuthPiNoRPF3没有声明。我的SyrSyFig .h已经配置了端口B(我有一个LED),但是端口F(用于USAT RX和TX)没有在其中定义。MHC不应该在StimeSigFig.h中编写端口F配置吗?下面是StimeSigFig .h中的端口B(唯一的)。
以上来自于百度翻译 以下为原文 Hi, I used pin diagram to set the PPS for tx and rx. the pin diagram and pin setting table shows that I have assigned the pin to usart tx and rx. however when i compile i get the following undeclared error, /src/system_config/default/framework/system/ports/src/sys_ports_static.c:89:58: error: 'OUTPUT_PIN_RPF3' undeclared (first use in this function) following the link i get to this line: PLIB_PORTS_RemapOutput(PORTS_ID_0, OUTPUT_FUNC_U2TX, OUTPUT_PIN_RPF3 ); It complains about OUTPUT_PIN_RPF3 being not declared. My system_config.h has port B configured(I have a LED there) but port F(used for USART rx and tx) are not defined in it. Shouldn't MHC be writing port F configuration also in system_config.h? Below is just the port B(the only) in system_config.h. #define SYS_PORT_B_ANSEL 0xfffe #define SYS_PORT_B_TRIS 0xfffe #define SYS_PORT_B_LAT 0x0 #define SYS_PORT_B_ODC 0x0 #define SYS_PORT_B_CNPU 0x0 #define SYS_PORT_B_CNPD 0x0 #define SYS_PORT_B_CNEN 0x0 |
|
|
|
问题解决了。原因是我的引脚模拟与数字分配。
以上来自于百度翻译 以下为原文 the problem was solved. the reason is analog vs digital assignment of my pins. |
|
|
|
只有小组成员才能发言,加入小组>>
4825 浏览 9 评论
1831 浏览 8 评论
1749 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
2958 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2061 浏览 5 评论
463浏览 1评论
1111浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
365浏览 0评论
265浏览 0评论
LAN9252使用SQI通信,进行数字复位后读BYTE_TEST异常
1800浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-27 16:45 , Processed in 1.071621 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号