Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Question: Using the M8, how do I send a zero-length data packet to the host?
(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.