SLAU723A October 2017 – October 2018 MSP432E401Y , MSP432E411Y
When operating as a host, the USB initiates an LPM Suspend (transition from the L0 state to the L1 state) by initiating an LPM transaction as follows:
If the response from the device has a bit-stuff error or a PID error, then the ERR bit is set in the USBLPMRIS register and an interrupt is generated. The hardware immediately attempts the LPM transaction two more times The device does not suspend for 8 µs after the initial LPM so it is able to respond to either of these subsequent LPM transactions. If an LPM timeout has occurred three times, the NC and the ERR interrupt bits are be set. At this time, software is unaware of the device state and must deduce it by other means.
Resume signaling should be generated by software as follows:
NOTE
Prior to resuming, software must ensure that the system is completely restored form a low-power state and that the System Clock (SYSCLK) and the USB0CLK clock input are enabled.
If the remote wakeup feature was enabled in the LPM transaction that caused the Suspend, then the device may drive resume signaling on the bus. When this occurs, the device drives resume signaling on the bus for 50 µs. The USB host immediately begins driving resume signaling on the bus and does so for 60 µs. 10 µs after completion of the resume signaling, the USB transitions to its normal operating state and is ready for packet transmission. At this time, the RES interrupt bit is set in the USBLPMRIS register and an interrupt may be generated.