Psoc 4200 L and USB Hybrid Powered Device (setting and hardware)

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

cross mob
ThBi_3905606
Level 2
Level 2
10 replies posted 10 questions asked 10 sign-ins

Hello

in my application the charger IC always feed the system and "disconnect" the battery when the charging process is finish.( ofr keeping a long life battery with less cycle)

So for my understanding, when a USB cable is plug into my device, my system is ALWAY bus powered.

Do I have to set my USB device as a self powered device, and just after the configured state, change into bus powered device ? or directly as a bus powere device ?

What about the hardawe configuration ? do i need external resistance for pull up or I just use the internal pull up resistance on D- and d+

 

 

 

 

0 Likes
1 Reply
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @ThBi_3905606 ,

Your statement mentioning your understanding of "when a USB cable is plug into my device, my system is ALWAY bus powered."- is absolutely correct. In case of when the devices needs to be behave as self powered and bus powered at different times, you need to add two configuration descriptors under device descriptor, writing Bus powered for one configuration and Self powered for the other as below-

Aashita_Raj_0-1614859293735.png

Also, Can you please let us know when do you want the device to act as self powered and when as bus powered?

In case of self-powered device, you must connect a GPIO pin to VBUS through a resistive network and write firmware to monitor the status of the GPIO. Please go through the sections " USB Compliance for Self Powered Devices" and "VBUS Monitoring"  of USBFS Component datasheet - https://www.cypress.com/file/376416/download for the further details on this.

Please go through above and let us know in case of further queries.

Best Regards,

Aashita 

 

 

 

 

0 Likes