AnsweredAssumed Answered

CubeMX4.18 STM32L011D4 Input Capture triggered from Comparator event

Question asked by GeorgeP on Dec 13, 2016
Latest reply on Dec 13, 2016 by waclawek.jan

Hello,

 

How can I set up the Input Capture peripheral to be triggered by the Comparator event?

I've set COMP1[+] on PA1 and [-] from Vref. Without being sure I've configured the COMP1 trigger mode to event mode on both edges. 

 

In the comparator's HAL file the comments mention that "Comparators output to timers is set in timers instances", but I haven't been able to find a relevant option.

 

My goal is to measure the time between each voltage threshold edge on PA1 vs Vref.

 

Thanks in advance for any advice!

Outcomes