Author Topic: STM32F1 PC13 LED  (Read 830 times)

0 Members and 1 Guest are viewing this topic.

Offline ipek.grgcTopic starter

  • Contributor
  • Posts: 15
  • Country: tr
STM32F1 PC13 LED
« on: May 15, 2020, 01:47:38 pm »
Hello everyone, hope you are doing okay.

In STM32F103C8's datasheet, Rev 17 page 33, it says:

" PC13, PC14 and PC15 are supplied through the power switch. Since the switch only sinks a limited amount of current (3 mA), the use of GPIOs PC13 to PC15 in output mode is limited: the speed should not exceed 2 MHz with a maximum load of 30 pF and these IOs must not be used as a current source (e.g. to drive an LED). "

But, as far as i know, in Blue Pill's design PC13 is driving a LED. How come? I am wondering.

Thanks! Be safe.
 

Offline exe

  • Supporter
  • ****
  • Posts: 2563
  • Country: nl
  • self-educated hobbyist
Re: STM32F1 PC13 LED
« Reply #1 on: May 15, 2020, 01:57:14 pm »
Nice catch. I guess this answers it: https://electronics.stackexchange.com/questions/440929/current-sinking-with-pc13-on-stm32f103c8t6 .
TL;DR: the current supposed to be within the limits if the board is done properly. But I can easily imagine that knock-off clone would violate this.
 
The following users thanked this post: ipek.grgc

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4078
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: STM32F1 PC13 LED
« Reply #2 on: May 15, 2020, 02:25:00 pm »
Also, in the bluepill schematic PC13 is in sink configuration, not source. I suspect impact of sink is a lot smaller compared to source.
 
The following users thanked this post: ipek.grgc

Offline exe

  • Supporter
  • ****
  • Posts: 2563
  • Country: nl
  • self-educated hobbyist
Re: STM32F1 PC13 LED
« Reply #3 on: May 15, 2020, 08:13:43 pm »
I think that text from the datasheet is inaccurate. Long below that I found this text:

> The GPIOs (general-purpose inputs/outputs) can sink or source up to ±8 mA, and sink or
source up to ±20 mA (with a relaxed VOL/VOH) except PC13, PC14 and PC15 which can
sink or source up to +/-3mA.

Page 65: https://www.st.com/resource/en/datasheet/stm32f103c8.pdf
 
The following users thanked this post: ipek.grgc


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf