Configuration Request TIM1 based PWM generation with DMA ,the TIM1 will triger the ADC with DMA
Hello ,
I want to make 4 channel PWM signal using TIM1 (with complimentory also) .While the TIM1 is used to triger the ADC to get sample .
I am getting the pwm wave , But ADC is not triggering or not working . What configuration i require
Please see more details below
I am Trying to generate 2 Channel PWM Genertaion [ CH1 CHN and PWD Generation CH2CH2N ] from DMA Buffer .
HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_1, (uint32_t *)sin_table, 160);
HAL_TIMEx_PWMN_Start_IT(&htim1, TIM_CHANNEL_1);
HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_2, (uint32_t *)sin_table, 160);
HAL_TIMEx_PWMN_Start_IT(&htim1, TIM_CHANNEL_2);
Configuration as follows



While PWM generation am trying to TIM1 is to triger the ADC

The ADC configured as follows
HAL_ADCEx_Calibration_Start(&hadc);
HAL_ADC_Start_DMA(&hadc, (uint32_t *)ADC_RES, 200);



Am here attached the main.c file
