i want to take 230vac 50hz feedback from mains to dspic33f controller. for tht i need some sine wave detection techniques.i found zero crossing detection for tht. bt i dont want to use optocoupler, brigde circuit..want to use atmost 2 components only.plz suggest me some circuits for zero crossing detection using 2 diodes and dspic33f mcirocontroller….