The HT82A851R can be a USB device, however how is the remote host wake up function implemented?
Answer The HT82A851R can be a USB device, and if required to implement a remote host wake up function, the following should take place: 1. When listing out the devices, in the configuration description, bit 5 of the bmAttributes should be set to 1. This is to inform the host that the HT82A851R is a USB device and that it has a remote host wake up function. 2. The HT82A851R MCU must set bit 0, which is the WKEN bit of the AWR register, to 1, to enable the device remote wake up. 3. When the HT82A851R is required to wake up the host, the HT82A851R MCU must generate a wake up pulse on bit1, which is the RMWK bit in the USC, in order to wake up the host. The instructions are as follows: SET USC.RMWK NOP NOP NOP NOP NOP CLR USC. RMWK 。 4. When the USB host receives a wake up signal from the HT82A851R, it will transmit a reset signal to the device. In this way communication can be restarted.