Question: Design an order conformation machine using 8051 microcontroller. A switch is connected to pin P1.0. Write a program to check the status of SW (switch)
Design an order conformation machine using 8051 microcontroller. A switch is connected to pin P1.0. Write a program to check the status of SW (switch) and perform the following instructions:(a) If SW=0, send information to red LED connected to P2.0 pin (b) If SW=1, send information to green LED connected to P2.1 pin (order ready)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
