Hi All,
I want to measure the amplitude of the given input pulse using ADC of PIC18F57K42 microcontroller.
The period time of the pulse is 1ms (1kHz). The pulse width can be varied from 1us to 1000us.
The sampling frequency of the ADC is 1391.3043kHz. The conversion time of ADC is 718.75ns.
I read the ADC in 50 times. After that I took one of the ADC value for ADC conversion. Because sometimes some noise will be present. So i took one the best ADC value using in the manner of ascending order, mode method.
If I put 100us pulse width and more mean, I got a near by ADC value. But below that pulse width of 100us mean, i didn't get the ADC value within 50 times reading of ADC. But my task is to measure amplitude of the pulse width starts from 1us onwards. Right now I got ADC value of 1us pulse width above 1000 times of ADC reading. How will I measure the amplitude of pulse width 1us within 50 times of ADC reading?
Advance in thanks...