2026-02-25 10:24 AM
Couldn't see a definitive answer in the datasheet - What is the source \ sink capability of a USART TX \ RTS pin?
The nearest answer I could find was page 128 of DS13313 Rev 5 -
"GPIOs (general purpose input/outputs) can sink or source up to ±8 mA, and sink or source up to ±20 mA"
but there isn't anything specifically that mentions alternate function pin capability.
Can TX and RTS pins directly source or sink an LED via a 220 Ohm resistor (that would be ~15mA each) ?
I'm thinking I may have to add external drives like high side MOSFETs otherwise.
Thanks.
Solved! Go to Solution.
2026-02-25 10:28 AM
AF functionality uses the same GPIO circuitry to source/sink current. The drive strength is the same as what you've found in the datasheet.
> Can TX and RTS pins directly source or sink an LED via a 220 Ohm resistor (that would be ~15mA each) ?
Yes, provided the sum of all sources/sink remains within limits. Something like 200 mA.
2026-02-25 10:28 AM
AF functionality uses the same GPIO circuitry to source/sink current. The drive strength is the same as what you've found in the datasheet.
> Can TX and RTS pins directly source or sink an LED via a 220 Ohm resistor (that would be ~15mA each) ?
Yes, provided the sum of all sources/sink remains within limits. Something like 200 mA.
2026-02-26 1:08 AM
Excellent.
Was running out of PCB space so thats good news. 6 LEDs makes 180mA, so just got under that too :o)
2026-02-26 1:23 AM
Basically the same question (and answer) here: STM32L Series LPUART Voltage Level.
As @TDK said, it's the GPIO specifications - not specific to the AF in use.
2026-02-26 6:13 AM
Why do you keep marking your own replies as the solution?
2026-02-26 7:51 AM - last edited on 2026-02-26 8:19 AM by Andrew Neil
Why does your platform allow marking of own replies to solutions?
If its a platform bug you should raise an engineering change request to fix it.
2026-02-26 7:58 AM
"6 LEDs makes 180mA, so just got under that too"
Did you though? Limit for F723 looks to be 120 mA.
Also note: "This current consumption must be correctly distributed over all I/Os and control pins. The total output current must not be sunk/sourced between two consecutive power supply pins referring to high pin count LQFP packages."
2026-02-26 8:11 AM
It's not a bug. If your own answer was the solution, you should mark it as such. But that's not what is happening.
2026-02-26 8:18 AM - edited 2026-02-26 8:27 AM
@Bags wrote:Why does your platform allow marking of own replies
because sometimes you do answer your own question!
But the posts you've marked are not the answers to the questions - they're just your comments on the answer.
See here for how to change the marked post.
@Bags wrote:If its a platform bug
No, it's not a bug.
PS:
Here is an example where I did answer my own question.
2026-02-26 8:31 AM
Although if LEDs are 15 mA each 6 * 15 = 90 mA...