I want to make a zero crossing detector using arduino internal analog comparator.Is it possible to apply a sine wave of (say 1v amplitude frequency 50HZ from a step down transformer) with negative peak to its non-inverting terminal as normal comparator or should i use dc offset to sine wave for comparing.