SPRUJF7 March 2025
The HSEC180ADAPEVM-AM2 has one USB2.0 interface connected to the USB0 peripheral on the AM261x MCU. On the AM261x controlSOM, the USB signals are routed from the MCU to the SOM HD Connector J2.
On the SOM to HSEC adapter board, the USB0_DM and USB0_DP nets are routed to a common mode choke to reduce noise on the high-speed USB signal bus. The nets are passed through a TPD4E02B04 ESD protection diode, and are terminated at a Micro-USB receptacle. Figure 2-8 details the USB implementation on the HSEC180ADAPEVM-AM2.
The USB mode of operation is controlled using a set of DIP switches - SW1 and SW2. The setting of the DIP switches determines the USB mode of operation, and is detailed in Table 2-8 below.
| SW1 (USB0_DRVVBUS) | SW2 (USBMICROAB_ID) | USB Mode |
|---|---|---|
| OFF / RIGHT (TPS2051B disabled) | ON / RIGHT (3V3) | Device Mode |
| ON / LEFT (TPS2051B enabled) | OFF / LEFT (GND) | Host Mode |
USB Device Mode
When using the AM261x device in USB device mode, the VBUS pin of the Micro-USB receptacle is used to detect when voltage has been applied to or removed from the USB connector. Software running on the AM261x manages the internal USB PHY according to the presence of 5V or 0V on the VBUS pin.
USB Host Mode
When using the AM261x device in USB Host mode, 5V on the VBUS pin of the Micro-USB receptacle is required. On the HSEC180ADAPEVM-AM2, this supply is generated using a TPS2051B USB Power Distribution switch which sources the main 5V system input from the HSEC connector and supplies a separate 5V input for the USB bus. As shown in Table 2-8 above, SW1 must be set to ON to enable the TPS2051B USB Power Distribution switch, and SW2 must be OFF to indicate that the device is set to USB Host mode. SW1 controls the state of the USB0_DRVVBUS net, which is connected to a dedicated USB0_DRVVBUS pin on the AM261x MCU and drives the enable pin on the TPS2051B. The OC pin of the TPS2051B is an active low, open-drain output that occurs when an overcurrent or overtemperature shutdown condition is detected. The USB0_VBUS_OC net is connected to the UART2_TXD pin on the AM261x MCU and is configured as a GPIO for this use case.