Skip to main content
victagayun
Senior III
Oct 20, 2020 2:17 AM UTC
Question

HRTIM Dead time feature request

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
Oct 21, 2020 10:46 AM UTC

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
Oct 21, 2020 12:46 PM UTC

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
Oct 26, 2020 8:26 PM UTC

Hi @victagayun​ 

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

Best regards,

Nesrine

victagayun
Senior III
Oct 29, 2020 5:30 AM UTC

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
Oct 30, 2020 8:43 AM UTC

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
Nov 2, 2020 8:48 AM UTC

Hi @victagayun​ 

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

Best regards,

Nesrine

victagayun
Senior III
Nov 3, 2020 7:08 AM UTC

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
Nov 4, 2020 7:30 AM UTC

Hi @victagayun​ 

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

Best Regards,

Nesrine