cancel
Showing results for 
Search instead for 
Did you mean: 

IN EndPoint Interrupt

francesco23
Associate II
Posted on May 10, 2006 at 08:24

IN EndPoint Interrupt

2 REPLIES 2
francesco23
Associate II
Posted on May 05, 2006 at 08:05

Hi to all,

Is it possible, for STR71x, to capture an USB interrupt when a IN EP request come? In other words, is it possible to call a USB interrupt just after a Token Packet and before Data Packet occurs?

I would trow an interrupt before to CTR bit of USB Control Register is set, that is, before to data transfer from STR7 to PC starts.

This because i would prepare data to send on IN EndPoint Interrupt Routine.

Thanks to all,

anis23
Associate II
Posted on May 10, 2006 at 08:24

Hi,

In control, interrupt or bulk transfer mode, With the STR71x µc, the interruption occurs only after a correct achievement of the transaction. In your case you can prepare the first data to send (for example in the USB reset interruption) and after each correct transfer provide the next data to send to the PC Host.