hello,
i have a problem with ADC oh PIC18f452.
i try to measure 3 phase voltage and current ,frequency and power factor.
my code depend on the detecting of the peak of the sine wave.
when i detect the peak of voltage of phase 1 i start a timer and when i detect the peak of phase 2 i stop it .
this value gives indication to frequency.
i have a problem the the timer gives sometimes logic numbers and other times false numbers.
i think it's noise
how can i solve it .
i have a problem with ADC oh PIC18f452.
i try to measure 3 phase voltage and current ,frequency and power factor.
my code depend on the detecting of the peak of the sine wave.
when i detect the peak of voltage of phase 1 i start a timer and when i detect the peak of phase 2 i stop it .
this value gives indication to frequency.
i have a problem the the timer gives sometimes logic numbers and other times false numbers.
i think it's noise
how can i solve it .