Hi all
I have an electronic question regarding lines to program a microcontroller:
Which USB-pins are required for programming through the USB port of the microcontrollerboards?
Are that really only the 4 pins of the original USB:
1 VBUS +5 Volt .. (red)
2 D- ...... data- ... (white)
3 D+ ..... data+ ... (green)
4 GND .. 0V ....... (black)
best regards
Hans
Which pins are required for USB programming
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- leafon
- Posts: 32
- Joined: Thu Sep 22, 2022 12:40 am
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Which pins are required for USB programming
The D+/D- pair will work for 1Mbps and 12Mbps connections. Microcontrollers use a 12Mbps connection, so those are all you need.
The only other signal in a USB-2.0 connection would be the ID line, which is only used by USB-OTG.
- HansH
- Posts: 117
- Joined: Wed Apr 14, 2021 2:49 pm
Re: Which pins are required for USB programming
@adafruit_support_mike
Thank You for additional information
best regards
Hans
Thank You for additional information
and I guess, this OTG feature is (1) not supported by most microcontrollers like ItsyBitsy and (2) would only be required, if I wanted to connect some periphery like an USB Stick or mouse or whatever, correct ?The only other signal in a USB-2.0 connection would be the ID line, which is only used by USB-OTG.
best regards
Hans
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Which pins are required for USB programming
Yes.
The biggest issue is that you'd have to program the microcontroller to work as a USB host. That's possible, but would be an advanced project.
The biggest issue is that you'd have to program the microcontroller to work as a USB host. That's possible, but would be an advanced project.
Please be positive and constructive with your questions and comments.