2020-10-19 07:17 PM
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?
2020-10-21 03:46 AM
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
2020-10-21 05:46 AM
Hello,
This is a feature request.
AS show below, you can check immediately the resulting Freq by changing the period numerically.
Hopefully there is a similar info when you change the deadtime Rising/Falling Value, like how long will the deadtime incur.
2020-10-26 01:26 PM
Hi @victagayun
Could you please share your .ioc file to check with.
Best regards,
Nesrine
2020-10-28 10:30 PM
2020-10-30 01:43 AM
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
2020-11-02 12:48 AM
Hi @victagayun
Could you please provide the formula based on what we have today.
Best regards,
Nesrine
2020-11-02 11:08 PM
Hello @Nesrine.JLASSI ,
If you calculate the resulting PWM freq as shown below
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.
2020-11-03 11:30 PM
Hi @victagayun
This will be internally checked, I'll give you an update as soon as possible.
Best Regards,
Nesrine