Question: A batch process is used to mix three products A,B and C using three pumps ( P1,P2 and P3 ) respectively. P1 connected to RC0,P2
A batch process is used to mix three products A,B and C using three pumps ( P1,P2 and P3 ) respectively. P1 connected to RC0,P2 to RC1 and P3 to RC2. The tank is emptied through pump (P4) connected to RC3. Four switches are used S1 connected to RBO and detects the tank empty, S1 connected to RB1 and detects tank 1/3 full, S2 connected to RB2 and detects tank 2/3 full and S3 connected to RB3 and detects tank full. A mixer M connected to RC4 and used to mix the product: The process is as follows: 1. At beginning, tank is empty. 2. P1 is turned on. 3. When the tank is 1/3 full, P2 is switched on as well as the mixer 4. When the tank is 2/3 full, P3 is switched on. 5. When tank is full, P1,P2,P3 and M are all switched off, and pump P4 is turned on until the tank is empty. 6. The process repeats itself continuously. a. Obtain the required special purpose registers. b. Program the microcontroller to carry out the above tasks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
