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 support@ccsinfo.com

Help with setting up analog channel select bits?

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



Joined: 15 Jun 2007
Posts: 6

View user's profile Send private message

Help with setting up analog channel select bits?
PostPosted: Tue Jun 08, 2010 10:30 am     Reply with quote

Hello

How would you set up the analog channel select bits as stated below?

For example I want to use AN0-AN6 and AN11 as analog. AN7-AN10 and AN12 as digital. I am using the 18F4550.

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jun 08, 2010 12:00 pm     Reply with quote

You can't do it with that PIC. The 18F4550 only has pre-configured
combinations of analog pins available for selection. You have to pick
one of the settings shown in this section of the 18F4550.h file:
Code:
// Constants used in SETUP_ADC_PORTS() are:
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