View previous topic :: View next topic |
Author |
Message |
edwardelric Guest
|
How to pass the received characters from RCREG to an array? |
Posted: Fri Sep 04, 2009 2:22 am |
|
|
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
|
|
Posted: Fri Sep 04, 2009 2:44 am |
|
|
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
|
|
Posted: Fri Sep 04, 2009 8:28 am |
|
|
thank you very much. i'll try this example first. god bless you. |
|
|
edwardelric Guest
|
|
Posted: Fri Sep 04, 2009 8:31 am |
|
|
As an additional question, actually a newbie question, what do you mean by a circular buffer?
Thanks a lot. |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
|
|
Posted: Fri Sep 04, 2009 8:37 am |
|
|
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
|
|
Posted: Fri Sep 04, 2009 8:41 am |
|
|
thanks a lot! |
|
|
|