Spurious detach interrupts with LPC55s28

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Spurious detach interrupts with LPC55s28

403 Views
AraStep
Contributor I

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

0 Kudos
Reply
5 Replies

319 Views
AraStep
Contributor I

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.

 

0 Kudos
Reply

283 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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.

Alice_Yang_0-1732764230202.png

 

BR

Alice

0 Kudos
Reply

236 Views
AraStep
Contributor I

Find attached the usb examples from your mcux-sdk-examples-MCUX_2.16.100
All of them contain the following for the HS USB port:

USBPHY->USB1_VBUS_DETECT_SET = USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS(0x02);
0 Kudos
Reply

141 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @AraStep 

Thanks for your reply. I is confirming with internal, I will send to you with any update. Thanks.

 

BR

Alice

0 Kudos
Reply

332 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply