BM Dept., Govt. Engg. College, Gandhinagar Page 25
D. A switch is connected to P3.2. Write a program to perform following:
a. If Switch is OFF, send data 0x88 to P0.
b. If Switch is ON, send data 0x55 to P0.
Assembly language program:
Memory
Location
HEX
code
Label Opcode Operands Comments
C language program:
Comments to this Manuals