1.) Write a flowchart and program to do the following: A pressure sensor in a cooling system measures the pressure of the refrigerant and is connected to Port -1 of the 8051. If the pressure is greater than 200D, the controller is to set a high signal on Port-O, line-O; otherwise it is to be low. If the pressure is less than 45D then a high signal is to be sent on Port-O, line-1; otherwise it is to be low.
2.) Write a flowchart and program to output a triangle wave by counting from OOH to FFH and then back down to OO Hagain and repeating this pattern and outputting this to Port-I which has a DAC connected to it. Assume no delay is to be added between the outputting of the numbers.