Question: A microcontroller is used to fill a tank. Two level sensors are installed $1 connected to RB1 at the bottom indicating the tank empty and

 A microcontroller is used to fill a tank. Two level sensors

A microcontroller is used to fill a tank. Two level sensors are installed $1 connected to RB1 at the bottom indicating the tank empty and one at the top S2 connected to RB2 indicating the tank is full. A pump P1 connected to RB4 is used to fill the tank. Once the tank is full, P1 is switched off and second pump P2 attached to the bottom of the tank is switched on until the tank is fully empty. This is done as follows: At the beginning the tank is completely empty. Switch $1 (connected to the bottom of the tank is activate if open) is activated, pump1 starts filling the tank until the latter is completely full the pump stops when S2 (active if closed) is activated. Pump2 is turned on to empty the tank until it is completely empty. This is indicated by $2 (active when open) a- Write a small program to carry out the task. b- Convert it into machine language indicating the address of each instruction

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Chemical Engineering Questions!