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

PIC18F46K22 with 28ADC chanels

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



Joined: 04 May 2008
Posts: 260

View user's profile Send private message

PIC18F46K22 with 28ADC chanels
PostPosted: Fri Jan 21, 2011 5:28 am     Reply with quote

Hi

How I can put on compiler all 28ADC chanels of this PIC?

I only put this:
Quote:
setup_adc_ports(sAN0|sAN1|sAN2|sAN3|sAN4|sAN5|sAN6|sAN7|sAN8|sAN9|sAN10|sAN11|VSS_VDD);


if I try add sN12, sN13, etc. like on datasheet compiler give me an error...

some one have any sugestions?

best regards
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jan 21, 2011 7:21 am     Reply with quote

I don't have the compiler for your chip but...

Did you check the PIC18F46K22.h file for

setup_adc_ports(all_analogs)

or similar statement ??
Battery David



Joined: 01 Feb 2010
Posts: 25

View user's profile Send private message

PostPosted: Fri Jan 21, 2011 7:25 am     Reply with quote

I installed the newest version, 4.117, and the 18F46K22.h file has all 28 ADC options.
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