Download Print this page

Advertisement

22.5

Operation

22.5.1
Operation at Cable Connection
USB function
Cable disconnected
VBUS pin = 0 V
UDC core reset
USB cable connection
No
General output port
D+ pull-up enabled?
IFR1.VBUSF = 1
USB bus connection interrupt
UDC core reset release
Bus reset reception
IFR0.BRST = 1
Bus reset interrupt
Wait for setup command
reception complete interrupt
The above flowchart shows the operation in the case of in section 22.9, 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.
Yes
Interrupt request
Interrupt request
Figure 22.2 Operation at Cable Connection
Section 22 USB Function Module (USB)
Application
USB module interrupt
setting
As soon as preparations are
completed, enable D+ pull-up
in general output port
Clear VBUSF flag
(IFR1.VBUSF)
Firmware preparations for
start of USB communication
Clear bus reset flag
(IFR0.BRST)
Clear FIFOs
(EP0, EP1, EP2, EP3)
Wait for setup command
reception complete interrupt
Rev. 1.00 Mar. 12, 2008 Page 865 of 1178
Initial
settings
REJ09B0403-0100

Advertisement

loading

This manual is also suitable for:

R4f2472R4f2462H8s/2462H8s/2400 seriesH8s/2472