Can ADC1 analog watchdog trigger TIM8?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-06 11:18 AM
Is it possible for any of the analog watchdogs of ADC1 to be used to trigger TIM8? I would like to stop a PWM generated using TIM8 when an ADC1 conversion crosses a threshold. Table 251, Interconnect to the tim_etr input multiplexer seems to indicate that this is not possible, but Table 73, Interconnect 2 suggests that perhaps it is possible. Which table is correct? Table 73 seems to indicate that the triggers are somehow tied to ADC master slave behavior. Is this really the case?
thanks,
galen
- Labels:
-
ADC
-
STM32G4 Series
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-10 4:51 AM
Hello @galens​ ,
Thanks for your post.
Both tables should have the same – but Table 73 needs a bit explanation:
Where for example:
- adc12_awd1_m : This is paired ADC12 watchdog 1 master. And master from ADC12 pair is ADC1. So it is in fact adc1_awd1 signal.
- adc12_awd1_s1 : This is paired ADC12 watchdog 1 slave. And slave from ADC12 pair is ADC2. So it is in fact adc2_awd1 signal.
- adc345_awd2_s1 : This is paired ADC34 watchdog 2 slave. And slave from ADC34 pair is ADC4. So it is in fact adc4_awd2 signal.
I have raised your feedback internally to modify RM0440 to have Table 73 more correct.
Please select the post as a "Best Answer" if it answered your question.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-10 9:16 AM
Thanks for your response. Based on that, the answer to my original question appears to be no, TIM8 cannot be triggered by an ADC1 watchdog. Only the watchdogs of ADC2 and ADC3 can trigger TIM8.
(Note that there is presumably an error in the TIM20 column of Table 73. On the timx_etr8 row, adc345_awd2_m should be adc345_awd1_m.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-11 12:17 AM
You are right, the TIM20 column will be corrected in the coming RM0440.
Thanks for pointing out this typo.
Imen
Thanks
Imen
