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

USB

Hello everyone

I am using LPC2468 USB port 1 for USB host and usb port 2 for usb HID device.I successfully implemented both usb port 2 for usb HID device and also usb port 1 for usb host mass storage class.But I am facing a problem that when I use usb host and usb HID Device independently they works ok but when i use usb host after using usb device for my purpose it doesn,t work program hangs.I think it,s because of common interrupt vector address .Can we use different vector address for both.Can anybody guide me about this?

Parents
  • USB host and device share the same interrupt vector. Therefore, you have to merge original host and device ISRs into single one.

    At the entry of this USB ISR, it determines the source(s) of current interrupt.
    USBIntSt.USB_HOST_INT (bit 3) indicates host event. Other bits of this register tell device event. Seeing these bits, the original ISRs of host and/or device are called, respectively.

    Tsuneo

Reply
  • USB host and device share the same interrupt vector. Therefore, you have to merge original host and device ISRs into single one.

    At the entry of this USB ISR, it determines the source(s) of current interrupt.
    USBIntSt.USB_HOST_INT (bit 3) indicates host event. Other bits of this register tell device event. Seeing these bits, the original ISRs of host and/or device are called, respectively.

    Tsuneo

Children