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.

AM1808 Initialization of USB PHY

Guru 15520 points
Other Parts Discussed in Thread: AM1808, OMAPL138

Hi,

I have questions about AM1808 PSC(Power Sleep Controller) and USB.

Q1.Do I need to disable LPSC MDCTLn.NEXT bit of USB2.0 before initialize USB PHY?
   Or should I enable MDCTLn.NEXT before USB PHY initialization?

Q2.In AM1808 TRM(spruh82a) page.1638, there are example 34-1 of how to initialize the USB Controller.
   In this example, CFGCHIP2 register bit[14:13] OTGMODE are set to "00"(No-override),
   bit9 USB0OTGPWRDN are set to '0'(OTG SS),
   bit4 USB0VBDTCTEN are set to '1'(VBUS Comparator Enable).
  
   I'm using AM1808 USB2.0 as Device.
   Do I need to configure CFGCHIP2 register as above value?
  
   I want to know what value need to be set in CFGCHIP2 for USB device.

best regards,
g.f.

  • Hi,

    We will work on this and will let you know the update shortly.

    Thanks & regards,
    Sivaraj K
  • Hi,

    Q1.Do I need to disable LPSC MDCTLn.NEXT bit of USB2.0 before initialize USB PHY?
    Or should I enable MDCTLn.NEXT before USB PHY initialization?

    It is better to enable the PSC of USB before USB PHY initialization.


    Q2.In AM1808 TRM(spruh82a) page.1638, there are example 34-1 of how to initialize the USB Controller.
    In this example, CFGCHIP2 register bit[14:13] OTGMODE are set to "00"(No-override),
    bit9 USB0OTGPWRDN are set to '0'(OTG SS),
    bit4 USB0VBDTCTEN are set to '1'(VBUS Comparator Enable).

    I'm using AM1808 USB2.0 as Device.
    Do I need to configure CFGCHIP2 register as above value


    You can try our ARM starterware example (USB mass storage in device mode) in your AM1808 processor.
    C:\ti\OMAPL138_StarterWare_1_10_04_01\build\armv5\cgt_ccs\omapl138\evmOMAPL138\usb_dev_msc

    You can also use the examples from AM1808 starterware package.
    software-dl.ti.com/.../index_FDS.html
  • Hi Shankari,

    Thank you for the answer.
    I checked the Starterware Example. In the example, CFGCHIP2 register
    bit9 USB0OTGPWRDN are also set to '0'(OTG SS).
    So, this bit need to be set even USB device mode, is it correct?

    best regards,
    g.f.