CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

16f88 reset problem using ADC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jul 18, 2006 5:58 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Jul 19, 2006 11:20 am     Reply with quote

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!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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