I want to sense the some analog signal ( which is periodic with period 5 ms), if any events present in the signal, i need to save the information in host, with some fields like time stamp and event type and magnitude as a fields. The system should monitor with resolution in the order of milli seconds. I should done in a real time. May i know how to do it with esp32? please may i know the other alternative also.
That is a quite advanced project and to be honest I’m not familiar with the type of project you want to do.
I’ve searched for a while and I haven’t found a clear answer.
I’ve found this issue: https://github.com/espressif/esp-idf/issues/1148 that seems what you want to do, but it doesn’t have an answer.
If you need more information about some more advanced configurations about the analogRead() functions, I recommend this video: https://youtu.be/RlKMJknsNpo?t=145
However, I’m not sure if this will be useful for what you want to do.
I’m sorry that I can’t help much.