• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   2 Anonymous Users






Re: 新手:請問有關ICD2無法燒錄16F877的問題
#5
高級會員
高級會員


查看用戶資訊
把板子割一下 跳線焊一焊
應該很好解決,不過就是6個點而已

發表於: 2006/7/24 21:08
微電腦自動控制設計,產品製造
才疏學淺,若有錯誤敬請指正
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 新手:請問有關ICD2無法燒錄16F877的問題
#4
新會員
新會員


查看用戶資訊
感謝前輩指教

我已查到原因,那塊板子上的燒錄腳位與ICD2的燒錄腳位不同,所以ICD2無法連接那塊板子。










問題已解決~ 謝謝

發表於: 2006/7/24 14:03
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 新手:請問有關ICD2無法燒錄16F877的問題
#3
新會員
新會員


查看用戶資訊
謝謝 前輩指教 ,我再打電話去問新華

發表於: 2006/7/19 15:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 新手:請問有關ICD2無法燒錄16F877的問題
#2
高級會員
高級會員


查看用戶資訊
1.你要問新華他的ICD接頭跟ICD2相容嗎?
我看他的產品介紹,用的是一個RS232轉ICD的模擬板
這個介面規格是不是跟ICD2一樣我就不知道了

2.單一組合語言不用加入LKR,直接把LKR檔案REMOVE

發表於: 2006/7/19 14:58
微電腦自動控制設計,產品製造
才疏學淺,若有錯誤敬請指正
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


新手:請問有關ICD2無法燒錄16F877的問題
#1
新會員
新會員


查看用戶資訊
各位先進,前輩大家好
請問:
1.我使用ICD2連接到新華的KIT-ICD 16F87x Demo board(有插電源變壓器),想將一個跑馬燈的程式燒進16F877(這顆IC沒問題)。Select Device 也選對,MPLAB為7.4版(之前有灌7.3版,然後7.3版的USB驅動程式還在)但燒錄時出現以下訊息:

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
...Programming EEPROM Memory
...Programming Program Memory (0x0 - 0x18)
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
...Program Memory
ICD0161: Verify failed (MemType = Program, Address = 0x1, Expected Val = 0x2805, Val Read = 0x0)
ICD0275: Programming failed.

結果就是無法燒進16F877裡,之前使用7.3版時就無法燒錄了
所以想說灌個7.4版的來試也不行。我後來將16F877換上18F452也是燒不進去,請問各位前輩 該如何是好?

我的configuration bit 設定為:Oscillator=RC,Watchdog Timer=off,Power Up Timer=off,Brown Out Detect=off
Low voltage program=Disable,Flash Program Write=Eable,Data EE Read Protect=off,Code Protect=off

跑馬燈程式碼如下:
list p=16f877,R=DEC
include "p16f877.inc"

Delay1 equ 20
Delay2 equ 21

org 0x00

nop

goto MainLine

org 0x04
StopHere
goto StopHere

MainLine
call Initial
MainLoop
call Delay
call Delay
RLF PORTC,F
goto MainLoop

Initial
bsf STATUS,RP0
clrf TRISC
bcf STATUS,RP0
movlw 0x01
movwf PORTC
bcf STATUS,C
return
Delay
movlw 0xff
movwf Delay1
clrf Delay2

DelayLoop
decfsz Delay2,F
goto DelayLoop
decfsz Delay1,F
goto DelayLoop
return

end


2.
請問(我不懂組語) 裡面用的定指法"org" ,是不是Project 裡
不用加入16F877.lkr就可以Build ALL? 我試過加入877、877i結果都不行,該怎麼辦~?


Microchip新手發問

發表於: 2006/7/19 13:52
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------