S32K3 PWM measure

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K3 PWM measure

1,742 Views
kjy106906
Contributor IV

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.

kjy106906_1-1653878854508.png

Is there any way to measure that data?
For example:

kjy106906_2-1653878925307.png

(400,400),(0,200), (300,300) 

Thank you

0 Kudos
Reply
5 Replies

1,725 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

1,710 Views
kjy106906
Contributor IV

Thanks for the reply @PetrS 
Is it possible to measure duty and period even in edge detect mode?
(I think duty and period can only be measured in ICU_MODE_SIGNAL_MEASUREMENT.)
Is there a way to measure the duty and period of odd number of data as in the question above?

kjy106906_0-1654134491873.png

 

Tags (3)
0 Kudos
Reply

1,668 Views
PetrS
NXP TechSupport
NXP TechSupport

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 

0 Kudos
Reply

1,665 Views
kjy106906
Contributor IV

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

0 Kudos
Reply

1,649 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply