cancel
Showing results for 
Search instead for 
Did you mean: 

Can overlapping IN\OUT pins be used to internally route peripherals on STM32G4?

KHarb.1
Senior II

I’m using CubeIDE and I want to internally connect peripherals to the comparators. This doesn’t appear to be supported by CubeIDE, but I’m wondering if its still supported by hardware somehow.

I’m using an STM32G4 and I see that COMP6 INP lands on PB11, which is the same pin as OPAMP6 OUT. Can a pin overlap like this enable internal routing of OPAMP6 to COMP6?

I can also see that OPAMP outputs can be mapped to ADC inputs that also fall on external pins that overlap with COMP comparator inputs. PA2 doubles as COMP2 OUT and ADC1 IN3, which can map internally to OPAMP2_VOUT. Would this work?

Similarly, I want to drive a USART RX with comparators routed internally. I see that COMP6 OUT can land on the same pin as USART1 RX. Can I make the COMP drive the USART like this?

10 REPLIES 10

As far as i know, there is no internal connection nor "pin" connection from Comparator to UART.