cancel
Showing results for 
Search instead for 
Did you mean: 

HRTIM Dead time feature request

victagayun
Senior III

Hello, is it possible to add a feature in CubeMX deadtime section in HRTIM (STM32F3, STM32G4 and STM32H7)?

In Time Base Setting, whenever you change the "Period" setting, the resulting frequency will show.

Is it possible to add the same feature when you change the Rising/Falling value and will show how much time it consumes?

8 REPLIES 8

Hi @victagayun​ 

Thank your for your post. We need a step by step scenario to be able to understand your request.

Can you please give us the exact scenario to try reproduce what you are seeing?

Best regards,

Nesrine

victagayun
Senior III

Hello,

This is a feature request.

AS show below, you can check immediately the resulting Freq by changing the period numerically.

0693W000004KXAUQA4.png 

Hopefully there is a similar info when you change the deadtime Rising/Falling Value, like how long will the deadtime incur.

0693W000004KXBIQA4.png

Hi @victagayun​ 

Could you please share your .ioc file to check with.

Best regards,

Nesrine

victagayun
Senior III

Hi @Nesrine.JLASSI​ , here is the .ioc file.

But the feature request wont be there as there is still no "resulting" actual deatime.

Hi @victagayun​ 

Thanks for your post. I have raised your change request internally to be reviewed and treated accordingly to the priority.

We will give you an update as soon as possible.

Thanks for your contribution!

Best regards,

Nesrine

Hi @victagayun​ 

Could you please provide the formula based on what we have today.

Best regards,

Nesrine

victagayun
Senior III

Hello @Nesrine.JLASSI​ ,

If you calculate the resulting PWM freq as shown below

0693W000004KXAUQA4.png 

like this formula:

HRTIM_Freq = HAL_RCC_GetHCLKFreq() * pTimeBaseCfg.PrescalerRatio / pTimeBaseCfg.Period

then dead time can be calculated like this:

HRTIM_deadtime(rising/falling) = pDeadTimeCfg.RisingValue / ( HAL_RCC_GetHCLKFreq() * pDeadTimeCfg.Prescaler )

And you can insert inside the RedBox the value as shown below.

0693W000005A8AdQAK.png

Hi @victagayun​ 

This will be internally checked, I'll give you an update as soon as possible.

Best Regards,

Nesrine