adc_sampling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-01 2:44 AM
I have generated an pwm of 1khz from timer now I want to read adc reading for once for each cycle of pwm after 50 microsecond of rising edge how to do if anyone have code please send in stm 32 .
- Labels:
-
STM32Cube MCU Packages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-01 4:43 AM - edited ‎2023-09-01 5:07 AM
Hello Ishu,
First of all on which STM32 MCU do you wish to implement that?
You have a great video explaining the ADC and DMA here and a wiki here. This should help you.
Regards,
Stassen
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-04 3:36 AM
I AM USING NUCLEO-G491RE MY SYSTEM CLOCK 96MHZ I HAVE USED ADC INTERNAL TRIGEERING TO ADC .I HAVE CONFIG AN TIMER3 FOR 400US THAT WILL TRIGGER ADC INTERNALLY ON RISING EDGE AND ADC IN INTRRUPT MODE . I HAVE USED TIMER2 FOR PWM GENERATION . BY THIS SHLOUD GET ADC VALUE ON RISIING EDGE ONLY BUT I AM GETTING VALUE ON RISING AND FALLING EDGE BOTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-05 1:29 AM
Hello Ishu,
You should be triggering only on rising edge for your ADC trigger if i understand well your question like below:
or else it will trigger on both rising and falling edge.
Regards,
Stassen
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
