Switch relay synchronously in 0 passage (50Hz)
i am trying to switch a relay via the stm8s001 processor synchronously in the 0 pass. how could I realize that.i have an imput signal of 50 Hz. I can also start the timer, but I don't know how to switch the relay on exactly in the 0 cycle.(i watch th...