HD6417641 RENESAS [Renesas Technology Corp], HD6417641 Datasheet - Page 841

no-image

HD6417641

Manufacturer Part Number
HD6417641
Description
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Figure 20.21 Sample Flowchart for Initialization of the USB Bus Power Control Method
No
(set to bus power control method)
Set USBCTRL/SUSPEND to 1
Clear ICR1/IRQE of INTC to 0
(set the priority of IRQ0 to 15)
(set the priority of IRQ1 to 14)
(exit USB module stop mode)
Set IPRC/IRQ0 of INTC to 15
Set IPRC/IRQ1 of INTC to 14
(Configuration set interrupt)
Set STBCR4/MSTP46 to 1
Set USBCTRL/PWMD to 1
(suspend interrupt enable)
(set the IRQ0 falling edge
(set the IRQ1 falling edge
Set USBIER2/SETC to 1
Clear ICR1/IRQ00S and
Clear ICR1/IRQ10S and
(IRQ interrupt enable)
IRQ01S of INTC to 0
IRQ11S of INTC to 0
Normal operation
Power On Reset
USIHP interrupt?
Normal routine
detection)
detection)
Yes
high-power function is made)
Confirm USBIFR2/CFGV=1
(confirm that a trasition to
USIHP interrupt routine
Rev. 4.00 Sep. 14, 2005 Page 791 of 982
Clear USBIER2/SETC
Clear USBIFR2/SETC
RTE instruction
Section 20 USB Function Module
REJ09B0023-0400

Related parts for HD6417641