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

How to pass the received characters from RCREG to an array?

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







How to pass the received characters from RCREG to an array?
PostPosted: Fri Sep 04, 2009 2:22 am     Reply with quote

Hello good evening!

Is there a way on how can I do this?

I want to read the incoming characters from RCREG (my PIC is 16F628A) and then I will place them in an array where they will be stored temporarily.

This is a part of my project wherein the characters that will be received will be displayed by LED matrix using a decoder like MAX6952.

Thanks. Any suggestions or snippets of code will be highly appreciated.
Ttelmah
Guest







PostPosted: Fri Sep 04, 2009 2:44 am     Reply with quote

Look at ex_SISR.c

Shows how to receive characters, and buffer them in an array. Slightly more sophisticated than a simple array, it handles the array as a 'circular' buffer.

Best Wishes
edwardelric
Guest







PostPosted: Fri Sep 04, 2009 8:28 am     Reply with quote

thank you very much. i'll try this example first. god bless you. Very Happy
edwardelric
Guest







PostPosted: Fri Sep 04, 2009 8:31 am     Reply with quote

As an additional question, actually a newbie question, what do you mean by a circular buffer?Confused

Thanks a lot.
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Fri Sep 04, 2009 8:37 am     Reply with quote

Google finds this as the first hit for circular buffer:
http://en.wikipedia.org/wiki/Circular_buffer

It has what you want to know...

Please to use Google, you can find out a lot that way.
_________________
Google and Forum Search are some of your best tools!!!!
edwardelric
Guest







PostPosted: Fri Sep 04, 2009 8:41 am     Reply with quote

thanks a lot! Very Happy
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