完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我想进入PIC24编程。我有一些经验与AVR AtMeGas。我要做的是写一个简单的程序,不断输出一个字符串通过UART,然后我想看到(如使用示波器)U1TX管脚改变,但我看到…没什么。我附上了我的程序。我可以在CKO上看到一个4MHz时钟(我的PIC24FJ64 GA2000)的PIN 10,但是U1TX引脚(引脚6)没有改变。我不关心波特率或任何东西,只是当我得到一些输出时,我可以玩寄存器,看看事情是如何变化的。让我来跑步好吗?有人把我放在我的脚上,我通常能走路;——约瑟夫
以上来自于百度翻译 以下为原文 Hi, I'm trying to get into PIC24 programming. I have some experience with AVR ATmegas. What I'm trying to do is to write a simple program that continually outputs a string through the UART and I'd then like to see (eg using an oscilloscope) the U1TX pin to change, but I see ... nothing. I have attached my program. I can see a 4MHz clock on CLKO (Pin 10 of my PIC24FJ64GA002), but the U1TX pin (Pin 6) does not change. I don't care about baud rate or anything, it's just that once I get some output, I can play around with registers and see how things change. Can anyone please help me to get this running? I usually can walk once someone has put me onto my feet ;-) Josef Attachment(s) test.zip (0.70 KB) - downloaded 28 times |
|
相关推荐
3个回答
|
|
For to Soad:这是几周前发布的,同时我已经解决了这个问题,所以请不要理会这个。我已经附加了我的版本。约瑟夫
以上来自于百度翻译 以下为原文 F'up to self: This was posted a few weeks ago and in the mean time I have been able to resolve the issue, so feel free to ignore this. I have attached my version. Josef Attachment(s) simpleUART.zip (0.60 KB) - downloaded 32 times |
|
|
|
HI,从8到16位PIC迁移的主要技巧是,大多数16位都有可编程的引脚,需要额外初始化。
以上来自于百度翻译 以下为原文 Hi, The main tricky thing when migrating from 8 to 16bits PICs is that most 16bits have programmable pins which need to be additionally initialized. Regards |
|
|
|
多么真实!我没有任何其他PIC芯片的经验,但编程的ATMEGAS是更容易。我最近的冒险是在我的C和我花了几乎一天,直到我意识到我需要禁用JTAG。谢谢!
以上来自于百度翻译 以下为原文 How true! I don't have experience with any of the other PIC chips, but programming the ATmegas was waaay easier. My latest adventure was into I²C and I spend almost a day until I realized that I needed to disable JTAG. Thanks! |
|
|
|
只有小组成员才能发言,加入小组>>
5162 浏览 9 评论
2000 浏览 8 评论
1928 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3172 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2226 浏览 5 评论
731浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
629浏览 0评论
527浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 02:58 , Processed in 1.215596 second(s), Total 50, Slave 43 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号