Hi Kiss,
Not a problem, it is all working very nicely.
I do not want to do this but rather get an understanding of something I have wondered about for a while.
In the AN467 pdf - Attached, figure 12 they have the line voltage connected to the +5VDc into the microcontroller.
How does that work?
I may have this wrong?
I see that you would have a DC offset on the line voltage of 5V but if the series resistance was not high enough in the microcontroller or the 5V Dc supply the current would fry everything, wouldn't it?
If you have some time could you give me an explanation of how things actually work when connecting higher AC voltages to much smaller Dc supplies & microcontrollers.
Also in the same figure 12, is that window comparator wired correctly, I am not questioning NXP rather than my own ignorance ?
Hope everything worked out ok at the doctors for you both.
Cheers