Page 1 of 1

You are to write a set of algorithms (Pseudo code) for the safety valve system such that it fulfils the requirements sta

Posted: Fri Jul 01, 2022 6:01 am
by answerhappygod
You are to write a set of algorithms (Pseudo code) for thesafety valve system such that it fulfils the requirements statedbelow
You Are To Write A Set Of Algorithms Pseudo Code For The Safety Valve System Such That It Fulfils The Requirements Sta 1
You Are To Write A Set Of Algorithms Pseudo Code For The Safety Valve System Such That It Fulfils The Requirements Sta 1 (74.56 KiB) Viewed 45 times
i. ii. iii. iv. V. The pressure sensor is connected to Port A, bit 2 of the microcontroller The relief valve is connected to Port B, bits 1 and 2 of the microcontroller When the pressure in the vessel exceeds the threshold value, the pressure sensor sets the input port A, bit 2 to ON. When the sensor is ON, the microcontroller sends an appropriate output to Port B in order to open the relief valve. As soon as the pressure sensor goes to the OFF state, the microcontroller clears all the output port bits thus closing the relief valve. a. You are to write a set of algorithms (Pseudo code) for the safety valve system such that it fulfils the requirements stated above. [10 Marks] b. A flowchart can be used to describe the step-by-step plan for solving a problem before implementing it using a computer program. Draw a flowchart to show your plan if you were to implement the system given above, using a PIC microcontroller. [10 Marks] Question 1