Section 20 USB Function Module
Normal routine
Normal state
No
IRQ1 interrupt?
Normal operation
Figure 20.22 Sample Flowchart for Changing the State from USB Suspend to Standby
Rev. 4.00 Sep. 14, 2005 Page 792 of 982
REJ09B0023-0400
IRQ1 interrupt routine
Yes
Clear IRR0/IRQ1R of INTC
Save SSR and SPC
to memory
Set SR/I[3:0] to the IRQ1
IRR0/IRQ0R of INTC?
1
Clear IRR0/IRQ0R of INTC
Clear USBIFR2/SUSPS and
AWAKE (clear detection of USB
suspend and AWAKE signals)
RTE instruction
priority
0
Set STBCR/STBY
SLEEP instruction
Standby mode