cancel
Showing results for 
Search instead for 
Did you mean: 

HRTIM + Timer D + Deadtime / HAL or LL

FPros.1
Associate III

Hi there,

I'm doing some tests in order to better comprehend HRTIM configuration using STM32CubeIDE v1.19.0 (stock) and NUCLEO G474RE.

Current topic is HRTIM and its ability to output coupled PWMs with dynamic deadtime (potentially evolving every PWM period).

I'm experiencing some issues that surely are due to some wrong cfg settings and so I ask for your support in order to find things out.

I set up Timer D outputs PB14/PB15 with deadtime (preload enabled).

Generating from my ioc file using HAL driver and invoking:

  HAL_HRTIM_WaveformOutputStart(&hhrtim1, HRTIM_OUTPUT_TD1 | HRTIM_OUTPUT_TD2);
  HAL_HRTIM_WaveformCountStart(&hhrtim1, HRTIM_TIMERID_MASTER | HRTIM_TIMERID_TIMER_D);

I see no outputs.

Instead, generating from my ioc file using LL driver and invoking:

 LL_HRTIM_EnableOutput(HRTIM1, LL_HRTIM_OUTPUT_TD1 | LL_HRTIM_OUTPUT_TD2);
 LL_HRTIM_TIM_CounterEnable(HRTIM1, LL_HRTIM_TIMER_MASTER | LL_HRTIM_TIMER_D);

it seems the PWMs are working.

 

Am I missing some APIs calling for HAL approach?

 

I am attaching .ioc (Driver Selector LL) and main.c (stm32g4xx_it.c is default).

 

Thanks for any support,

F

 

0 REPLIES 0