Hello. I have a question.
I want to measure odd number of data waveforms.
I hope to measure the waveform through the EMIOS ICU.
The values I set are as follows.
Measurement mode: ICU Mode Signal Measurement
Measurement property: ICU Duty Cycle
When the measurement is carried out, the duty and period in the red square box are measured.
(400 ticks, 600 ticks) (active time, period)
However, the last data is not measurable.
Is there any way to measure that data?
For example:
(400,400),(0,200), (300,300)
Thank you
Hi,
as far as I understand driver code, in this mode it does not return 3rd and 4th edge, active time duration (first 2 edgess) in tics is returned and a period is calculated from 2nd and 4th edge. You will probably need to select edge detect mode and read value for each edge.
BR, Petr
Hi,
if having captured values for each edge you can calculate duty cycle/period yourself.
ICU_MODE_SIGNAL_MEASUREMENT does not return values for bunch of 2 edges you outlined.
BR, Petr
Thanks for the reply @PetrS
sorry. I didn't understand
Please explain in more detail about "if having captured values for each edge you can calculate duty cycle/period yourself"
Best Regards
Hi,
in edge mode, you should get a notification for each edge and you can read captured value of the timer and save it for later. Collecting all four edges you can calculate signal parameters.
BR, Petr