• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::

論壇索引


Board index » All Posts (TONY4063)




ICD2 無法模擬
#11
初級會員
初級會員


版主你好,

使用 ICD2 , MPLAB V8.40 ,HI-TECH C V9.65, PIC16F677-E
按 DEBUGGER 下的 PROGRAM,出現如下訊息.

Programming Target...
...Validating configuration fields
...Erasing Part
...Programming EEPROM Memory
...Programming Program Memory (0x0 - 0x57)
...Loading DebugExecutive
...Programming DebugExecutive
...Programming Debug Vector
Verifying...
...Program Memory
...EEPROM
...Debug Executive
...Debug Vector
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
Connecting to debug executive
ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information.


我的一些設定如下,
1.__CONFIG (HS & WDTDIS & PWRTDIS & MCLREN &
BORDIS & IESODIS & FCMDIS & UNPROTECT);

2./MCLR 10K 接 VDD 3.3V

3.用 ICD2 燒錄後的板子可正常工作

4.電源也定有接

5.確定 IC 選了 PIC16F677,但出現這個訊息,
CDWarn0020: Invalid target device id (expected=0xA0,
read=0xA2)

請幫忙..謝謝..

發表於: 2009/12/21 21:13
頂部


Re: PIC16F636 燒錄後一直 reboot ?
#12
初級會員
初級會員


參照:

nicecookie 寫到:
有沒可能是PLVD被啟動的問題
開機瞬間電壓突然掉的太低,導致被重開機
可試看看把PLVD設低一點或換個POWER試看看

另外,習慣上main()裡面應該要有個while()
讓他有個迴圈可以不斷的執行
即時真的沒事做了,也該用個while(1){}
不然程式執行到哪去了,誰知道呢


是沒有針對 PLVD 作設定,
但硬體如我所說, 只接了 1 顆 ic , led及電阻,
不可能電壓被拉低.

基本上這並不是我要用的程式, 只因在使用上時,
發現好像有上述問題, 所以才故意寫了一個短程式,
也故意只讓它執行一次, 果然發現一直 reboot .

發表於: 2007/12/22 19:12
頂部


Re: PIC16F636 燒錄後一直 reboot ?
#13
初級會員
初級會員


參照:

hellowanz 寫到:
Watch Dog --> Off
再試試看。


主程式裡沒有特別針對 Watch Dog 作設定,
但在燒錄時,有將設定項目裡的 Watch Dog 選項關閉.

發表於: 2007/12/22 19:02
頂部


PIC16F636 燒錄後一直 reboot ?
#14
初級會員
初級會員


只是簡單的測試程式如下,
硬體電路只接了 VCC, GND & RC4 LED, 用內部 CLOCK.
結果 LED 不是只閃一次, 而是一直閃.
是用 LAB TOOL-48 UXP 燒錄的.
不知有那裡沒設好?

#include <PIC.h>

typedef signed int word;

#define ON 1
#define OFF 0

#define Led RC4 // LedOut
#define MASKPC 0xc0 // port C I/O config (NU)

void main ()
{
word j;

TRISC = MASKPC;
PORTC = 0;

for(j=0;j<30000;j++)
Led = ON;
for(j=0;j<30000;j++)
Led = OFF;

}

發表於: 2007/12/21 19:01
頂部


Re: 請問 hcs360 的 led out ?
#15
初級會員
初級會員


參照:

Ryang 寫到:
飛鴿是啥! 不清楚這名詞。如果是 e-mail 的話,應該是沒有收到。


登錄後左邊的選項,有個收件匣,可以用來作私秘的通訊,你可以按按看,有沒有私人信件.

發表於: 2007/11/6 14:41
頂部


Re: 請問 hcs360 的 led out ?
#16
初級會員
初級會員


Ryang 板主有收到飛鴿嗎 ?

發表於: 2007/11/6 13:52
頂部


Re: 請問 hcs360 的 led out ?
#17
初級會員
初級會員


Ryang 板主請收飛鴿.

發表於: 2007/11/5 18:00
頂部


Re: 請問 hcs360 的 led out ?
#18
初級會員
初級會員


感謝板主及先進回覆,會再次確認那一方法好.

發表於: 2007/11/5 13:53
頂部


Re: 請問 hcs360 的 led out ?
#19
初級會員
初級會員


有 coms 型的 555,看來可能符合需求!

發表於: 2007/11/2 22:56
頂部


Re: 請問 hcs360 的 led out ?
#20
初級會員
初級會員


查過了,太耗電了,而且使用電壓要在 4.5v 以上.

發表於: 2007/11/2 22:07
頂部



« 1 (2) 3 »



:::

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... ]

教育訓練中心

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