Hi
I have attached two waveforms that are going into a PIC18F4520 micro A/D pin.
The PIC is powered from 3V using the VDD (3V) as the internal reference voltage.
Waveform 2 should be easy to measure, it settles at 900mV.
I am struggling with waveform 1, which cycles through 1.3V and 800mV.
I need to differentiate between the two waveforms.
The only pin available is the A/D. However i am not sure how to sample the waveform for say 5 samples and then take the average to perform my measurement and then comparison. Waveform 2 i think could be tricky.
Can anyone advise please.
I have attached two waveforms that are going into a PIC18F4520 micro A/D pin.
The PIC is powered from 3V using the VDD (3V) as the internal reference voltage.
Waveform 2 should be easy to measure, it settles at 900mV.
I am struggling with waveform 1, which cycles through 1.3V and 800mV.
I need to differentiate between the two waveforms.
The only pin available is the A/D. However i am not sure how to sample the waveform for say 5 samples and then take the average to perform my measurement and then comparison. Waveform 2 i think could be tricky.
Can anyone advise please.