But if you simply want to monitor the AC line, then you don't really need interrupts. I'll attach a circuit that (I think) does what you want. The output is LOW whenever there is AC present. The capacitor keeps it from going high during zero-crossings.
And - it has isolation.
The circuit works for both 110V and 220V.




Bookmarks