完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,昨天我从8位(PIC18F1320/PIC18F252/PIC18F42)走到16位PIC24FJ64 GA02,我跟着教程眨了一个LED,它立刻工作了,但是现在我试着使用MUDI的UART模块。我有点粘在外围引脚上,如何重新映射/使用它们。我读了几个THI。NGs,就像你需要使用“包含”和“PPS。H&GT”;和……但它不编译,作为一个快速测试。我已经下载了最新的图书馆。什么是正确的程序来配置UART引脚?SOFAR只有1引脚使用在PIC24FJ64 GA02,RB0与LID。亲切问候
以上来自于百度翻译 以下为原文 Hi, yesterday i stepped over from 8 bit (pic18f1320/pic18F252/pic18f452) to the 16 bit PIC24FJ64GA002, i followed a tutorial to blink a led and it worked instantly, but now i'm trying to use the UART module for midi. i'm kinda a stuck on the peripheral pins and how to remap/use them. i read a few things, like you need to use "#include PPSUnLock; PPSInput(1,INT4,RPB4); PPSInput(3,INT2,RPA4); PPSInput(2,INT3,RPB8); PPSInput(4,INT1,RPB9); PPSLock; but it doesn't compile, as a quick test. i have downloaded the latest libraries. what is the correct procedure to configure the UART pins? sofar only 1 pin used on the pic24FJ64GA002, RB0 with a led. kind regards |
|
相关推荐
6个回答
|
|
|
首先,你应该使用配置器插件,来完成所有的PIN映射和设置。它将自动为您生成所有代码。您还可以选择UART,并设置参数。它将产生一个中断驱动的循环缓冲代码,带有一组函数。我不知道PPSInput是从哪里来的。但是相信我,代码配置器是你的朋友。
以上来自于百度翻译 以下为原文 first of all, you should use the Configurator plug in, to do all the pin mapping and setting. It will automatically generate all the code for you. You can also select the UART, and set the parameters. It will generate an interrupt driven circular buffer code, with a set of functions. I don't know where PPSInput came from. But trust me, Code Configurator is your friend. |
|
|
|
|
|
IILC,那些
以上来自于百度翻译 以下为原文 IIRC, those PPSInput(4,INT1,RPB9); macro with 3 parameters are for PIC32. PIC24 uses a 2 parameters macro |
|
|
|
|
|
THNX,我试过这个,经过几个小时和焊接之后,我就这样做了。但是作为回报,我得到了很多代码来咀嚼。
以上来自于百度翻译 以下为原文 Thnx, i tried this and after a couple of hours and soldering, i got it done this way. but in return i got lots of code in return to chew on. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
508 浏览 0 评论
5813 浏览 9 评论
2351 浏览 8 评论
2238 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3544 浏览 3 评论
1161浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1122浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
890浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
508浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-14 16:57 , Processed in 0.865630 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1287