This Application Note describes how to implement an efficient zero cross detector for mains power lines using an tinyAVR and megaAVR devices

Download Links

PDF download link: http://www.atmel.com/Images/doc2508.pdf.

ZIP download link: http://www.atmel.com/Images/AVR182.zip.