MP3 Download Box - Download Unlimited MP3 Legally. As low as $1/month
Spyware Doctor with AntiVirus - Easy Spyware Removal - FREE SCAN
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: 17%
Tags: 7-segment-display, 8051, 8051/8052, 8052, asm-source, atmel, dual-display, seven-segment-display
Related Posts:
Interfacing with LM35 and display temperature in 7 Segment Display
About Seven Segment LED
Interfacing with ADC and Atmel 8051
Fet89c5x Programmer Download - Best 8051 compiler
The 8051 Simulator - Edsim51 - Best for teachers and students
Serial Communication - Review
Secret Backdoor To Many Websites
Fan speed controlling with Atmel 8051
What is My IP? Check Browser Info
I/O Devices
Comments
Leave a Reply












