Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Led Moving message code - inverting the direction

Status
Not open for further replies.

Codeman

Member level 2
Joined
Jun 11, 2001
Messages
46
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
208
moving message code

Hi,

I'm designing and programming a LED moving message panel.

I'm using shif registers of course to shift the message out.

When I scroll in the same "direction" of the shift registers (the shifts are "pushed") everything works. But I need advice to scroll in the opsite direction. I try to invert the loop, but I only get the message inverted, not the direction.

Anyone with experience in this can help me please?

Thanks in advance

Joaquim
 

led moving message

which loop ??

please give the code for reference so some one can check that
 

Re: Led Moving message code

Thanks for the awnser

Here is a sample code ( Bascom)

The Anodes of the Leds are at VCC, the cathodes to the shift registers. Not multiplexed.

Code:
  Do
  Outstring = ">>>>>>>>"
  Gosub Processoutstring    'This procedure transform the message in a bit array
  For A = 1 To Outarraycounter ' Arraycounter is the lenght of array
     Shiftout So , Ck , Outarray(a) , 2 , 8  'Shifout the bits one column at a time
     Gosub Latch  'Latch the shifted bits
     Set OE     ' Output Enable   (Turn On Leds)  
     Waitms 12    
     Reset OE  'Output Disable (Turn off Leds)    
     Waitms 4
   Next A
  If Execute = 0 Then Exit Do  'Exit the loop
 Loop

When Invert the loop I mean start from the end of the array and go to the beggining.

The bit array is organised in columns not in rows

Thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top