PSoC5LP : USB peripheral with PSoC5LP that has stopped power supply from the host

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Dear Sirs and Madams,

This is a continuation of what we have confirmed in the following communities in the past.

PSoC5LP : USBFS component suspend operation

In this application, when the power supply from the host is stopped

PSoC5LP goes into Low power mode.

At that time, there was a problem that Dp and Dm became indefinite because the pull-up effect on the host side disappeared.

We were told about a countermeasure to pull up the Dp / Dm line when the 5V power supply from the host is stopped,

but this countermeasure does not seem to be appropriate due to the USB specifications.

Therefore, we are considering monitoring VBUS and switching the control.

In the USB peripheral of PSoC5LP, there is a setting of VBUS Monitoring in the Advanced option.

We are thinking of using this function to control it.

So We have some questions.

1.

About the setting of Configuration Attributes of Device Descriptor in USB peripheral,

Does PSoC5LP behave differently when Device Power is set to "Self Powered" and when it is set to "Bus Powered"?

Will the content of the notification to the USB host only change?

2.

If We select IO pin internal to the component in the Advanced option and set VBUS to SIO compatible pin,

what is the threshold voltage (the boundary between the voltage that becomes "1" and the voltage that becomes "0")?

3.

When connecting VBUS to a pin that does not support SIO, how much should the voltage dividing resistor be increased?

Reference: According to the figure on Page 32 of USBFS_v3_0.pdf, the voltage is divided between 30kΩ and 60kΩ.

Is it okay to use 10 times (300kΩ, 600kΩ) or 100 times (3MΩ, 6MΩ)?

4.

When you enable the VBUS Monitoring settings,

If VBUS supply is stopped during USB sleep, interrupts from the Dp / Dm line must be ignored until VBUS supply is resumed.

This behavior is not automatically realized by the USB module or the automatically generated program,

do we need to program and realize it?

Regards,

0 Likes
2 Replies
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello,

1) No, PSoC5LP will not behave differently when Device Power is set to "Self Powered" and when it is set to "Bus Powered". The change will only be in the descriptor that is being sent to the host.

2) The following table give gives the range of voltage that should be supplied to the USB block. When the supplied voltage will be within the given range the VBUS detect should be high. The threshold value will be same as that of a SIO pin. Please refer to the PSoC 5LP datasheet ' SIO DC Specification' section for the value.pastedImage_0.png

I am check for points 3 and 4 and get back to you.

Best Regards

Ekta

0 Likes
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Ekta-san,

Do you have any update for points 3 and 4.

Regards,

0 Likes