Renesas M30245 Series User Manual page 177

16-bit single-chip microcomputer
Hide thumbs Also See for M30245 Series:
Table of Contents

Advertisement

M30245 Group
(4) USB Suspend Interrupt Request Processing Routine
When using the USB suspend interrupt, set USB suspend interrupt control register (address 0056
In the USB suspend interrupt, when the USB suspend status flag (SUSPEND) of USB power manage-
ment register is set to "1", the interrupt request occurs.
The USB suspend interrupt request processing routine is shown in Figure 2.8.28 and Figure 2.8.29.
Setting USB control register
b7
0
0
0
Clearing the protect
b7
Setting frequency synthesizer control register
b7
0
0
Setting the interruppt for return from suspend mode (Note1, 2)
b7
0
Note 1: Confirms that the interrupt enable flag (I) of flag register is set to "0" before setting the interrupt to
higher priority level than the USB suspend interrupt. The interrupt should be higher priority level than
the USB suspend interrupt when those event are returned from the suspend mode by process
(key input interrupt, etc.) other than the USB resume interrupt.
Note 2: When the interrupt is not used to clear the stop mode, the interrupt should be disabled by setting
the interrupt priority level to "0".
Figure 2.8.28. USB suspend interrupt request processing routine (1)
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Detection of USB suspend interrupt request
b0
USB control register [Address 000C
0
0
0
USBC
USB clock enable bit
0: Disable (48MHZ clock supply disabled
b0
Protect register [Address 000A
0
1
PRCR
Enable bit for writing to system clock control registers 0 and 1
and frequency synthesizer related registers
1 : Write-enabled
b0
Frequency synthesizer control register [Address 03DC
0
FSC
Frequency Synthesizer enable bit
0 : Disabled
b0
USB resume interrupt control register [Address 0058
RSMIC
Interrupt priority level select bit
b2 b1 b0
0 0 0 : Level 0 (interrupt disabled)
0 0 1 : Level 1
0 1 0 : Level 2
0 1 1 : Level 3
1 0 0 : Level 4
1 0 1 : Level 5
1 1 0 : Level 6
1 1 1 : Level 7
Interrupt request bit
0 : Interrupt not requested
Continued to the next page
page 166 of 354
]
16
]
16
]
16
]
16
2. USB function
).
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM20c series

Table of Contents