We are developing a mouse/dongle product based on the LPC55s28.
When the device is in suspend mode, it receives spurious detach interrupts (USB_LPC3511IP_DEVCMDSTAT_VBUS_DEBOUNCED)
We are using the USB_PreLowpowerMode() function from the mouse examples in the SDK.
This function writes a 2 into the PWRUP_CMPS field of USBPHY->USB1_VBUS_DETECT
USBPHY->USB1_VBUS_DETECT_SET = USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS(0x02);
However, the data sheet indicates that valid values for this field are 0 or 7.
Can you explain the effect this will have? When we changed the value to 7, the spurious IRQs stopped.
Thanks,
Ara Stepanian