3.4.2 USB Host/Device

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 SAM9X60-Curiosity board features three USB communication ports named USB-A to USB-C™.

The USB-A port can act only as a USB device interface and can be accessed via the USB Micro-B connector (J1).

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 Power Supply Topology and Power Distribution. In most cases, this port is limited to 500 mA.

In the case of board bring-up, USB-A is the default port used to connect to the MPU over SAM-BA (SAM Boot Assistance). For more information, refer to the product web page.

Figure 3-14. USB-A Port
Table 3-6. USB-A Connector Signal Descriptions
Pin NoSignal NameSignal Description
15V_VBUSAFirst port 5V power
2USBA_NFirst port data minus
3USBA_PFirst port data plus
4ID– (not used)
5GNDFirst port ground
Table 3-7. USB-A PIO Signal Descriptions
PIOSignal NameSignal Description
PA27USBA_VBUS_DETECT_PA27VBUS detection

The USB-B and USB-C ports are connected to the stacked USB Type-A connector (J10) and each port can act both as device and as host.

Figure 3-15. USB-B and USB-C Ports
Table 3-8. USB-B and USB-C Connector Signal Descriptions
Pin NoSignal NameSignal Description
0EARTH_USBConnector chassis connected to ground
15V_VBUSBSecond port 5V power
2USBB_NSecond port data minus
3USBB_PSecond port data plus
4GNDSecond port ground
55V_VBUSCThird port 5V power
6USBC_NThird port data minus
7USBC_PThird port data plus
8GNDThird port ground

In Host mode, the USB Host ports B and C are equipped with 500 mA high-side power switches to enable self-powered and bus-powered applications. The USBx_EN_PDxx signal controls 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 USBx_OVCUR_PAxx signal. For more information about the MIC2026, refer to the product web page.

Table 3-9. USB Power Switch PIO Signal Descriptions
PIOSignal NameSignal Description
PD18USBB_EN_PD18Power switch enable (active high)
PA26USBB_OVCUR_PA26Indicates overcurrent (open drain)
PD15USBC_EN_PD15Power switch enable (active high)
PA28USBC_OVCUR_PA28Indicates overcurrent (open drain)