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

adc usage

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



Joined: 04 Jun 2006
Posts: 35

View user's profile Send private message

adc usage
PostPosted: Wed Aug 09, 2006 5:11 am     Reply with quote

hi:

I want to use 5 adc input in my pic. I use pic16f877. I can use one of them.

How can i use channels continiously..
butterfly



Joined: 04 Jun 2006
Posts: 35

View user's profile Send private message

PostPosted: Wed Aug 09, 2006 5:25 am     Reply with quote

i can choose channel like that:

setup_port_a( ALL_ANALOG );
setup_adc( ADC_CLOCK_INTERNAL );
set_adc_channel( 0 );

but i can get data with;
value = Read_ADC();//

can i get data 10bit via this way or any thing i mus do?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Aug 09, 2006 11:40 am     Reply with quote

Quote:
I want to use 5 adc input in my pic

See the CCS example file, EX_DOT.c. It shows how to read two A/D
channels sequentially:
c:\program files\picc\examples\ex_dpot.c

Quote:
can i get data 10bit via this way or any thing i must do?

http://www.ccsinfo.com/forum/viewtopic.php?t=22646&highlight=device+adc
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