Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

An Introduction To Fluid Mechanics

Authors: Faith A. Morrison

1st Edition

1107003539, 9781107003538

More Books

Students also viewed these Chemical Engineering questions

Question

Discuss effective techniques for reducing stage fright. (L.O. 4)

Answered: 1 week ago