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
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
Hi Alice,
If you look in SDK_2_16_100_LPC55S28, all the usb examples for the LPC55c28 have the following:
USBPHY->USB1_VBUS_DETECT_SET = USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS(0x02);
Our project is based on one of the usb suspend resume device examples.