This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USBH - USB_CM3

Hi,
i want to use USB host controller on LPC1778 with USB_CM3.lib and usbh_ohci_lpc177x_8x driver. The board is custom and there are no ISP1301. In driver - usbh_ohci_lpc177x_8x i saw functions for working with I2C(ISP1301). When i calling "usbh_init(0)" and "usbh_engine(0)" I2C functions are too calling. Is it possible to modify driver to work without ISP1301 as host only?

Thank's in advance !

Parents
  • > In driver - usbh_ohci_lpc177x_8x i saw functions for working with I2C(ISP1301).

    Surely, usbh_ohci_lpc177x_8x.c (in C:\Keil\ARM\RL\USB\Drivers\) supposes an external OTG-PHY, controlled over I2C.

    > Is it possible to modify driver to work without ISP1301 as host only?

    It's possible.
    Start with usbh_ohci_lpc17xx.c, instead of usbh_ohci_lpc177x_8x.c
    The OHCI host controller is common on all of LPC17xx family. Then you may apply usbh_ohci_lpc17xx.c.
    The difference is that LPC177x_8x has two USB ports.
    Depending on the USB port(s) your application assigns, usbh_ohci_lpc17xx.c is modified a little.
    Which port are you using, port1 (USB_D+1/D-1) or port2 (USB_D+2/D-2), or both?

    Tsuneo

Reply
  • > In driver - usbh_ohci_lpc177x_8x i saw functions for working with I2C(ISP1301).

    Surely, usbh_ohci_lpc177x_8x.c (in C:\Keil\ARM\RL\USB\Drivers\) supposes an external OTG-PHY, controlled over I2C.

    > Is it possible to modify driver to work without ISP1301 as host only?

    It's possible.
    Start with usbh_ohci_lpc17xx.c, instead of usbh_ohci_lpc177x_8x.c
    The OHCI host controller is common on all of LPC17xx family. Then you may apply usbh_ohci_lpc17xx.c.
    The difference is that LPC177x_8x has two USB ports.
    Depending on the USB port(s) your application assigns, usbh_ohci_lpc17xx.c is modified a little.
    Which port are you using, port1 (USB_D+1/D-1) or port2 (USB_D+2/D-2), or both?

    Tsuneo

Children
No data