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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/16/11 12:53
Read: times


 
Msg Score: -2
 -2 Message Not Useful
#180633 - 8 LEDs sand watch
Responding to: ???'s previous message
Thanks for the reply.

i have just started programming on microcontorllers and i have done some programming on 89s52 in assembly language with 8 leds like

LED flash @1hz using mov, acall and sjmp
LED swap @1hz using swap
LED rotate left right using rl and rr
LED diverse, converse and diverseconverse using rr,rl,anl and djnz

now i want to make a sand glass using 8leds

in sand glass one led will start running and at the end (at 8th position) it will stop in on condition and become in latch.

then again one led will start running and it will stop at 7th position and become in latch

then 6th, 5th ....1st

finaly all 8 leds will on

sand dropping cycle will finished

now in next cycle 1st led will goes off then 2nd then 3rd.....8th

and finaly all leds will goes off

i want to meke this progamme using logical operation like using anl,orl.

please give me some idea to make this logic.

thanks in advance
santosh kumar






List of 16 messages in thread
TopicAuthorDate
Help Help Codes for 8 LEDs Sand Watch in ASSEMBLY            01/01/70 00:00      
   Hourglass?            01/01/70 00:00      
      8 LEDs sand watch            01/01/70 00:00      
         Table or nested loops            01/01/70 00:00      
         Didn't you just repeat exactly the same post?            01/01/70 00:00      
         possible approach            01/01/70 00:00      
         LED Patterns            01/01/70 00:00      
            Using spreadsheets            01/01/70 00:00      
               Further -- Consider            01/01/70 00:00      
   Cart before horse            01/01/70 00:00      
   What does AND and OR?            01/01/70 00:00      
   last time I looked 89S52 had 8 kByte flash, ASSEMBLY?            01/01/70 00:00      
      First Cycle Compete            01/01/70 00:00      
         How to post legible source code            01/01/70 00:00      
         algorithm, assembler            01/01/70 00:00      
            Thanks for the help and support            01/01/70 00:00      

Back to Subject List