Figure 20.21 Sample Flowchart For Initialization Of The Usb Bus Power Control Method - Renesas HD6417641 Hardware Manual

32-bit risc microcomputer superh risc engine family / sh7641 series
Table of Contents

Advertisement

(set to bus power control method)
No

Figure 20.21 Sample Flowchart for Initialization of the USB Bus Power Control Method

Normal routine
Power On Reset
Set STBCR4/MSTP46 to 1
(exit USB module stop mode)
Set USBCTRL/PWMD to 1
Set IPRC/IRQ0 of INTC to 15
(set the priority of IRQ0 to 15)
Set IPRC/IRQ1 of INTC to 14
(set the priority of IRQ1 to 14)
Clear ICR1/IRQ00S and
IRQ01S of INTC to 0
(set the IRQ0 falling edge
detection)
Clear ICR1/IRQ10S and
IRQ11S of INTC to 0
(set the IRQ1 falling edge
detection)
Clear ICR1/IRQE of INTC to 0
(IRQ interrupt enable)
Set USBCTRL/SUSPEND to 1
(suspend interrupt enable)
Set USBIER2/SETC to 1
(Configuration set interrupt)
USIHP interrupt?
Normal operation
USIHP interrupt routine
Yes
Clear USBIER2/SETC
Clear USBIFR2/SETC
Confirm USBIFR2/CFGV=1
(confirm that a trasition to
high-power function is made)
RTE instruction
Rev. 4.00 Sep. 14, 2005 Page 791 of 982
Section 20 USB Function Module
REJ09B0023-0400

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7641

Table of Contents