I am using STM32F401CCU6 for making Oscilloscope with Waveform on display, I need to display upto 1kHz waveform in 300points. For that i am using 4Channels ADC with DMA and timer for Triggering. The code used for ADC starting :if(HAL_OK != HAL_ADC_St...
In STM32F103C8T6 , I am using timer1 channel 1 and channel2 for PWM generation using DMA.TIM1_CH1 uses DMA1_Channel 2and TIM1_CH2 uses DMA1_Channel 3.NOW i am usingfull transfer interrupt : HAL_TIM_PWM_PulseFinishedCallbackand half transfer interr...
My board is STM32F103C8T6.I am generating complementary PWM using TIMER 1 with DMA for changing duty cycle.to be precise SINE WAVE PWM (or SPWM) using CENTRE ALIGNED MODE 2.Now i also want to generate SQUARE wave from channel2 , the wave should have...
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 C...
Thanks man.To understand your answer better , I first need to read regarding the registers you mentioned.Also, just migrated from arduino to stm32 a week ago. So thought of cubeMX as good starting point.Also In the code attached below ,I updated duty...
Just found a method.void HAL_TIM_PWM_PulseFinishedHalfCpltCallback(TIM_HandleTypeDef *htim){
if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_1)
{----}
if(htim->Channel == HAL_TIM_ACTIVE_CHANNEL_2)
{----}
}where channel 1 is Ti...
I can calculate CCR values, as I already have DMA array buffer of CCR values for different duty cycle. Now i want to update that DMA array values while the program is running .How can i do that ?THANKS.