cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 GPIO SINK SOURCE CURRENTS

Ab1
Associate II

USING MCU - STM32H743XIH6
As per datasheet "STM32H743XIH6_Datasheet" page 139 it is mentioned that GPIO can sink/source 8 or 20 mA.

Ab1_0-1702972191661.png
When MCU will be going to source 8 mA and when it will source 20 mA?
Is there any current control configuration inside MCU?


And what amount of current Particular I/O will source, if configured as output push pull with no pullup/pulldown and driving low as follows.

Ab1_1-1702973390851.png

 



 

4 REPLIES 4
TDK
Guru

There's no explicit current control, just an internal limit. The chip provides a voltage and the circuit determines the current. It's not a binary system--the more current you take, the lower the voltage will drop from the rail.

If you feel a post has answered your question, please click "Accept as Solution".

Current is determined by the load, not the MCU.

The levels will change based on the ability of the transistors to conduct to the rails.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Thanks for quick response. understood point i.e.  Current is determined by the load, not the MCU.

Ab1
Associate II

Query: Using STM32H743XI EVAL BOARD, ERROR IN READING 2 ADC1 CHANNEL (PA0_C, PA1_C) IN DMA CIRCULAR MODE -

1ST CHANNEL GIVING ACCURATE COUNTS,

2ND CHANNEL SET AT 2V - ALWAYS VARIES ACCORDINGLY 1ST CHANNEL WHERE POT IS CONNECTED?

 

ADC CLOCK, CONFIGS AND DMA SETTINGS AS FOLLOWS:

 

Ab1_3-1705299477077.png

ADC CLOCK, CONFIGS AND DMA SETTINGS AS FOLLOWS:

Ab1_0-1705299278242.png

 

Ab1_1-1705299373441.png

 

Ab1_2-1705299413950.png

 

Tried example code also from STM32H7cubmx package (1.11.0), same result? anything missing from above configuration?