Rev.2.00 Oct 16, 2006 page 164 of 354
REJ09B0340-0200
M30245 Group
2. USB function
(3) USB Resume Function
●
Returning Routine from USB Suspend State
To return from the USB suspend state, the M30245 group uses the USB resume interrupt occurred by
receiving the resume signal from the host or the interrupt for remote wakeup for transmitting the
resume signal to the host.
- Returning by Resume Interrupt
When the resume signal is received from the host CPU during the USB suspend state (when de-
tected any bus activity on D+/D- line in suspend detect state), the USB resume interrupt request
occurs, setting “1” to interrupt request bit of USB resume interrupt control register (address 0058
16
).
When the USB clock is operated, the USB suspend status flag is automatically set to “0” at this time.
For returning from the suspend state by the USB resume interrupt, follow the procedure below:
1: Return the USB function control unit. (Refer to the next page.)
2: Enable other functions as circumstances demand.
- Returning by Remote Wakeup
When clock operation is started by the remote wakeup interrupt (other than the USB resume inter-
rupt) during the USB suspend state, transmit the resume signal to the host CPU as follows:
1: Return the USB function control unit. (Refer to the next page.)
2: Set USB remote wakeup bit to “1” and transmit the resume signal to the host CPU. (Retain “1” for
min. 1ms to max. 15ms.)
3: Set USB remote wakeup bit to “0” and complete the resume signal transmission. The USB sus-
pend status flag is automatically cleared at this time.
Also, when returning from the stop mode, the main clock dividing ratio has been set to 8-dividing
mode, for which resetting is required. Wait for enough oscillation stabilization time before resetting
main clock division select bit of system clock control register 0 (address 0006
16
). (For details, refer to
“Clock-Generating Circuit” of Chapter 1 “Hardware”.)
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...