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

Wizard adds erroneous setup_vref() call.

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



Joined: 09 Sep 2003
Posts: 183
Location: Somewhere under water in the Great Lakes

View user's profile Send private message

Wizard adds erroneous setup_vref() call.
PostPosted: Mon Apr 05, 2010 11:30 am     Reply with quote

I generally use the wizard to create the basic set up for new parts. I did this for a project that runs on a PIC16F1937. The wizard adds a setup_vref(FALSE); at the end of the initialization. The call to setup_vref(FALSE) clears the ADCON0. If the ADC has been setup prior to this, which the wizard does, the ADC is turned off and the channel is set to 0!!

Another half day down the drain.

Lesson learned (again): Don't trust the wizard!
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