cancel
Showing results for 
Search instead for 
Did you mean: 

In STM32F103C8T6 , Location of code where HAL sets CCR register for TIMER1 (with DMA array) ?

HJang.3
Associate II

I am using STM32F103C8T6.

Using TIMER 1 channel 1 for complementary PWM generation using HAL with DMA array .

But i also want to update CCR value when half of DMA buffer is done.

i.e something like

if( array_index < array_size ) CCR1 = array[x];

else CCR1 = ARR - array[x];

Now in STM32 CUBE MX I cant locate where CCR is set in HAL function.

If you can tell , it will be of great help.

Or if there is another method to do so.

THANK YOU.

0 REPLIES 0