3.4.3 USB Host/Device Interface
The USB (Universal Serial Bus) is a hot-pluggable general-purpose high-speed I/O standard for computer peripherals. The standard defines connector types, cabling, and communication protocols for interconnecting a wide variety of electronic devices. The USB 2.0 Specification defines data transfer rates as high as 480 Mbps (also known as High-Speed USB). A USB host bus connector uses four pins: a power supply pin (5V), a differential pair (D+ and D- pins) and a ground pin.
The SAMA7D65-Curiosity Kit board features three USB communication ports named USB-A, USB-B and USB-C.
On this board, the USB-A port can act only as a USB device interface and can be accessed via the USB Type-C connector (J3).
Two resistors are placed on its power rail to form a voltage divider, converting 5V into 3.3V that is then used to signal the presence of a USB host to the MPU.
The USB-A port is used as a power source, as mentioned in USB Supply Input. In most cases, this port is limited to 500 mA.
Pin No. | Signal Name | Signal Description |
---|---|---|
A4, A9, B4, B9 | USBA_VBUS_5V | USB 5V power input |
A7, B7 | USBA_CONN_N | USB port data minus |
A6, B6 | USBA_CONN_P | USB port data plus |
A1, A12, B1, B12 | GND | Ground |
CC1, CC2 | CC1, CC2 | Configuration channel |
PIO | Signal Name | Signal Description |
---|---|---|
PC8 | USBA_VBUS_DETECT_PC8 | VBUS detection |
The USB-B port is exposed on a USB Type-A connector and acts as host.
Pin No. | Signal Name | Signal Description |
---|---|---|
1 | USBB_VBUS_5V | USB 5V power output |
2 | USBB_CONN_N | USB port data minus |
3 | USBB_CONN_P | USB port data plus |
4 | USBB_GND | Ground |
The USB-C port is exposed on another USB Type-A connector and acts as host.
Pin No. | Signal Name | Signal Description |
---|---|---|
1 | USBC_VBUS_5V | USB 5V power output |
2 | USBC_CONN_N | USB port data minus |
3 | USBC_CONN_P | USB port data plus |
4 | USBC_GND | Ground |
In Host mode, the USB host ports B and C are both equipped with a 500-mA high-side power switch output from one MIC2026 device to enable self-powered and bus-powered applications. USBB_EN_5V_PC20 and USBC_EN_5V_PC21 signals control the current limiting power switch MIC2026, which in turn supplies power to a client device. Per the USB specification, bus-powered USB 2.0 devices are limited to a maximum of 500 mA, therefore the MIC2026 limits the current and indicates an overcurrent with the USBB_OVCUR_PC18 and USBC_OVCUR_PC19 signals. For more information about the MIC2026, refer to the product web page.
PIO | Signal Name | Signal Description |
---|---|---|
PE1 | USBB_EN_5V_PC20 | USB-B host power enable signal |
PD31 | USBB_OVCUR_PC18 | USB-B power overcurrent interrupt line |
PE2 | USBC_EN_5V_PC21 | USB-C host power enable signal |
PE0 | USBC_OVCUR_PC19 | USB-C power overcurrent interrupt line |