EMIOS PWM

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

EMIOS PWM

372 Views
vmhb
Contributor III

I am trying to configure 2 pwm signals on the S32k3x4EVB-Q172 EMIOS 1. Both PWM's have the same input source clock and can be set to different duty cycles. They are both OPWMB and the only difference I can see between the two signals is that one is a type H port and the other a type X. I have included screen shots of the setups. Is there anything different about these type H channels?

From initialisation the X port  produces the correct period and duty but the type H port does not. If I increase the duty from 0 - 100 in 5% steps the type X port responds correctly at each stage. The type H port does not report any pulse until 30%. At this point the period of the H port is correct but the period is nonsense

Here is

vmhb_5-1717766864960.png

 

the trace at 30%

vmhb_0-1717766383475.png

At 45% the TYPE H channel show 75% where the type X channel shows 45%

vmhb_1-1717766500636.png

At 55% the TYPE H channel has gone 100%

I have tried different ports, different periods but the symptoms remain. The only difference I can see is that the channel CNT register seems to sit at the requested duty count for the type H whereas on the X channel it counts.   

vmhb_2-1717766693175.png

vmhb_3-1717766791077.png

vmhb_4-1717766833956.png

 

 

 

0 Kudos
Reply
2 Replies

324 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @vmhb 

I worked on replicating your issue. According to the results of the tests, the issue is present on channel type X, and channel types H and Y work as expected. Refer to the attached images.

VaneB_0-1718051106320.png

I will escalate this situation with the corresponding team. While we are waiting for the internal team's response, the workaround I can give for this situation will be to use the channel types H and Y.

 

B.R.

VaneB

0 Kudos
Reply

299 Views
VaneB
NXP TechSupport
NXP TechSupport

After several tests, we concluded that this behavior is related to the hardware design of the S32K3x4EVB-Q172, We did some testing with other pins for each channel and most of them work as expected. The only channel I could not get working was channel 15 due to EVB pin availability and pin connections to other devices. In conclusion, all channel types should have the same behavior under the same configurations as the ones shared before.

VaneB_0-1718233475402.png

0 Kudos
Reply