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?
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
Thanks sir for your kind support
As Per your instruction i examine through Usbintst register third bit is USB_INT_REQ_DMA is this is the USB_HOST_INT line ? I just want to confirm it.
Sir can you please elaborate it if there is a thread related to this please send me the link. I will be very thankful to you.
> third bit is USB_INT_REQ_DMA
USB_HOST_INT (bit 3) is the fourth bit of USBIntSt. On the user manual, it is described on the OTG section (chapter 15, 7.1 USB Interrupt Status Register), neither on the USB device nor on host section.
Thanks Sir you solved my problem.