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

A/D code enquiry [PIC18F4431]

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



Joined: 05 Nov 2008
Posts: 3

View user's profile Send private message

A/D code enquiry [PIC18F4431]
PostPosted: Wed Nov 05, 2008 10:39 am     Reply with quote

I really need help, as I am the first time to use the PIC.

I have no idea how to program that PIC to perform A/D.

1.) I only need one channel for analog input signal.
2.) I need to sample the data at ~150sps.
3.) One output channel is enough.
4.) I want to use 10bits for A/D.

Can anyone help me and post the code for me so that I can have it for reference.

Thank you ~~!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 05, 2008 12:09 pm     Reply with quote

See this sample code:
http://www.ccsinfo.com/forum/viewtopic.php?t=32168
sunnylam



Joined: 05 Nov 2008
Posts: 3

View user's profile Send private message

PostPosted: Wed Nov 05, 2008 7:10 pm     Reply with quote

that is the Voltage output to the LCD.

I only need that A/D code.
anyone have such code ?

OR where can I find this source code
any website ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 05, 2008 7:36 pm     Reply with quote

That code was perfectly good.

But, you didn't like it, so here is another one:
http://www.ccsinfo.com/forum/viewtopic.php?t=29868
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