cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

Sending a Zero-length data packet on the M8 parts

Anonymous
Not applicable

Sending a Zero-length data packet on the M8 parts

Question: Using the M8, how do I send a zero-length data packet to the host?

 

Answer:

(1) Set the data count register to 0.

(2) Enable the endpoint to ACK the next IN packet.

If this is a status stage of a control transfer, you can also set the Endpoint0 Mode to "STATUS IN ONLY" (see the Mode table in the data sheet). By setting the mode, the hardware (SIE) automatically sends a zero-length packet to a valid IN in the status stage of the transfer.

 

0 Likes
Version history
Revision #:
1 of 1
Last update:
‎Dec 19, 2008 12:00 AM
Updated by:
Anonymous
 
Contributors