AnsweredAssumed Answered

STM32F0x: ADC single conversion triggered by OC

Question asked by stanzani.marco on Sep 20, 2016
Latest reply on Sep 21, 2016 by FTITI.Walid
Hi there
I am trying to set up the output compare value of timer3 in my STM32F030 to trigger a single channel, single shot ADC conversion every 60ms. I'd like to use the HAL drivers (see UM1785, I am bulding the project around the CubeMX). How do I setup the trigger? I suppose I have to write a 16 bit value somewhere to program the OC timeout suited for 60ms. Should I use HAL_TIM_OC_MspInit API? how?

I cannot find example code around, please advice

many thanks