working PWM, ADC, implemented IIR compensator structure