1-137
Mitsubishi microcomputers
M30240 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Preliminary Specifications REV. E
Specifications in this manual are tentative and subject to change
Frequency Synthesizer Interface and DC-DC Converter
5.1.2.3 Set up after USB Suspend Detected
A USB Suspend occurs if the USB FCU does not detect any bus activity on D+/D- for at least 3 ms.
Detection of a suspend results in bit 7 of USBIS2 and bit 0 of USBPM (SUSPEND) being set to a “1”.
This causes bit 3 of SUSPIC to be set to a “1”. Bit 7 of USBIS2 then needs to be cleared by writing a
“1” to the bit in order to allow a future suspend event.
The configuration of the frequency synthesizer and DC-DC converter should be changed as follows in
the USB Suspend Interrupt routine (if the device is bus powered):
Change the DC-DC converter from high current mode to low current mode by setting USBC3 (bit 3
of the USBC) to a “1”
Disable the USB clock by setting USBC5 (bit 5 of USBC) to a “0”. Once the USB clock is disabled,
registers internal to the USB FCU should not be written to. This includes all USB SFRs from address
0300
16
to 033C
16
. It does not include USBC or FSC.
Perform other tasks to reduce total current to below 500
μ
A.
Disable the PLL by setting FSE (bit 0 of FSC) to a “0”.
Make sure the I-FLAG is set to “1”.
Stop the system clock by setting CM10 (bit 0 of CM1) to a “1”. Make sure to first enable writing to the
system clock control register by setting PRCO (bit 0 of PRCR) to “1’. Also, make sure to enable the
USB Resume Interrupt (RSMIC register) and clear or execute any pending interrupts prior to stop-
ping the clock so the MCU can wake up once resume signaling is detected. If the clock is stopped
using an interrupt routine, make sure to set the priority of the Resume Interrupt (RSMIC) higher than
the current interrupt.
Note that no action may be necessary if the device is self powered.
5.1.2.4 Set up after USB Resume Signaling Detected
A resume occurs when the USB FCU is in the suspend state and detects a non-idle signaling on D+/
D-. Detection of a resume results in bit 6 of USBIS2 and bit 1 of USBPM (RESUME) being set to a “1”.
This causes bit 3 of RSMIC to also be set to “1”. If the MCU was in the stop state prior to the detection
of the resume, the USB Resume Interrupt request will cause the MCU to wake up from the stop state.
Bit 6 of USBIS2 needs to be cleared (by writing a “1” to the bit) in order to allow a future resume event.
See section 2.9 “Stop Mode” for details on waking up from the stop state.
The configuration of the frequency synthesizer and DC-DC converter should be changed as follows in
the USB Resume Interrupt routine (if the device is bus powered):
Re-enable the PLL for 48MHz f(VCO) by setting FSE (bit 0 of the FSC) to a “1”, then wait for 2 ms.
Wait for 2 ms.
Check the lock status bit (LS, bit 7 of FSC).
If the bit is a “1”, continue.
If the bit is a “0”, wait 0.1
ms
longer and then re-check the bit.
Enable the USB clock by setting USBC5 (bit 5 of USBC) to a “1”.
Wait for a minimum of 4 cycles.
Change the DC-DC converter from low current mode to high current mode by setting USBC3 (bit 3
of the USBC) to a “0”.
Enable other blocks as necessary.
Registers internal to the USB FCU should not be written to until the USB clock is re-enabled. This in-
cludes all USB SFRs from address 0300
16
to 033C
16
. It does not include USBC or FSC.
Note that the configuration changes described above may not need to be made if the MCU was not
placed in a suspend state as described in section 5.1.2.3 Set up after USB Suspend Detected.