Sure Alain, but you'll need to use a PIC with an ADC and take multiple readings... I wouldn't like to do that with a PIC (even one running at 40MHz) trying to measure a 1MHz waveform (which is what the original question was about). If you have an ADC, it would be easier to filter the signal (R and C), to charge the Cap and measure the voltage on it (kinda PWM D/A Convertor approach). With the correct value of R, you should get SQUARE at Vmax, TRIANGLE at < V50%, and SINE somewhere above TRIANGLE but below SQUARE.




Bookmarks