Skip to main content
victagayun
Senior III
October 20, 2020
Question

HRTIM Dead time feature request

  • October 20, 2020
  • 8 replies
  • 1929 views

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?

This topic has been closed for replies.

8 replies

Nesrine.JLASSI
Visitor II
October 21, 2020

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
October 21, 2020

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

Nesrine.JLASSI
Visitor II
October 26, 2020

Hi @victagayun​ 

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

Best regards,

Nesrine

victagayun
Senior III
October 29, 2020

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

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

Nesrine.JLASSI
Visitor II
October 30, 2020

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

Nesrine.JLASSI
Visitor II
November 2, 2020

Hi @victagayun​ 

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

Best regards,

Nesrine

victagayun
Senior III
November 3, 2020

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

Nesrine.JLASSI
Visitor II
November 4, 2020

Hi @victagayun​ 

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

Best Regards,

Nesrine