參數(shù)資料
型號: M30240M5-XXXFP
元件分類: 微控制器/微處理器
英文描述: 16-BIT, MROM, 12 MHz, MICROCONTROLLER, PQFP80
封裝: 0.80 MM PITCH, PLASTIC, QFP-80
文件頁數(shù): 86/139頁
文件大小: 1453K
代理商: M30240M5-XXXFP
50
Mitsubishi microcomputers
M30240 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Specifications REV. G
Specifications in this manual are tentative and subject to change
Universal Serial Bus
Figure 1.35: USB Interrupt Status Register 2
1.5.0.0.1 Clearing USB Interrupt Status Registers
The USB Interrupt Status Register 1 and 2 are used to indicate pending interrupts for a given source.
The USB FCU sets the interrupt status bits. The CPU writes a “1” to each status bit to clear it.
Because the USB Function Interrupt has multiple sources that can generate an interrupt, it is recom-
mended that the user first read the two status registers and store them in variables then write back the
same value for clearing all the existing interrupts that were pending when the status registers were read.
This procedure prevents any interrupt that occurs after the status registers are read from being cleared
by the ‘write-back’ operation. The CPU must read, then write both status registers, writing to status reg-
ister 1 first and status register 2 second to guarantee proper operation. The upper three bits of the value
written back to USBIS2 should always be “000” to prevent any of the USB Reset, Suspend and Resume
Status Flags from being cleared.
The USB Reset, Suspend and Resume Status Flags are contained in USBIS2 along with the USB End-
point 4 In/Out Interrupt Status Flags and the USB Overrun/Underrun Interrupts Status Flag. Because the
flags are not all sources for the same interrupt, use caution when clearing one or more of the flags to
avoid inadvertently clearing other flags. The Reset, Suspend and Resume Status Flags should be
cleared individually by writing a byte value with at “1” only at the position corresponding to the flag to be
cleared. The USB Endpoint 4 In/Out Interrupt status Flags and the USB Overrun/Underrun Interrupt Sta-
tus Flag should be cleared as described in the preceding paragraph because they are sourced for the
USB Function Interrupt.
“Read-modify-write” instructions, such as “BCLR” and “BSET”, should not be used to clear any of the
interrupt status bits in USBIS1 or USBIS2. Using these instructions could cause pending interrupts to be
cleared without the firmware’s knowledge.
USB Interrupt Status Register 2
Symbol
Address
When reset
USBIS2
030316
0016
Bit name
Bit symbol
b7
b6
b5
b4
b3
b2
b1
b0
Function
W
R
Reserved
Must always be set to "0"
INTST8
INTST9
USB Endpoint 4 IN
Interrupt Status Flag
USB Endpoint 4 OUT
Interrupt Status Flag
USB Overrun/Underrun
Interrupt Status Flag
USB Reset
Interrupt Status Flag
USB Resume Signaling
Interrupt Status Flag
USB Suspend Signaling
Interrupt Status Flag
0 : No interrupt request issued
1 : Interrupt request issued
0 : No interrupt request issued
1 : Interrupt request issued
0 : No interrupt request issued
1 : Interrupt request issued
0 : No interrupt request issued
1 : Interrupt request issued
0 : No interrupt request issued
1 : Interrupt request issued
0 : No interrupt request issued
1 : Interrupt request issued
Reserved
INTST12
INTST13
INTST14
INTST15
0 0
相關(guān)PDF資料
PDF描述
M30240M6-XXXXFP 16-BIT, MROM, 12 MHz, MICROCONTROLLER, PQFP80
M30240ECFP 16-BIT, OTPROM, 12 MHz, MICROCONTROLLER, PQFP80
M30240M5-XXXXFP 16-BIT, MROM, 12 MHz, MICROCONTROLLER, PQFP80
M30240M6-XXXXFP 16-BIT, OTPROM, MICROCONTROLLER, PQFP80
M30240ECFP 16-BIT, OTPROM, MICROCONTROLLER, PQFP80
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M30240M6 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30240M6-XXXFP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30240M7 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30240M7-XXXFP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30240M8 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER