Solved
Advanced Timer to ADC trigger
Posted on August 16, 2017 at 18:56
How can I trigger ADCs for injected conversion at CTR=PRD when my TIM8 is configured for up-down counting? I don't see any mechanism that can do this.
How can I trigger ADCs for injected conversion at CTR=PRD when my TIM8 is configured for up-down counting? I don't see any mechanism that can do this.
And what registers reflect CTR and PRD in your scenario?
If you are using CCR1 and CCR2 to control the TIM, then CCR3 or CCR4 would need to be programmed with the phase value you wish to trigger on. If the up-down nature of your configuration causes this to be sampled twice, then discard the one you're not interested in.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.