williB
New Member
On a slightly different tac, i think i can use a PIC as a zero cross detctor..
what i could do is use an op-Amp to attenuate the signal comming from the generator so the PIC can read it.. ie 0-5v..wow i could even make it adaptive , say the voltage comming from the generator is only 15V , the PIC could then choose a different resistor for the op-Amp..Thus allowing the A2D read full scale again ...
EDIT :: i could just use one of the comparitors but this wouldnt give me any indication that the zero was about to occur
..which could be as useful as knowing after the fact..
what i could do is use an op-Amp to attenuate the signal comming from the generator so the PIC can read it.. ie 0-5v..wow i could even make it adaptive , say the voltage comming from the generator is only 15V , the PIC could then choose a different resistor for the op-Amp..Thus allowing the A2D read full scale again ...
EDIT :: i could just use one of the comparitors but this wouldnt give me any indication that the zero was about to occur
..which could be as useful as knowing after the fact..