You are on page 1of 3

LAB REPORT

LAB 2: I/O Ports using the 8255 PPI Device

Part A: Introduction to PPI IO Ports on MY1 Sim85

DISCUSSION

Step simulate the program above and observe the LED display.
Which LED lights up?

7
6
5
4
3
2
1
0

PA0

Remove PA0 and PA4 from the LED0 and LED4 display and swap the
ports assignment. LED0 assign with PA4 while LED4 assign with PA0.
Step simulate again and explain your observation.
LED0 with PA4 will be turn off & LED4 with PA0 will be turn on.
The output is started with port PA0.

Reset the LEDs with the proper port assignments. Change the
instruction at line 6 to:
MVI A,16.

Step simulate again and explain your observation


LED4 with PA4 will be turn on. 16 decimal in binary is equal to
00010000B.
Followed by the arrangement of LED which PA0 start from
right to left, so the
binary number 1 Is located at PA4 at LED at
PA4 will be light up.

You might also like