Hey Pic'ers (pretty close to Packers, eh?), I've been zero crossing using a lot of goto loops. That makes me feel a bit uneasy, but it works so far. I can imagine loops like that are dangerous due to the chance an event may be missed and you're stuck or thrown off count. Example: ------code start-------- ZEROPLUS btfsc PORTA,1 ;this ensures that the beginning of a setting starts with the ;positive cycle of the a c line goto ZEROPLUS Z2 btfss PORTA,1 goto Z2 T_ON bsf PORTB,0 A1 btfsc PORTA,1 goto A1 T_OFF bcf PORTB,0 goto Z2 -----code end-------- You'll note that I'm just verifying the output by having portb bit 0 'follow' the input signal. Like I said...it works fine, but has anyone has trouble with relying on such goto loops? Thanks...Pete peter.cesarz@appl.ge.com