cancel
Showing results for 
Search instead for 
Did you mean: 

simple USB circuit

Vincenzo Gibiino
Associate II
Posted on June 03, 2017 at 18:53

hello,

I would like to have some clarification about the USB circuit needed for the stm32f103 (and similar), I am making a simple development board just to start learning this MCU

0690X00000607DzQAI.png

This is taked from the maple mini

https://github.com/leaflabs/maplemini

also the rev5/6 and other boards present a similar circuit. DISC cames from PB9

my guess is that the 2 transistors stay there to power the R10 to pull up DP when the board is connected to USB otherwise, when powered from other sources, DP and DM could be used as normal GPIO (PA12 and 11). Am i wrong?

about the two cap for the usb line (c10 and 11) and the pull up for DP (R10) i saw them only in a few boards, could i live without them or is it suggested to add all?

In other schematics (example: 

http://eleccelerator.com/stm32f4stamp-breakout-board/

) i found that sometimes the USB ID is wired to PA10, what does it mean?

Thanks for reading

#basic-circuit #usb #analog
4 REPLIES 4
Omar BOUZOURRAA
Associate II
Posted on June 04, 2017 at 16:35

Hello

Gibiino.Vincenzo

!

What you said about he transistors is totally true !

Concerning the capacitors you can do it without hem but I don't advise you do remove them because they're useful fore high frequency noise and glitch rejection. By the way, noise can totally distort data transmission.

Posted on June 06, 2017 at 18:02

Thanks Omar Bouzourraa,

I will follow your suggestion and use capacitors and pull up resistor. Just to be sure: 1.5k is referred to 3.3v or 5v?

About this other question:

In other schematics (example:

/external-link.jspa?url=http%3A%2F%2Feleccelerator.com%2Fstm32f4stamp-breakout-board%2F

) i found that sometimes the USB ID is wired to PA10, what does it mean?

I didn t found nothing, someone have any hint?

Posted on June 12, 2017 at 13:56

Hi

Gibiino.Vincenzo

‌,

  • On the STM32F103 devices, It's mandatory to pull up the the USB_DP pin with a 1.5KΩ resistor to a 3.0 to 3.6 voltage range.This is already indicated on the datasheet as a note below table ''USB DC electrical characteristics'' (USB characteritics section):

0690X00000607JTQAY.png

  • The STM32F103 MCUs support a USB2.0 FS device interface. While, the STM32F4 devices support a USB 2.0 OTG FS.Here, when the dual role device mode is used, the host or peripheral role (the default role) is assumed depending on the ID input pin. For this reason, the ID pin of the connector should be wired to PA10 (OTG_FS_ID).Please refer to section ''ID line detection'' on the reference manual (for devices where OTG is supported) for more details.

Khouloud.

Posted on June 13, 2017 at 00:46

thank you very much Khouloud i will follow your suggestion