打印

动手焊了个PIC最小系统,却开不起来,请高手指点。附图!

[复制链接]
4851|16
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
hzocce|  楼主 | 2010-1-23 17:46 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
原理图也有!焊接介绍也有,可为什么就是下载不了程序???为什么呢?我不知道有没有焊错,那水晶插口哪里,MPLAB 的提示是:

Programming Target...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Validating configuration fields
...Erasing Part
Verifying...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Verify Succeeded
Programming Configuration Bits
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
.. Config Memory
Verifying configuration memory...
...Verify Failed (and stopped)
ICD0161: Verify failed (MemType = Config, Address = 0xFFF, Expected Val = 0xFFF, Val Read = 0x0)
ICD0275:  Programming failed.
MPLAB ICD 2 Ready
Programming Target...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Validating configuration fields
...Erasing Part
Verifying...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Verify Succeeded
Programming Configuration Bits
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
.. Config Memory
Verifying configuration memory...
...Verify Failed (and stopped)
ICD0161: Verify failed (MemType = Config, Address = 0xFFF, Expected Val = 0xFFF, Val Read = 0x0)
ICD0275:  Programming failed.
MPLAB ICD 2 Ready
Programming Target...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Validating configuration fields
...Erasing Part
Verifying...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Verify Succeeded
Programming Configuration Bits
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
.. Config Memory
Verifying configuration memory...
...Verify Failed (and stopped)
ICD0161: Verify failed (MemType = Config, Address = 0xFFF, Expected Val = 0xFFF, Val Read = 0x0)
ICD0275:  Programming failed.
MPLAB ICD 2 Ready
Programming Target...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Validating configuration fields
...Erasing Part
Verifying...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Verify Succeeded
Programming Configuration Bits
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
.. Config Memory
Verifying configuration memory...
...Verify Failed (and stopped)
ICD0161: Verify failed (MemType = Config, Address = 0xFFF, Expected Val = 0xFFF, Val Read = 0x0)
ICD0275:  Programming failed.
MPLAB ICD 2 Ready
Programming Target...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Validating configuration fields
...Erasing Part
Verifying...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Verify Succeeded
Programming Configuration Bits
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
.. Config Memory
Verifying configuration memory...
...Verify Failed (and stopped)
ICD0161: Verify failed (MemType = Config, Address = 0xFFF, Expected Val = 0xFFF, Val Read = 0x0)
ICD0275:  Programming failed.
MPLAB ICD 2 Ready
Programming Target...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Validating configuration fields
...Erasing Part
Verifying...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
...Verify Succeeded
Programming Configuration Bits
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
.. Config Memory
Verifying configuration memory...
...Verify Failed (and stopped)
ICD0161: Verify failed (MemType = Config, Address = 0xFFF, Expected Val = 0xFFF, Val Read = 0x0)
ICD0275:  Programming failed.
MPLAB ICD 2 Ready

原理图.JPG (1.86 MB )

原理图.JPG

焊接.JPG (134.99 KB )

焊接.JPG

IMG_1465.jpg (123.49 KB )

IMG_1465.jpg

IMG_1466.jpg (87.19 KB )

IMG_1466.jpg

IMG_1467.jpg (87.2 KB )

IMG_1467.jpg

IMG_1469.jpg (99.85 KB )

IMG_1469.jpg

IMG_1470.jpg (83.52 KB )

IMG_1470.jpg

IMG_1471.jpg (84.93 KB )

IMG_1471.jpg
沙发
hzocce|  楼主 | 2010-1-23 17:50 | 只看该作者
说明下,最边边的那个灯是电源指示灯!通电后就有。在原理图中忘了添加进去!呵呵。

电路图纸有些模糊,因为有些大,在图上用鼠标点下就可以看完整的图。

小弟再此谢谢大家了!!!!!!

使用特权

评论回复
板凳
hzocce|  楼主 | 2010-1-23 17:51 | 只看该作者
就是通信不上。显示说ICD 2 找不到目标。
当然我是选择了芯片的,现在在这里问的就是大家看看我硬件搞的有没有错误,有没有焊错。

使用特权

评论回复
地板
谈的元| | 2010-1-23 19:02 | 只看该作者
5条线一一测量

      有无搞反

使用特权

评论回复
5
hzocce|  楼主 | 2010-1-23 21:07 | 只看该作者
怎么测????  说明下?

我的接线的线序就是刚才我我拍的那张照片,名叫焊接的那个。你看下,有什么什么问题。

使用特权

评论回复
6
hzocce|  楼主 | 2010-1-23 21:13 | 只看该作者
原理图有没有问题?  先帮我分析下。

1。我的那LED 是 1。8V 的压降,我量过的,所以限流电阻是取的是 681R 的电阻。
2。那个水晶头接头那里焊接是不是正确的???

使用特权

评论回复
7
谈的元| | 2010-1-23 23:15 | 只看该作者
唉,芯片是16C57吗?这个不能用ICD的约

使用特权

评论回复
8
hzocce|  楼主 | 2010-1-24 11:02 | 只看该作者
不是,芯片是 PIC16F57。

不是 16C57 。

仿真机是 MICROCHIP 官方的 MPLAB ICD 2。
先帮我看下硬件连接有没有问题。谢了

使用特权

评论回复
9
xymxym| | 2010-1-24 19:11 | 只看该作者
:D出现Warning52是最麻烦的事了!!!

1.测量目标板CPU是否有5V电压.
2.是否遵循MCLR,+,GND,RB7,RB6这个顺序.不过从你的原理图看,RB6和RB7的顺序是错了
3.ICD2与目标板单片机的这5个脚是否有断线.
4.目标板单片机坏了.
5.给ICD2重新下载程序.
6.扔掉ICD2.
:lol

使用特权

评论回复
10
su_mj000| | 2010-1-25 08:35 | 只看该作者
仔细检查PGC和PGD连线,大概接错(反)了。还有就是Vpp电压值是否对头。

使用特权

评论回复
11
徐默涵| | 2010-1-25 14:52 | 只看该作者
看你的MCLR引脚没有按照原理图那里接上拉电阻,可接个4.7-10K的上拉电阻试下。

使用特权

评论回复
12
hzocce|  楼主 | 2010-1-25 19:13 | 只看该作者
怎么接???能讲清楚点吗?

55555555555555.JPG (118.57 KB )

55555555555555.JPG

使用特权

评论回复
13
hzocce|  楼主 | 2010-1-25 19:17 | 只看该作者
引角图

芯片引角.JPG (43.53 KB )

芯片引角.JPG

使用特权

评论回复
14
56LELE| | 2010-1-25 19:45 | 只看该作者
你们不赶快创业呀,搞这些球艺。有屁用呀,我*

使用特权

评论回复
15
hzocce|  楼主 | 2010-1-25 21:48 | 只看该作者
我弄好了! 左边开始是 VPP,VCC,GND,PGD,PGC。

使用特权

评论回复
16
xymxym| | 2010-1-26 09:04 | 只看该作者
:L我从一开始就讲了你把RB6和RB7弄反了,还在那折腾那么久,不认真啊!!!

使用特权

评论回复
17
zjswuyunbo| | 2010-1-28 18:31 | 只看该作者
楼主人不错,什么时候也用下ICD2

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

127

主题

561

帖子

4

粉丝