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 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?

0
Posted

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?

0

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

What is your question?

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

Experts123