Question: It's C++ Builder Your team is asked to design a water pump control system as shown on figure 1. In this system, the power switch

It's C++ Builder

It's C++ Builder Your team is asked to design a water pump

Your team is asked to design a water pump control system as shown on figure 1. In this system, the power switch is connected to your embedded system via PortA pin O (called PAlO], If the user turns on the system, you will read a logic 1 on PortA bit- 0. The PortA pin 1 is also connected to the water pump. If you set logic '1" on PortAt],you will turn on the pump and fill the water into the tank. You can directly read the user settings for the water level value th ough the PortB and Ponc toth are 8-bit, hence te distance range is from 0 to 255 cm The sensor used in the this system is an ultrasonic sensor. It is connected to the Timer0 port. You can directly read the TimerO value, but that is not a real water level valucl it is the time interval value. So you nced to convert the time intervall value to the distance value (cm). The t mer value s the amount of me t takes or an ultrason c s nal to travel rom top c tark to the water ur ce he speed o sound in the ars s 350 vsec. he mer c ock frequency s 20MHz EE-2450 Project 2 (DEMO) PAIO] PAI11 Pump System PortA ON/OFF Pump-Off L Timer0[31:0] Timer0 PortB Pump-On Level PCI7:0] 40 Your team is asked to design a water pump control system as shown on figure 1. In this system, the power switch is connected to your embedded system via PortA pin O (called PAlO], If the user turns on the system, you will read a logic 1 on PortA bit- 0. The PortA pin 1 is also connected to the water pump. If you set logic '1" on PortAt],you will turn on the pump and fill the water into the tank. You can directly read the user settings for the water level value th ough the PortB and Ponc toth are 8-bit, hence te distance range is from 0 to 255 cm The sensor used in the this system is an ultrasonic sensor. It is connected to the Timer0 port. You can directly read the TimerO value, but that is not a real water level valucl it is the time interval value. So you nced to convert the time intervall value to the distance value (cm). The t mer value s the amount of me t takes or an ultrason c s nal to travel rom top c tark to the water ur ce he speed o sound in the ars s 350 vsec. he mer c ock frequency s 20MHz EE-2450 Project 2 (DEMO) PAIO] PAI11 Pump System PortA ON/OFF Pump-Off L Timer0[31:0] Timer0 PortB Pump-On Level PCI7:0] 40

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 Databases Questions!