2019-10-17 01:48 AM
I want to use Comparator, for comparing external voltage with Vref in stop mode
so that if external voltage is more than Vref, wake up from stop mode and do something.
I read example code about Comparator, LPTIMER ... but they are not exact solution about my project
so Can you give some idea or example about Using Comparator in stop mode ?
Solved! Go to Solution.
2019-10-17 03:00 AM
A thing about examples is that they are just that - examples. It is rare that one exactly matches your intended use.
What I recommend you to do is read relevant parts of the Reference Manual for your stm32l0xx. This is a huge document, but that's only because all these stm32 are amazingly powerful devices. It has sections on comparators and low-power modes. (I say this because I didn't get a clue as to whether or not you've studied this from your question).
My guess is that there will be separate control of VRef (perhaps in the section for the ADC) because VRef and any potential-dividers always burn power.
Hope this helps,
Danish
2019-10-17 03:00 AM
A thing about examples is that they are just that - examples. It is rare that one exactly matches your intended use.
What I recommend you to do is read relevant parts of the Reference Manual for your stm32l0xx. This is a huge document, but that's only because all these stm32 are amazingly powerful devices. It has sections on comparators and low-power modes. (I say this because I didn't get a clue as to whether or not you've studied this from your question).
My guess is that there will be separate control of VRef (perhaps in the section for the ADC) because VRef and any potential-dividers always burn power.
Hope this helps,
Danish