DFDSM injection conversion triggered via internal timer.
- October 28, 2022
- 1 reply
- 1792 views
Hello,
I am trying to do an injection conversion of the DFSDM peripheral with the read process being triggered via an internal timer (TIM1) utilising the HAL drivers. Specifically, I want to set the counter to count up and trigger the read process every 9 kHz.
So far I haven't had any success in getting the injection conversion complete interrupt to fire, I have confirmed this by setting a breakpoint in the DFSDM1_FLT0_IRQHandler() func, note this is never reached.
I am initialising the DFSDM via the cube IDE. I have successfully being able to do a regular conversion when triggering via software i.e. when calling "HAL_DFSDM_ChannelCkabStart_IT()". and have been getting accurate values. I am nearly certain the setup of TIM1 is correct as when trying to do a read of an ADC in the same way it is successful.
I have attached screen shots detailing how I have set up the DFSDM, TIM1, and the small amount of code that should be required to get everything to work. Note, I am using an STM32L562VET6Q.
Any help would be greatly appreciated as I am starting to run out of ideas in regards to a fix.
Cheers,
Sam
