 |
 |
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
|
Posted: Tue Dec 07, 2004 2:32 pm |
|
|
| another wired thing is that every time I turn off the power and restart the program, onr chip (which is doing remote communication always stop working, I have to take off the crystal and plug in several time in order to get it run. if I did not trun off power, I could take the chip off and replug it in and it keeps working, I could not explain this, is this the problem of crystal or remote data transferring? |
|
 |
rwyoung
Joined: 12 Nov 2003 Posts: 563 Location: Lawrence, KS USA
|
|
Posted: Tue Dec 07, 2004 5:48 pm |
|
|
| Anonymous wrote: | | another wired thing is that every time I turn off the power and restart the program, onr chip (which is doing remote communication always stop working, I have to take off the crystal and plug in several time in order to get it run. if I did not trun off power, I could take the chip off and replug it in and it keeps working, I could not explain this, is this the problem of crystal or remote data transferring? |
Ok, stop right there. You have multiple problems here and they may or may not be related. There is a problem with your wiring, program or some combination of both.
In the program listing on page 2 of this thread, you show the WDT fuse active but I didn't see any restart_wdt() calls in the code when I scanned it. Also, are you running on 3.3V? If not then you should probably enable the NOLVP fuse.
This is very similar to a thread you had a while back where it was eventually determined that you had a hardware wiring error causing most of your problems. Yet you kept coming up with more and more software to test before you fixed the hardware problems.
STOP fooling with your software until you KNOW that your hardware is 100% OK. Check your wiring, write very simple code paying attention to the fuses you select and make very sure the hardware is funtioning as expcected at startup. _________________ Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month! |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|