Professional Documents
Culture Documents
Applications
Write an 8051 program to display the digits 1→ 2 → 8 → 1……. Continuously with time
interval as shown in figure.
Solution:
I have used common anode 7-segment display for interfacing to the 8051
microcontroller and have written the code for the same.
To display digits on the 7-segment display we have to pass these hex codes:
17BEC0813
Manual Calculation:
17BEC0813
Assembly Program:
START:
MOV A,#0F9H ; Passing hex value for displaying 1 in common anode 7-segment display.
MOV A,#0A4H ; Passing hex value for displaying 2 in common anode 7-segment display.
MOV A,#80H ; Passing hex value for displaying 2 in common anode 7-segment display.
DELAY1:
17BEC0813
CLR TF0 ; Clearing the Timer flag
RET
DELAY2:
RET
DELAY3:
17BEC0813
CLR TR0 ; Stopping the timer
RET
END
17BEC0813
Output in Keil:
17BEC0813
Interfacing of common anode- 7 segment display in proteus:
Output in Proteus:
17BEC0813
17BEC0813
2. List out the difference between ARM7 and Intel I (i3, i5, i7) Series Processor.
Solution:
The major difference between ARM7 and Intel i-series processors is that former is
RISC (Reduced Instruction Set Computing) and the latter is CISC (Complex
Instruction Set Computing). RISC instruction sets are more atomic and CISC
instruction sets are larger and more complex.
Another main difference is ARM7 processor is very power efficient processor where
as intel processors mainly focuses on high performance.
Other differences are mentioned in the table given below.
*****
17BEC0813