Is there any way to read the comparator's output voltage without connecting the output pin to the ADC?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-10 4:24 AM
I know the microcontroller has built-in comparators and I'm trying to use it as a transimpedance amplifier. So, I want to test the comparators but the Necleo-WB55 developer kit doesn't have built-in comparators.
So, I have to test it on my custom board with the STM32WB55VGY6TR microcontroller.
However, there is two big concern.
The one is that I didn't connect any output pin of the comparator to ADC in my custom board.
The other is that ADC cannot read negative voltage but the transimpedance amplifier is inverted OP-AMP. So, the output could be negative.
So, I have a question here.
Is there any way to read the comparator's output voltage without connecting the output pin to the ADC? (or is the microcontroller designed already for this purpose? because I found that it is not mandatory to assign the output pin in STM32cubeMX.
If not, can I connect the output pin to the ADC even though the comparator may generate a negative voltage?
Solved! Go to Solution.
- Labels:
-
ADC
-
COMP
-
STM32WB series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-10 5:50 AM
You cannot use a comparator as a transimpedance amplifier. Unlike operational amplifiers, comparators have no phase compensation, which makes them completely unstable in the analogue range.
So you will have to implement the transimpedance amplifier externally and then you can also use the first, non-inverting circuit to stay in the positive range.
Regards
/Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-10 5:50 AM
You cannot use a comparator as a transimpedance amplifier. Unlike operational amplifiers, comparators have no phase compensation, which makes them completely unstable in the analogue range.
So you will have to implement the transimpedance amplifier externally and then you can also use the first, non-inverting circuit to stay in the positive range.
Regards
/Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-10 6:58 AM
Oh. I understood.
Thanks for your reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-10 10:15 AM
Could you recommend any I-V converter that makes positive feedback instead of a transimpedance amplifier?
