47
7641 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
PRELIMINARY
Notice: This is not a final specification.
change.
Some parametric limits are subject to
The USB suspend detect signal flag goes to
“
0
”
when the USB re-
sume signal detect flag (RESUME) is set to
“
1
”
. During suspend
mode, if the clock operation is started up with a process (remote
wake-up) other than the resume interrupt process (for example;
reset or timer), make sure to clear the USB suspend detect signal
flag to
“
0
”
when you set the USB remote wake-up bit to
“
1
”
. When
the USB FCU is in suspend mode and detects a non-idle signal on
the D+/D- line, the USB resume detect flag and the USB resume
signal interrupt status flag both go to
“
1
”
and a resume interrupt
request occurs. At this point, pull the internal registers (A, X, Y) in
this interrupt process routine. Take the following procedure in the
USB resume interrupt process.
(1) Set the USB line driver current control bit to
“
0
”
. (When operat-
ing at Vcc = 3.3 V, this bit does not need to be set.)
(2) Set the frequency synthesizer enable bit to
“
1
”
and set a 2 ms
to 5 ms wait.
(3) Check the frequency synthesizer lock status bit. If
“
0
”
, it must
be checked again after a 0.1 ms wait.
(4) Enable the USB clock.
Fig. 37 Structure of USB control register
U
U
S
S
B
B
C
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
(
a
d
d
r
e
s
s
0
0
1
3
1
6
)
R
U
e
S
0
1
S
0
1
S
0
1
S
0
1
S
0
1
S
0
1
S
0
1
=
h
s
B
:
:
B
:
:
B
:
:
B
:
:
B
:
:
B
:
:
B
:
:
3
e
e
I
n
I
n
A
A
H
L
L
L
4
4
S
S
U
U
.
3
c
o
r
d
a
r
r
l
i
i
o
l
i
i
n
i
n
c
8
8
S
O
O
E
S
S
n
v
e
d
d
r
t
i
t
i
n
g
w
n
e
e
l
o
M
M
O
F
F
n
B
B
V
t
e
f
e
e
t
i
f
i
f
i
e
h
d
a
f
f
f
i
c
c
c
e
c
u
a
a
c
i
a
i
a
d
c
u
d
d
d
k
H
H
F
o
o
a
b
b
b
,
s
e
n
b
l
u
u
i
a
i
t
t
l
l
s
t
t
l
S
S
v
r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
l
n
u
e
D
s
C
-
D
t
C
r
e
s
c
e
o
t
n
.
v
e
r
t
e
r
i
h
”
t
e
i
s
h
t
a
b
0
0
b
7
Set the USB resume signal interrupt status flag to
“
0
”
after the
wake-up sequence process. The USB resume detect flag goes to
“
0
”
at the same time. When the clock operation is started up with
a remote wake-up, set the USB remote wake-up bit to
“
1
”
after the
wake-up sequence process. (keep it set to
“
1
”
for a minimum of 10
ms and maximum of 15 ms). By doing this, the MCU will send a
resume signal to the host CPU and let it know that the suspend
state has been released.
After that, set the USB remote wake-up bit and the USB suspend
detection flag to
“
0
”
, because the USB suspend detection flag is
not automatically cleared to
“
0
”
with a remote wake-up.
[USB Control Register] USBC
When using the USB function, the USB enable bit must be set to
“
1
”
. The USB line driver supply bit must be set to
“
0
”
(DC-DC con-
verter is disabled) when operating at Vcc = 3.3V. In this condition,
the setting of the USB line driver current control bit has no effect
on USB operations.
When the USB artificial SOF enable bit is set to
“
1
”
, the MCU
judges that a SOF packet is received within 250 ns from a frame
starting if an SOF packet is destroyed owing to some cause.