完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我的任务是创建一个PIC16F54的编程适配器板,以便芯片可以使用带有MPLAB-X IPE的ICD 3进行编程(v2.15)。芯片将被编程出电路,目前有第三方程序员。我已经检查并复查,我正在正确地将ICD 3连接到PIC。我似乎无法让芯片编程。编程说明书上说需要两个电源,一个用于VDD(5.0V),一个用于VPP(12V)。我试图用ICD 3作为VDD上的5V电源,用单独的电源(12V)为VPP供电。至于程序/验证模式,ICSPCLK和ICSPDAT通过ICD 3中的内部下拉电阻被拉低,然后VDD管脚应该从VIL到VDD,通过ICD 3的5V电源。然后VPP从VIL到VIHH使用外部12V电源。我连接了ICD 3,然后打开12V电源并尝试编程,但它总是通知我“未能编程设备”。我附上了电路布线的示意图(对不起MS Paint)。我的电路丢失了什么东西还是布线错了?在MPLAB X IPE上需要更改一些设置吗?注意:由于私有原因,我无法与您共享代码,但是PIC使用第三方硬件正确地执行了程序。
以上来自于百度翻译 以下为原文 I have been tasked with creating a programming adapter board for a PIC16F54 so the chips can be programmed using an ICD 3 with MPLAB-X IPE (v2.15). The chips will be programmed out of circuit, currently with a third party programmer. I've checked and rechecked that I am wiring the ICD 3 to the PIC correctly. I cannot seem to get the chip to program. The programming specification sheet says two power supplies are needed, one for VDD (5.0V) and one for VPP (12V). I'm trying to use the ICD 3 for the 5V supply on VDD, and a separate power supply (12V) to power VPP. As for program/verify mode, ICSPCLK and ICSPDAT are pulled low via internal pull-down resistors in the ICD 3, then the VDD pin should go from VIL to VDD, through the 5V supply from the ICD 3. Then VPP goes from VIL to VIHH using the external 12V supply. I connect the ICD 3 then turn on the 12V supply and try to program, but it always notifies me 'Failed to program device'. I've attached the schematic of how I am wiring the circuit (sorry for MS Paint). Is my circuit missing something or wired wrong? Is there some setting I need to change on MPLAB X IPE? Any help would be appreciated. Note: I am unable to share the code with you for proprietary reasons, but the PICs do program correctly with the 3rd party hardware. Attached Image(s) |
|
相关推荐
11个回答
|
|
HTTP//WW1.MICCHIP.COM/DeLoSs/En/DeVICEDC/OC0201201B.PDF-在哪里得到ICD3的引脚?不要在VPPadd上加一个从Vcc到地的去耦帽。我想你是在告诉ICD3在正确的电压下向PIC提供poer。
以上来自于百度翻译 以下为原文 http://ww1.microchip.com/downloads/en/DeviceDoc/50002011B.pdf Where did you get the pinout for an ICD3? Do not put a CAP on VPP add a decoupling cap from Vcc to ground. I assume you are telling the ICD3 to provide poer to the PIC and at the correct voltage. |
|
|
|
对于ICD 3的插销,我指的是ICD 3 RJ-11杰克输出,它显示在您发布的链接中。在Vpp上唯一的东西是+12V和4.7k的电阻连接到Vdd。我将添加一个从Vcc到接地的解耦帽。是的,ICD 3被设置为在Vdd上提供5V来给PIC供电。
以上来自于百度翻译 以下为原文 For the pinout for the ICD 3, I was referring to the ICD 3 RJ-11 Jack output which is shown in the link you posted. The CAP in my schematic is tied between Vdd and ground, not Vpp. The only thing on Vpp is the +12V and the 4.7k resistor tied to Vdd. I'll add a decoupling cap from Vcc to ground Yes, the ICD 3 is set to provide 5V on Vdd to power the PIC. |
|
|
|
我使用可变电源提供12V所需的PIC进入编程模式。ICD 3能在VPP上提供12V吗?如果是这样,我怎么才能把它设定好呢?如果不是,那么我需要保留12V电源。我的错误,我确实画了错误的插针在我的示意图,但有趣的是,我的电路是正确布线。我用的是另一个PIC电路的接线电缆,我用电缆连接电路。
以上来自于百度翻译 以下为原文 I'm using a variable power supply to provide the 12V required to put the PIC into programming mode. Can the ICD 3 provide 12V on Vpp? If so how can I set that up. If not then I need to keep the 12V supply. My mistake, I did draw the incorrect pinout on my schematic, but funny enough my circuit is wired properly. I'm using a patch cable from another PIC circuit I'm working on, and I wired my circuit based on that cable. |
|
|
|
你不提供12V编程电压(VPP)。ICD3。你唯一需要的是解耦Cap。你甚至不需要电阻器。
以上来自于百度翻译 以下为原文 You do Not supply the 12V programming Voltage (Vpp). The ICD3 does. The Only thing you need is the decoupling Cap. You do not even need the resistor. |
|
|
|
希望您没有通过连接12V电源损坏ICD3。与它串联的电容器将阻止任何直流流动,这可能已经救了你。MCLR管脚在编程周期中在0 V、5V和12V之间切换。发生这种情况的准确时间是周期的一个重要部分,所以您永远不需要将外部电源连接到MCLR。
以上来自于百度翻译 以下为原文 Hopefully you have not damaged the ICD3 by connecting that 12V supply. The capacitor in series with it will have prevented any DC flowing, which may have saved you. The MCLR pin is switched between 0V, 5V, and 12V during the programming cycle. The precise time at which this happens is a vital part of the cycle, so it is NEVER required for you to connect an external supply to MCLR. |
|
|
|
我去掉了电路,现在它只有解耦的上限。现在,当我编程时,它说程序/验证完成,但是当我在电路中测试PIC时,它不工作。我使用一个不同的ICD3,然后我可能用那个12V,一个新的PIC炸过的那个,我知道代码和测试控制工作,因为我用第三方程序编程的PIC测试它们。呃。我会错过一些ICD3的设置吗?
以上来自于百度翻译 以下为原文 I stripped the circuit so now it only has the decoupling cap. Now when I program it says program/verify complete, but when I test the PIC in circuit it doesn't work. I'm using a different ICD3 then the one I may have fried with that 12V, a new PIC, and I know the code and test control work because I tested them with a PIC programmed on the third party programmer. Could I be missing some setting with the ICD3? |
|
|
|
你用ICD3使用什么程序?你验证了第三方程序员的PIC吗?
以上来自于百度翻译 以下为原文 What program are you using with the ICD3? Did you verify the PIC in the 3rd party Programmer? |
|
|
|
我使用的是MPLAB X IPE(V3.26)。我在第三方程序员中验证了PIC。它在控制电路中编程和工作。
以上来自于百度翻译 以下为原文 I'm using MPLAB X IPE (v3.26). I verified the PIC in the 3rd party programmer. It programs and works as intended in the control circuit. |
|
|
|
我想你误解了。你说如果你用ICD3编程,PIC是没有编程的。在一个系统中编程并在另一个系统中验证。ICD3能验证在另一个系统中编程的芯片吗?
以上来自于百度翻译 以下为原文 I am assuming you misunderstood. You say if you program with the ICD3 The PIC is not programmed. Program it in one system and verify it in the other. Can the ICD3 verify a chip programmed in the other system? |
|
|
|
我误解了你的意思。PIC上的软件虽然有代码保护,但不会验证什么都不做吗?
以上来自于百度翻译 以下为原文 I did misunderstand you. The software on the PIC has code protection on though, so won't verify not do anything? |
|
|
|
你能不能(不是吗?)在这些测试中关闭代码保护?
以上来自于百度翻译 以下为原文 Can you not (would you not?) turn off the code protection during these tests? |
|
|
|
只有小组成员才能发言,加入小组>>
5140 浏览 9 评论
1988 浏览 8 评论
1917 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3159 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2215 浏览 5 评论
708浏览 1评论
598浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
480浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
609浏览 0评论
506浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-8 22:33 , Processed in 1.466219 second(s), Total 98, Slave 82 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号