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.

Measuring high time of a PWM with N2HET

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

  • Hello Christian:

    Did Zhaohong's reply answer your question? If so, please verify his answer so we may close the thread. Otherwise, please let us know if you have any additional questions.