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 [16F88]

 
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 [16F88]
PostPosted: Thu Nov 06, 2008 11:00 am     Reply with quote

1.I only use one analog input pin
2.and one output pin
3.the clock i want to set it to max. to have the highest sampling frequency
4.how to set the memory?

No4. <=the main problem i am facing....
can anyone give me the full code of A/D convertor
AND the setting of memory>.<

i really have no idea to set these......
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Nov 06, 2008 11:07 am     Reply with quote

In this thread here, you asked the same question (for the 18F4431)
and you were given two links to sample code:
http://www.ccsinfo.com/forum/viewtopic.php?t=36646


To answer your question about the 16F88, here is sample code for
using the A/D:
http://www.ccsinfo.com/forum/viewtopic.php?t=31062&start=1

We will not do your class project for you. Do not ask us to do it.
Ttelmah
Guest







PostPosted: Thu Nov 06, 2008 11:14 am     Reply with quote

The highest frequency you can run the chip, depends on your supply voltage - read the data sheet. To run at that frequency, get a crystal of this frequency...
Setting of memory?. No such thing. Within the limits of the chip (biggest bank is 96 bytes), just declare an array how large you want it. Make sure you have:
#device *=16
Up at the top of the code, just below the include for the processor definitions.
There is no memory configuation, other than just using it...
PCM has already given you good answers for everything else.

Best Wishes
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