Operation; Cable Connection; Figure 20.2 Cable Connection Operation - Renesas HD6417641 Hardware Manual

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

Advertisement

Section 20 USB Function Module
20.4

Operation

20.4.1

Cable Connection

USB function
Cable disconnected
VBUS pin = 0 V
UDC core reset
USB cable connection
No
General output port
D+ pull-up enabled?
USBIFR1/VBUS = 1
USB bus connection interrupt
UDC core reset release
Bus reset reception
USBIFR0/BRST = 1
Bus reset interrupt
Wait for setup command
reception complete interrupt
The flowchart in figure 20.2 shows the operation in the case for section 20.8, Example of USB
External Circuitry.
In applications that do not require USB cable connection to be detected, processing by the USB
bus connection interrupt is not necessary. Preparations should be made with the bus reset interrupt.
Rev. 4.00 Sep. 14, 2005 Page 766 of 982
REJ09B0023-0400
Yes
Interrupt request
Interrupt request

Figure 20.2 Cable Connection Operation

Application
USB module interrupt
setting
As soon as preparations are
completed, enable D+ pull-up
in general output port
Clear VBUS flag
(USBIFR1/VBUS)
Firmware preparations for
start of USB communication
Clear bus reset flag
(USBIFR0/BRST)
Clear FIFOs
(EP0, EP1, EP2, EP3)
Wait for setup command
reception complete interrupt
Initial
settings

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7641

Table of Contents