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.
Hello @AraStep
Please tell us the specified USB demo you are refer to I have not found a demo that configures PWRUP_CMPS to 2.
By default value is 0x7, means VBUS_VALID comparator is enabled.
BR
Alice
Hello @AraStep
Thanks for your reply. I is confirming with internal, I will send to you with any update. Thanks.
BR
Alice
Hello @AraStep
Thanks for your patience.
Could you please tell me which mouse example, and also share your project, I will help to check on my side. Thanks.
BR
Alice