USBx_ISTAT field descriptions (continued)Field DescriptionThis bit is set when the USB Module detects an attach of a USB device. This signal is only valid ifHOSTMODEEN is true. This interrupt signifies that a peripheral is now present and must be configured.5RESUMEThis bit is set depending upon the DP/DM signals, and can be used to signal remote wake-up signaling onthe USB bus. When not in suspend mode this interrupt should be disabled.4SLEEPThis bit is set when the USB Module detects a constant idle on the USB bus for 3 milliseconds. The sleeptimer is reset by activity on the USB bus.3TOKDNEThis bit is set when the current token being processed has completed. The processor should immediatelyread the STAT register to determine the EndPoint and BD used for this token. Clearing this bit (by writinga one) causes the STAT register to be cleared or the STAT holding register to be loaded into the STATregister.2SOFTOKThis bit is set when the USB Module receives a Start Of Frame (SOF) token.In Host mode this bit is set when the SOF threshold is reached, so that software can prepare for the nextSOF.1ERRORThis bit is set when any of the error conditions within the ERRSTAT register occur. The processor mustthen read the ERRSTAT register to determine the source of the error.0USBRSTThis bit is set when the USB Module has decoded a valid USB reset. This informs the Microprocessor thatit should write 0x00 into the address register and enable endpoint 0. USBRST is set after a USB reset hasbeen detected for 2.5 microseconds. It is not asserted again until the USB reset condition has beenremoved and then reasserted.43.4.10 Interrupt Enable Register (USBx_INTEN)The Interrupt Enable Register contains enable bits for each of the interrupt sources withinthe USB Module. Setting any of these bits enables the respective interrupt source in theISTAT register. This register contains the value of 0x00 after a reset.Addresses: USB0_INTEN is 4007_2000h base + 84h offset = 4007_2084hBit 7 6 5 4 3 2 1 0Read STALLEN ATTACHEN RESUMEEN SLEEPEN TOKDNEEN SOFTOKEN ERROREN USBRSTENWriteReset 0 0 0 0 0 0 0 0USBx_INTEN field descriptionsField Description7STALLENSTALL Interrupt Enable0 The STALL interrupt is not enabled.1 The STALL interrupt is enabled.6ATTACHENATTACH Interrupt Enable0 The ATTACH interrupt is not enabled.1 The ATTACH interrupt is enabled.Table continues on the next page...Memory Map/Register DefinitionsK51 Sub-Family Reference Manual, Rev. 6, Nov 20111070 Freescale Semiconductor, Inc.