This is a controller with only 2 switching states, that is, the output signal is switched ON and OFF depending…