BM Dept., Govt. Engg. College, Gandhinagar Page 37
B. Modify program to read status of the switches connected to the port pins P3.2 and P3.3. If
switch SW1 is pressed display “DEVICE ON” and make relay ON. If switch SW2 is
pressed display “DEVICE OFF” and make relay OFF. Execute in your hardware.
Memory
Location
HEX
code
Label Opcode Operands Comments
Comments to this Manuals