|
|
View previous topic :: View next topic |
Author |
Message |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jul 18, 2006 5:58 pm |
|
|
I looked at the start-up code for PCM vs. 3.203, and there are two
problems with the setup for the ADCON0 and ANSEL registers.
However, your calls to setup_adc_ports() and setup_adc() quickly
fix those problems. The comparator is disabled by default upon
power-on reset, so I don't think there is any comparator problem.
Read these threads, which are about the problem of random resets:
http://www.ccsinfo.com/forum/viewtopic.php?t=25903
http://www.ccsinfo.com/forum/viewtopic.php?t=26648
http://www.ccsinfo.com/forum/viewtopic.php?t=26557
Try everything listed in those threads, including the restart_cause() test.
Make sure you have NOLVP and NOWDT in your #fuses statement.
Additional things to try:
1. Disconnect all external circuits except one (maybe an LED) and
see if you still get the problem. |
|
|
fvnktion
Joined: 27 Jun 2006 Posts: 39
|
|
Posted: Wed Jul 19, 2006 11:20 am |
|
|
solved.......
Thanks for all you help PCM. I worked with the restart_cause function and did numerous recode efforts before deciding to play with the placement of the capacitor. When soldering a .100 uf cap directly to the PIC pins on the PCB, the problem was immediately solved. Apparently the existing caps on the board were not close enough, sheesh high maintenance f88, jk.
Just want to say thanks so much, I don't know what we would all do without all of your speedy help! |
|
|
|
|
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
|