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

PiC16f887a internal ADC converter.

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



Joined: 17 Oct 2005
Posts: 68
Location: Brisbane

View user's profile Send private message

PiC16f887a internal ADC converter.
PostPosted: Sat Jan 14, 2006 11:59 pm     Reply with quote

Hey guys. I'm a new user to ccs compiler.
I'm trying to decipher how the following functions are set up:
Code:
read_adc(), setup_adc(), setup_adc_ports()

could some post the actual routines(codes) for the above functions for me to help me cross check the set-ips from the data sheet.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 15, 2006 12:07 am     Reply with quote

Quote:
read_adc(), setup_adc(), setup_adc_ports()
Could some post the actual routines(codes) for the above functions

Make a test program with those functions and compile it.
Then look at the .LST file, which is in the project directory.
You'll see the ASM code used by the compiler for those functions.
kel



Joined: 17 Oct 2005
Posts: 68
Location: Brisbane

View user's profile Send private message

ADC CONVERTER
PostPosted: Sun Jan 15, 2006 12:24 am     Reply with quote

Thanks alot programmer.The reason why i'm looking specifically for the above functions is to help me figure out how they are set up in C programming so that i can be able to see if i can apply the concept to other components of the PIC IC/device.
Code:
read_adc(), setup_adc(), setup_adc_ports()

Please kindly post them...
thanks in advance..
Very Happy
cheers
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 15, 2006 2:07 am     Reply with quote

Quote:
Please kindly post them...

CCS doesn't give the C source for those functions.

Examples of analyzing the .LST file, to see what the CCS A/D functions do:
http://www.ccsinfo.com/forum/viewtopic.php?t=18262
http://www.ccsinfo.com/forum/viewtopic.php?t=22361
http://www.ccsinfo.com/forum/viewtopic.php?t=6787
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