Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

As the HT82A851R is a USB device how can the device send a 0-sized data packet to the main controller?

0
Posted

As the HT82A851R is a USB device how can the device send a 0-sized data packet to the main controller?

0

Answer When the microcontroller sends a 0-sized data packet to the main controller, this is in effect just sending a handshake signal to the main controller. The method of transmission is as follows: 1. Set bit 1, which is the TX bit, of the MISC register to 1 to put the FIFO into the write mode. 2. Delay 4us. 3. Set bit 0, which is the REQUEST bit, of the MISC register to 1, this will send a FIFO request. 4. Delay 28us 5. Determine if bit 6, which is the READY bit, of the MISC register is equal to 1. If not equal to 1 then proceed to step 1, if equal to 1 then proceed to step 6. 6. Clear bit 1, the TX bit, of the MISC register to 0. This will place the FIFO into the read mode. 7. Delay 4us 8. Clear bit 0, the REQUEST bit, of the MISC register to 0. This will end the FIFO request. When the above operation has completed, then the microcontroller has just sent a 0-sized data packet to the main controller.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123