Lab Manual of Microcontroller & Interfacing Page 12
C. Write C language program to read port P1, Compare content of port P1with data 80h. If
data at port P1 is greater than 80h, make port P0=0x00 and if data at port P1 is less than
or equal to 80h, make port P0=0xFF.
D. Write a program to sense lift door switch connected at port pin P2.0. Switch on the alarm
connected at port pin P2.1 if lift door is open. Write program in assembly and C language.
Comments to this Manuals