Dear support team,
I want to execute the following function:
I want to determine the 'on-time' of an incoming digital signal.
Thus, I figured, I use either the eCAP or N2HET module.
In the technical reference sheet, considering the N2HET, I read, that there are several instruction that can be used to control the timer module.
Basically I want to do the following:
Siganl LOW -> Stop Counter / No counting
Signal HIGH -> Start Counter / Continue counting
First Question:
How would you realize this function? My idea would be:
Considering N2HET:
Use the ECNT (Event Count) instruction.
If event == RISE => Count UP
if event == FALL => stop counting
Would this result in my wanted Counter behaviour?
Second question:
Is it also possible to execute this behaviour using the eCAP module? I can't seem to find similar 'instructions'.
Thank you and kind regards
Sebastian