Gadget Reviews, Tech Tips, Computer Optimization, Tech News, Vista Tweak, Software Tricks, Blogging Tips, Downloads


Triple Your PC Performance with Perfect Optimizer!

7 Segment Display Interfacing with 8051

This 8051 asm source code can be simulated using simulator Edsim51

; This program multiplexes the number 1234
; on the four 7-segment displays.
; Note: a logic 0 lights a display segment.

start:
SETB P3.3 ; |
SETB P3.4 ; | enable display 3
MOV P1, #11111001B ; put pattern for 1 on display
MOV P1, #0FFH ; clear the display
CLR P3.3 ; enable display 2
MOV P1, #10100100B ; put pattern for 2 on display
MOV P1, #0FFH ; clear the display
CLR P3.4 ; |
SETB P3.3 ; | enable display 1
MOV P1, #10110000B ; put pattern for 3 on display
MOV P1, #0FFh ; clear the display
CLR P3.3 ; enable display 0
MOV P1, #10011001B ; put pattern for 4 on display
MOV P1, #0FFH ; clear display
JMP start ; jump back to start

Popularity: 22%

Please Share and Bookmark :)
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Reddit
  • BlinkList
  • Facebook
  • Mixx
  • Propeller
  • Twitter
  • Fark

Triple Your PC Performance with Perfect Optimizer!

If you enjoyed this post, make sure you
Subscribe to our RSS feed!


One Response to “7 Segment Display Interfacing with 8051”


  1. vijay says:

    please send me the assembly language program for SEVEN SEGMENT DISPLAY.



Leave a Reply


Spyware Doctor Free Scan