完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好。在PIC调试时,我是非常新的。我正在尝试使用PICIT 3调试PIC12LF1840(3.3V设备)。该设备编程和运行正确,但当我尝试调试时,我得到以下错误:我使用PIC作为主机,通过I2C与一个从DSP(3.3V设备)通信。DSP的数据表要求在时钟和数据线上2K拔出。然而,皮卡3用户指南(第2.4.5节,图2-5)警告时钟线上的上拉电阻将导致调试器不工作。这就是我怀疑这个问题起源的原因。我的问题是,我怎样才能同时使用皮卡3和I2C的ICD特性呢?我希望执行的调试不限于程序的I2C部分,我目前还没有逻辑分析仪。谢谢。
以上来自于百度翻译 以下为原文 Hello, guys. I'm very new when it comes to pic debugging. I'm trying to use a PICkit 3 to debug a PIC12LF1840 (3.3V device). The device programs and runs correctly, but when I try to debug I get the following error: The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and/or PGC/PGD settings. Failed getting PC. I'm using the PIC as a master to communicate with a slave DSP (3.3V device) through I2C. The DSP's datasheet calls for a 2k pull up on the clock and data lines. However, the PICkit 3 user guide (section 2.4.5, figure 2-5) warns that a pull up resistor on the clock line will cause the debugger not to function. This is what I suspect the issue originates from. My question is, how can I use the ICD feature of the PICkit 3 and I2C at the same time? The debugging I am hoping to perform is not limited to the I2C section of the program, and I don't possess a logic analyzer at the moment. Thank you |
|
相关推荐
5个回答
|
|
调试需要对时钟和数据引脚的独占访问。您不能调试一个需要使用这些引脚的程序而不使用可选的“调试头”AC244043。不幸的是,PIC12F1840的产品页只是说:“对于调试头信息,请参阅发送给您的TDS51292”。一个通用的搜索页面,不显示关于该页眉的信息。Microchip Direct有AtTTP://www. MicroCIPDirect…CT/Staby/Auto/Ac244043,但是“更多信息”链接又将您发送到一个通用的“开发工具”页面,该页面不记录该页眉。
以上来自于百度翻译 以下为原文 Debugging requires exclusive access to the clock and data pins. You can't debug a program that needs to use those pins without using the optional "debug header" AC244043. Unfortunately the product page for the PIC12F1840 just says "For Debug Header information, please refer to DS51292" which sends you to a generic search page that does NOT show information about that header. Microchip Direct has it at http://www.microchipdirec...ct/search/all/ac244043 but again the "more info" link sends you to a generic "Development Tools" page which does NOT document that header. |
|
|
|
我懂了。对于记录,I2C数据引脚与编程/调试数据引脚不相同。共享引脚是时钟。现在,有可能用一个具有多个PGC和PGD引脚的PIC来实现这一点吗?还是所有的钟针都绑在一起了?外部时钟怎么样?非常感谢你抽出时间和我一起调查这个问题。
以上来自于百度翻译 以下为原文 I see. For the record, the I2C data pin is not the same as the programming/debugging data pin. The shared pin is the clock. Now, is it possible to do this with a PIC that has multiple PGC and PGD pins? Or are all the clock pins tied together? What about an external clock? Thank you so much for taking the time to look into this with me |
|
|
|
正如我提到的,在微芯片网站上的大多数调试头的链接只会把你送到无用的圈子中。有一点创造性的Google发现了这个文档的//W1.1.MicroChIP.COM/DeLoSt/En/DeViceDC/O0501292W.PDF.它还提到了LF版本的PIC的正确标头。AC244044是相同的PCB,只是在其上安装了不同的PIC。FIY,板上的实际设备是APIC16LF1829 ICE,因为PIC16LF1829来自PIC12LF1840的同一个家庭,只是带有额外的PIN。我没有遇到过具有PGD/PGC引脚的PIC16芯片。通常情况下,如果需要的话,它可以重新分配。当你去一个更大的PIN计数设备,那么关键功能不与ICDDAT和ICDCK共享。
以上来自于百度翻译 以下为原文 As I mentioned, most of the links on the Microchip website for the debug headers just send you in useless circles. A bit of creative Googling found this document http://ww1.microchip.com/downloads/en/devicedoc/50001292w.pdf which also mentioned that the correct header for the LF version of your PIC is the AC244044 It's the same PCB, just with a different PIC installed on it. FYI, the actual device on the board is a PIC16LF1829-ICE as the PIC16LF1829 is from the same family as the PIC12LF1840, just with extra pins. I've not come across any PIC16 chips with multiple PGD/PGC pins. Usually it's other pins than can be reallocated if necessary. When you go to a larger pin count device, then the crucial functions are not shared with ICDDAT and ICDCLK. |
|
|
|
|
|
|
|
另一个选择是用同一个(或非常相似)子芯片调试一个具有更多PIN选项的子系列,然后返回端口。当然,对于PIC12(L)F1840,有许多PIC16(L)F182X设备将符合该法案。
以上来自于百度翻译 以下为原文 Another option is to debug with a chip from the same (or very similar) sub family with more pin options and then port back. Certainly for the PIC12(L)F1840 there are a number of PIC16(L)F182x devices that will fit the bill. |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
727浏览 1评论
612浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
501浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
626浏览 0评论
524浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 07:56 , Processed in 1.187969 second(s), Total 57, Slave 50 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号