EmbeddedRelated.com
Forums

Error in USB interrupt Endpoint.

Started by saei...@yahoo.com June 2, 2012
dear,
I used endpoint in lpc2468 in Ctrl & Bulk mode. but when i use interrupt endpoint, lpc not received any interupt.
I test CDC, MSC, HID with successful in bulk & ctrl endpoint.

may be have big different between these mode in LPC? (in initialization or using)

thanks.

An Engineer's Guide to the LPC2100 Series

Is it device or host?

On the device side, there is no difference on the process of USB engine and firmware for bulk and interrupt endpoints. These transfer types are carried over IN or OUT transactions. Just the scheduling (timing) of transactions is different. On the USB device engine of NXP LPC families, endpoints with double buffer are called bulk one, and single buffer are named as interrupt endpoints. Actually, these endpoints are replaceable each other.

On the host side, the OHCI on LPC families has a separate list for periodical scheduling of interrupt and isoc endpoints. Scheduling of bulk and control endpoints are managed on their own list, respectively.

Tsuneo

--- In l..., saeidjavidi@... wrote:
>
> dear,
> I used endpoint in lpc2468 in Ctrl & Bulk mode. but when i use interrupt endpoint, lpc not received any interupt.
> I test CDC, MSC, HID with successful in bulk & ctrl endpoint.
>
> may be have big different between these mode in LPC? (in initialization or using)
>
> thanks.
>

dear,
>I used endpoint in lpc2468 in Ctrl & Bulk mode. but when i use interrupt endpoint, lpc not received any interupt.
>I test CDC, MSC, HID with successful in bulk & ctrl endpoint.
>
>may be have big different between these mode in LPC? (in initialization or using)
>
>thanks.
>

Thanks to Tsuneo.

I found my problem.

I use device side. i believed, "if i use IN intr endpoint then device must interrupted in bInterval time". but it's is my fault.

in device, usb hardware receive IN packet, but if buffer is empty only response NAK and not message to software (with interrupt).
thus only when have any packet , put it in buffer.
although when use send this packet, response by interrupt.

and again very Thanks.