Hello @Sudhakar.R
Change to Timer 3 and follow this configuration instead
PWM generation doesn't need any output since timer is triggering ADC internally.
Trigger output event set to Update Event so that event every time the timer counter reaches ARR. Also, you should adjust counter period depending on sampling frequency and the application requirements.
ADC should be triggered by Timer 3 trigger output event (For that reason you need to change to TIM3)
You don't need Output Compare 1 mode in this application.
Hope this helps
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL