I'm looking to read the frequency of a 6v ac signal for zero crossing from what i understand i can get away with a from ra4 to vdd and a 100r from 6vac to ra4 then i just use timer0?