AnsweredAssumed Answered

STM32f3 embedded comparators

Question asked by Arganas on Jan 16, 2014
Latest reply on Jan 28, 2014 by Arganas
Firstable, sorry for so many new topics, but as i dig deeper and deeper into programming stm32 boards, i find a lot new questions. I wasn't able to find a topic which relates to my problem, so i just created a new, and here is my question: I know stm32f3 board has embedded comparators. Is it possible to put a ramp signal from external generator into one into I/O pins and the same signal into one of comparator's input. Then detect a falling edge of the signal go to interrupt which starts timer, and stops it when signal reaches threshold value? Is it possible to change treshold value in my program? Maybe there are some examples written by ST for comparators usage? Any help and answers to my this problem will be highly appreciated. Thanks in advance.

Edit: I found example on OPAMP_PGA for stm32, but that just gives me understanding how to configure comparator.