Digital Clock Simulation
Digital Clock Simulation
Aim
Algorithm
Program
Output:
12 00 00 – 12 00 01
12 00 02
12 00 03
12 00 04
12 00 05
RESULT:
The digital clock will display the current time, incrementing the seconds, minutes, and hours
accordingly.
Rolling Display
Aim
Algorithm
1. Load the starting address of the message into the register pair.
2. Initialize the display.
3. Display the first character on the LED display.
4. Introduce a short delay.
5. Shift the display to the left.
6. Display the next character from the message.
7. Repeat steps 4-6 until the entire message has scrolled through the display.
8. Loop back to the starting point to continuously scroll the message.
Program:
ADDRESS LABEL MNEMONICS OPCODE
8108 OUT 31 D3 31
810B OUT 30 D3 30
810D INX H 23
810E INR B 04
810F DCR C 0D
8110 JNZ L1 C2 07 81
8113 RET C9
8205 ORA E B3
8206 JNZ L2 C2 03 82
8209 RET C9
830C INX H 23
830D INX D 13
830E DCR C 0D
8313 RET C9
OUTPUT:
ADDRESS DATA
9000 67
9001 97
9002 83
9003 83
9004 F3
9005 00
RESULT:
Thus the rolling display using 8085 microprocessor is done successfully.
Aim:
Algorithm:
Program: