This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6745 PTP package USB0 usage

Can someone please explain how to properly connect the USB0 on the C6745 PTP package since ID, VBUS and DRVVBUS are not pinned out?

How do you enable device vs host mode of operation?

Are ID and VBUS tied internally since they are not pinned out?

Do you need to use a GPIO to control an external VBUS regulator in host mode?

thanks -emil

  • Emil,

    How do you enable device vs host mode of operation?
    You can use the "Override PHY" option located in SYSCFG0.CFGCHIP2.OTGMODE to force the USB0 to operate as a host or device.  Please refer to the system guide for more information on the CFGCHIP2 register definition.

    Are ID and VBUS tied internally since they are not pinned out?
    Since they are not pinned out, the OTGMODE field will determine the state of ID and VBUS.

    Do you need to use a GPIO to control an external VBUS regulator in host mode?
    Yes, you would need a GPIO to control the external Power Logic. One way to do this is to use the USBDRVVBUS interrupt that is generated by the core when it assumes the role of a Host. When this interrupt is received, you can configure the GPIO to a HIGH state to enable the external Power Logic or Charge Pump. Another method is to poll the state of DRVVBUS by monitoring STATR.DRVVBUS.  Based on the status of this field, you can drive the GPIO to reflect the same state externally.

    - Christina