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

PIC16F876A how to send value to RAM?

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



Joined: 24 Feb 2007
Posts: 7

View user's profile Send private message

PIC16F876A how to send value to RAM?
PostPosted: Wed Mar 07, 2007 2:23 am     Reply with quote

Hello!

I would like to use a PIC16F876A. A signal will enter in an analogic pin. Then I'll make an A/D conversion on 8 bits and stock 128 values in the RAM. I want to stock them as CHAR and not as floating point to save space in the RAM memory (the RAM of this PIC is 368).
Which function do I have to use?
Do you know where I can find an example of such a code?
Thank you
Vinch



Joined: 24 Feb 2007
Posts: 7

View user's profile Send private message

PostPosted: Wed Mar 07, 2007 3:21 am     Reply with quote

I have found this function in the FAQ:
for(i=0;i<15;i++)
Write_Bank(1,i,getc());
for(i=0;i<=15;i++)
PUTC(Read_Bank(1,i));

I suppose I have to use it.

But I have anothor question: for my A/D conversion, I would like to that every 250�s. How do I have to setup my adc clock?

Thank you
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