Question: 2. (10 pts) Program with inputs and outputs Two sensors connected to RB0 and RB1 of a PIC 1814580 Microcontroller are used to measure the
2. (10 pts) Program with inputs and outputs Two sensors connected to RB0 and RB1 of a PIC 1814580 Microcontroller are used to measure the liquid level in tank A and tank B. respectively. If the liquid level is lower than ' full, a logic LOW (0') signal will be sent to the microcontroller. Write a main program] so that if one or both tanks are less than full, the red light indicator, which is connected to RCO and requires a logic HIGH (1) signal, will turn on. PIC18 F4580 RBO RCO : RB1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
