2024-03-28 12:43 AM
Hi
Is there any info available regarding source sink current of analog comparators on the STM32G4 series.
The datasheet doesn't contain any info on this although the drive current of Opamps is mentioned as 500uA.
TIA
Solved! Go to Solution.
2024-03-28 12:57 AM - edited 2024-03-28 01:02 AM
Now, after a look at RM0440, section 24.3.1, you will realise that the (digital) output of the comparators is not routed directly to the pins, but via a (digital) polarity switch. Only then is the signal available at the GPIO, which results in the current carrying capacity of a GPIO.
[edit] I forgot to point out that the respective COMPx_OUT is an Alternate function output, which is visible in fig. 25 as input of the digital GPIO driver. [/edit]
Does it answer your question?
Regards
/Peter
2024-03-28 12:57 AM - edited 2024-03-28 01:02 AM
Now, after a look at RM0440, section 24.3.1, you will realise that the (digital) output of the comparators is not routed directly to the pins, but via a (digital) polarity switch. Only then is the signal available at the GPIO, which results in the current carrying capacity of a GPIO.
[edit] I forgot to point out that the respective COMPx_OUT is an Alternate function output, which is visible in fig. 25 as input of the digital GPIO driver. [/edit]
Does it answer your question?
Regards
/Peter
2024-03-28 01:14 AM - edited 2024-03-28 01:16 AM
Hi
Is it correct to say that the comparator output source sink current spec is same as the GPIO source sink capability.
The GPIOs (general purpose input/outputs) can sink or source up to ±8 mA, and sink or
source up to ± 20 mA (with a relaxed VOL/VOH).
This is stated in the STM32g491 datasheet Pg114.
TIA
2024-03-28 01:24 AM
Yes.