View previous topic :: View next topic |
Author |
Message |
kamyip
Joined: 14 Oct 2003 Posts: 10
|
problem using icd2 with PCM compiler on PIC12F629 |
Posted: Thu Apr 08, 2004 4:08 am |
|
|
Hi,
I'm having problem in running ICD2 with CCS PCM v3.183 compiler for pic12F629. I'm using MPLAB 6.4 and is using the 12f657_icd module to connect to icd2 for emulation.
Each time I compiled the program and run it, it just stop!
below are my program:
#include <12f629.h>
#device ICD=TRUE
#use delay(clock=4000000,RESTART_WDT)
void main() {
while(TRUE){
}
}
would appreciate if someone out there who has experience in this to help me out. |
|
|
Ttelmah Guest
|
Re: problem using icd2 with PCM compiler on PIC12F629 |
Posted: Thu Apr 08, 2004 5:06 am |
|
|
kamyip wrote: | Hi,
I'm having problem in running ICD2 with CCS PCM v3.183 compiler for pic12F629. I'm using MPLAB 6.4 and is using the 12f657_icd module to connect to icd2 for emulation.
Each time I compiled the program and run it, it just stop!
below are my program:
#include <12f629.h>
#device ICD=TRUE
#use delay(clock=4000000,RESTART_WDT)
void main() {
while(TRUE){
}
}
would appreciate if someone out there who has experience in this to help me out. |
Since you are specifying 'RESTART_WDT' in your delay definition, you are presumably enabling the watchdog. You are not resetting the watchdog enywhere, so the program will reset when this triggers...
Best Wishes |
|
|
kamyip
Joined: 14 Oct 2003 Posts: 10
|
|
Posted: Fri Apr 09, 2004 8:32 pm |
|
|
Hi Telmah,
thanks for pointing out the mistake. After disabling the WDT and add in some #fuse parameter, the 12f629 icd2 is working now.
thank again |
|
|
|