Hello,
I want to measure the high time of each period of a PWM input for the duration of 10ms. Can I do this with N2HET module? If yes, how?
Thanks in advance
Best Regards
Christian
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I want to measure the high time of each period of a PWM input for the duration of 10ms. Can I do this with N2HET module? If yes, how?
Thanks in advance
Best Regards
Christian
Christian,
You can use the PCNT instruction to measure the "rise to fall" time. You can enable interrupt for this instruction so that CPU is notified when the data is ready. You also have the option enabling a HTU transfer. HTU will transfer data from NHET RAM to CPU RAM to save CPU time.
Thanks and regards,
Zhaohong