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?
Answer The HT82A851R can be a USB device. Under the following USB situations, SIE can send an interrupt request to the MCU. 1.USB SUSPEND 2.USB RESET 3.USB RESUME 4.USB every terminal if accessed When the above USB incidents generate an interrupt, the following method can be used for recognition: 1. When the USB enters the suspend mode, bit 0, which is the SUSP bit in the USC register will be set high by the SIE and will generate a USB interrupt. If the USB interrupt service routine sees that this bit is equal to 1, then it knows that it is a USB suspend that has generated the interrupt. 2. When the USB is reset, bit 2, which is the URST bit in the USC register will be set high by the SIE and will generate a USB interrupt. If the USB interrupt service routine sees that this bit is equal to 1, then it knows that it is a USB reset that has generated the interrupt. 3. When the USB leaves the suspend state and is resumed, bit 3, which is the RESUME bit in the USC register, will be set high
Related Questions
- A USB storage device connected to the Media Hub, has its name displayed in a foreign language. What could be the cause of this?
- The HT82A851R can be a USB device. When the MCU receives a SET_ADDRESS instruction from the host, what action should it take?
- As the HT82A851R is a USB device how can the device send a 0-sized data packet to the main controller?