I have an application in which I have to use an ADC for input of an analog signal on which an almost sinusoidal pulse of finite duration needs to be measured. Typical pulsed signal is 7-8 cycles (up to 500 Hz) where the peak values are not always equal, so it is close to a sinusoid, but not exactly sinusoidal. I need to use PICBASIC code to sample the analog input at Nyquist (1200 Hz?) with an ADC input to my PIC 12F676 and then count the number of peaks in the waveform, measure each of the peaks, and average the counted peak values. Can anyone give me tips on how to do this...or better yet some example PICBASIC PRO code?
Bookmarks