Multiplex 7seg. display with 8051

Discussion in 'Embedded Systems and Microcontrollers' started by bubu159, Mar 12, 2008.

  1. bubu159

    Thread Starter New Member

    Jan 30, 2008
    2
    0
    Please how can I programming multiplex 7seg. display with 8051 microcontroller.
    Do you have any example programm? (I need it an assembler)
    Thanks a lot.
     
  2. Colin Mac

    Member

    Mar 11, 2008
    18
    0
    Code ( (Unknown Language)):
    1. ORG 0H
    2.  
    3. MAIN:
    4. MOV P0,#13H  
    5. CALL DELAY                
    6. MOV P0,#17H  
    7. CALL DELAY  
    8. MOV P0,#40H
    9. CALL DELAY  
    10. MOV P0,#32H  
    11. CALL DELAY  
    12. JMP MAIN                  
    13.  
    14. ;20ms delay
    15. DELAY:
    16. MOV TMOD,#01H    
    17. MOV TL0,#0DFH  
    18. MOV TH0,#0B1H  
    19. SETB TR0    
    20. STOP:
    21. JNB TF0,STOP      
    22. CLR TF0    
    23. CLR TR0                    
    24. RET      
    25. END
    Like this, change it to suit your set up.
     
Loading...