Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/19/05 21:06
Modified:
  12/19/05 21:09

Read: times


 
#105554 - software
Responding to: ???'s previous message
Thanks, Charles.

One thing for the realisation, I kept a separate line for signal and "power" ground - for your schematics, I would power the LEDs and the shift registers separately. Oh yes, I incorporated the shift registers into the "cable"...

The software is here: http://www.8052.com/users/wek/xmas1.a51
Quite dirty, beware.
A couple of issues:

  • for Charles' schematics, change the "polarity" of Data0 and Data1 - simply cpl-ing them before shiftout
  • I used P89V51RD2 which has hardware SPI, so the clock line is at P1.7 and the data (MOSI) is at P1.5. There is a directive at the beginning, as a choice between HW and SW-bitbanged "SPI", but I did not really debug the non-HW-SPI part...
  • my clock was 22.1184MHz. The timer0 can be reloaded in the interrupt (mov TH0,#80h) to achieve the same behaviour at 11.0592MHz.
  • the "third" mode runs for too long. Needs something like mov AlgoTim,#40h just before the Run3X2 label.


      Enjoy!

      Jan Waclawek

List of 28 messages in thread
TopicAuthorDate
open project: christmas lightchain            01/01/70 00:00      
   Take care...            01/01/70 00:00      
      with music too            01/01/70 00:00      
      Thanks for warning, Kai            01/01/70 00:00      
         Looks nice!            01/01/70 00:00      
   OK, count me in. Here's Schematic            01/01/70 00:00      
      software            01/01/70 00:00      
         Knight Rider LED pattern Software            01/01/70 00:00      
            Knight Rider            01/01/70 00:00      
   Another option            01/01/70 00:00      
      Knight Rider Software Corrected            01/01/70 00:00      
   Too much time            01/01/70 00:00      
      some more led sequencers            01/01/70 00:00      
         variations            01/01/70 00:00      
      tastes great; less filling            01/01/70 00:00      
         I was wondering which one it would be.            01/01/70 00:00      
         beer            01/01/70 00:00      
            beer            01/01/70 00:00      
               Sam's Light            01/01/70 00:00      
               better            01/01/70 00:00      
                  who can ever agree on taste            01/01/70 00:00      
                  best beer            01/01/70 00:00      
                     The Henley Rowing Club            01/01/70 00:00      
                        "Authentic"            01/01/70 00:00      
                     Beer tastes            01/01/70 00:00      
                        Sure            01/01/70 00:00      
                  Leffe'            01/01/70 00:00      
   update            01/01/70 00:00      

Back to Subject List