cancel
Showing results for 
Search instead for 
Did you mean: 

GTM DTM (Dead time Module) for SPC58NN84E7

Veer
Associate

Hello ST Community,

 

I am currently working with the SPC58NN84E7 controller and using the AUTOSAR SPC58NN MCAL version 4.0.3.

I am in the process of configuring the PWM module for our project, which requires both the GTM (for clocking the counter) and the DTM (for dead time functionality).

However, I have noticed that the AUTOSAR SPC58NN MCAL version 4.0.3 does not provide  DTM module to implement dead time functionality. Could anyone provide guidance on how to handle this limitation? Are there any workarounds or alternative solutions available for implementing dead time in this context?

 

Thank you for your assistance!

Best regards
Veer.

1 REPLY 1
Veer
Associate

Hello ST Community,

I would like to add a few more insights to my previous post regarding the GTM DTM (Dead time Module) for SPC58NN84E7.

In the PWM MCAL module, there is a parameter called PwmTriggerDelay. This parameter specifies the delay (in ticks) for generating the trigger event on (A)TOM[i]_CH[x]_OUT_T. It is used only in PWM_FIXED_PERIOD mode. To generate the trigger signal, the programmed value in the SR0 register of the channel must be less than or equal to the channel period used as a reference. Trigger generation starts at channel initialization, and to deactivate it, you can set the trigger delay to the channel period value (ticks) + 1. The Pwm_SetTriggerDelay API is used to update the trigger position. Note: This is a GTM implementation-specific parameter.

I have tried setting various values for this PwmTriggerDelay parameter in an attempt to implement dead time functionality, but it does not work as expected.

Could anyone provide insights on how to effectively use the PwmTriggerDelay parameter for dead time configuration? Are there any specific considerations or workarounds that I should be aware of?

Thank you for your assistance!

Best regards,