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

LED Scrolling code

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



Joined: 29 Mar 2008
Posts: 26
Location: Ribeirão Preto, SP, Brasil

View user's profile Send private message Visit poster's website ICQ Number

LED Scrolling code
PostPosted: Sun Aug 03, 2008 11:27 am     Reply with quote

Hi.
I've made a search and there is a lot of threads about led matrix, but i can't find the exact solution.
I'm build a LED matrix with 10pcs of 8x8 LED MAtrix. The matrix is bicolor, so i have 24 pins from each one (common anode). I know that i must have a tale for each char. My idea is to have this table AND a table of display (8x80) and while the text is displayed, change this main table doing a shift of coluns, so the last colum (right) will be moved do left and a new colum will be inserted. But how do i do that?!

For first time, i'll use only one color, so i can use 1byte for each colum. After, i'll need to create a struct and my table will be of this struct, where each pixel would be 0, 1 or 2 (blanck, red or green).

In the hardware, i'm using Allegros A6279, wich is 16bit current-cink with LED driver up to 90mA per port. It's one chip per display (for bicolor LED's).

Well, my main problem is how do i do the text scrolling over my board :|
dyeatman



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

View user's profile Send private message

PostPosted: Sun Aug 03, 2008 11:38 am     Reply with quote

Which PIC are you using.
How is the hardware connected?
jmaurin



Joined: 29 Mar 2008
Posts: 26
Location: Ribeirão Preto, SP, Brasil

View user's profile Send private message Visit poster's website ICQ Number

PostPosted: Sun Aug 03, 2008 12:14 pm     Reply with quote

I haven't the hardware built yet, but i'll use 18F4550 and about 6 ports: 3 for columns and 3 for rows. The A6279 is serial and use only these 3 pins to drive 16 ports.

I'll build a function that will get the byte (or bit) and send through CI's.
dyeatman



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

View user's profile Send private message

PostPosted: Sun Aug 03, 2008 1:02 pm     Reply with quote

Here is a link to someone who is using serial latches similar to what you will be doing that should give you a little help.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1215096929/10
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