The HT82A851R can be a USB device. When the MCU receives a SET_ADDRESS instruction from the host, what action should it take?
Answer The HT82A851R can be a USB device, so when it receives a SET_ADDRESS instruction from the host it should do the following: 1. The ASET bit, which is bit 0, of the SIES register in the HT82A851R MCU should be set to 1. If this bit is 1, it means that after the transmission ends, the HT82A851R SIE will use the AWR register address to reset the device address. 2. The HT82A851R MCU will write the just received new device address into the AWR register bit1~bit7. 3. The HT82A851R MCU will return a 0-sized data packet to the host to act as the SET_ADDRESS instruction accept signal. When the HT82A851R MCU has completed the above operation, during the next transmission, the host and device can use a new address for communication.
Related Questions
- As the HT82A851R can be a USB device, what situations will cause the SIE to send an interrupt request to the MCU and how can the corresponding interrupt be recognised?
- The HT82A851R can be a USB device, however how is the remote host wake up function implemented?
- How does the HT82A851R MCU know if the Host has transmitted a 0-sized data packet?