Spurious detach interrupts with LPC55s28

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Spurious detach interrupts with LPC55s28

407 次查看
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 项奖励
回复
5 回复数

323 次查看
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 项奖励
回复

287 次查看
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 项奖励
回复

240 次查看
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 项奖励
回复

145 次查看
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 项奖励
回复

336 次查看
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 项奖励
回复