Hi Sigurd,
Thank you for your reply. I have executed the code given by you (below link) in Segger studio(V 3.50) I observed that the output or load (pin 31) which is connected to ac fan is running at the set duty cycle for a while(few seconds) and it is going to high value automatically. But, i want to run it at a constant speed.
The final goal is that i have an input ac input voltage of 230v/50Hz, I want to control the AC fan with same frequency (how to set 50Hz) at different speeds (say 4 different speeds proportionally) voltage should vary according to the speed at output. Please find the circuit I am using below. How do i achieve the above goal? Please give necessary suggestions.
Thank you.
https://devzone.nordicsemi.com/f/nordic-q-a/40634/controlling-ac-fan-using-pwm-library