Question: A PIC18F452 microcontroller is used to control a two levels tank, with two sensors S1 and S2 where S1 detects the minimum and S2 detects
A PIC18F452 microcontroller is used to control a two levels tank, with two sensors S1 and S2 where S1 detects the minimum and S2 detects the maximum. S1 is connected to RC2 and S2 is connected to RC3.The tank level is controlled with valves V1 and V2 where V1 is an input valve and V2 is an output valve, and V1 is connected to RB1 and V2 to RB2. If the level is below the minimum, V1 is turned on and V2 is turned off until the maximum is reached which in turn switch S2 on. The output valve is then turned on and input valve is turned off until the minimum is reached by switching S1. And the procedure repeats itself. Draw a circuit for the operation. Obtain the required special purpose registers. Program the microcontroller either using assembly language or C to carry out the above task
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
