This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

About the voltage detect with COMP

Hi,

I'm working on a test for the  pulse width measurement, the input is analog signal.

I'm using a while loop, and  use nrfx_comp_sample in the loop to get the voltage UP and DOWN result, the V+ is external  analog signal, the V- is a fixed voltage(0.2mV) from AIN1, is precision  of  COMP is not enough to capture it?

Or is there any better way to capture the lowest signal? PPI? but just no idea how to do that with PPI.

Thanks

  • Hi there, I noticed the Propagation delay of the COMP is 0.1μs, yeah, I'm running the COMP at the high speed mode. But even the Propagation delay is so fast, but still can't manually sample it in the main() to get the voltage smaller then V-(0.2v)? and as I mentioned above, the V+ will have 0.18v at sometimes.

  • Have you tried with a variable power supply to see if you get the UP or DOWN event?