Power adapter . Problem : The voltage output is always 5V. Quick Charge

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

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

cross mob
lock attach
Attachments are accessible only for community members.
Aleksey1210
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

I am a beginner, I have never worked with these controllers.

I downloaded the code example for CYPD3175 and expected that fast charging support would be implemented in this example.

But when testing with QC3 and QC4, the output voltage is always 5 V (9 and 12 V are never at the output).

I can manually change the output voltage using the psrc_set_voltage function. But in order to change it automatically I need to have access to D+ and D-.

I would like to find out if this scheme is correct (the scheme is attached below) for the CYPD3175 Power adapter.
I would also like to know where the D+ and D- pins are initialized in the code example for CYPD3175.
I would also like to know how I can count the voltage at pins D+ and D-. Is it possible?
And if it is possible to count the voltage on D+ and D- , then I would like to know what functions will help me count the voltage on these pins.
Please help me, I reread the entire CGx_Power_SDK_API_Guide and could not find the functions for reading the voltage on D+ and D-.

 

Please help me solve this problem.

Best Regards,

Aleksey

0 Likes
1 Solution

Hello,

You can get the DP/DM levels using bc_stat->dp_dm_status.state, just as mentioned in my last reply. It is a combined status of DP and DM, which is defined as below 

Wang_Fred_0-1685242358389.pngWang_Fred_1-1685242423248.png

If correct voltage measured on DP/DM, the corresponding output voltage would be prepared and FET would be opened in FW without manually adding code.

 

View solution in original post

0 Likes
5 Replies
Wang_Fred
Moderator
Moderator
Moderator
5 questions asked 100 solutions authored 250 sign-ins

Hi Aleksey,

May I know the power stage could work normally to output 9V/12V?

You can refer to the code bc_fsm_src_qc_connected() in battery_charging.c for the voltage setting for difference QC voltage measured on DP/DM. However, the code measuring the DP/DM is wrapped into stack library so it's not visible.

Thanks.

0 Likes

     Initially, the output was 0V.
    Then I used the pd_internal_pfet_on(0, false) function in main.c and the output became 5V. Then, using the psrc_set_voltage(port, VSAFE_xV) function, I was able to set the output to 9V, or 12 V.

   

         You wrote: "However, the code measuring DP/DM is enclosed in the standard library, so it is not visible."  Is there a function that will allow me to read out the voltage with DP and DM?

     "May I know the power stage could work normally to output 9V/12V?" 

using the psrc_set_voltage(port, VSAFE_xV) function, I was able to set the output to 9V, or 12 V.

 

0 Likes

Hello,

You can get the DP/DM levels using bc_stat->dp_dm_status.state, just as mentioned in my last reply. It is a combined status of DP and DM, which is defined as below 

Wang_Fred_0-1685242358389.pngWang_Fred_1-1685242423248.png

If correct voltage measured on DP/DM, the corresponding output voltage would be prepared and FET would be opened in FW without manually adding code.

 

0 Likes
Giraffe1492
Level 5
Level 5
25 sign-ins 25 likes received 10 solutions authored

Hello Aleksey,

I'm glad to hear that you were able to set the output voltage to 9V and 12V using the psrc_set_voltage function. To read the voltage on DP and DM, you can use the bc_stat->dp_dm_status.state variable, which provides a combined status of DP and DM. This status is defined as shown in the image below:

 

 

If the correct voltage is measured on DP/DM, the corresponding output voltage should be prepared, and the FET should be opened in the firmware without manually adding code.

For more information on the EZ-PD™ PMG1-S3 High-voltage MCU with USB-C & PD, you can refer to the product page here.

Let me know if you have any further questions or need additional assistance.

Best Regards,

https://www.infineon.com/cms/en/product/universal-serial-bus/usb-c-high-voltage-microcontrollers/ez-...
https://www.infineon.com/cms/en/product/power/mosfet/automotive-mosfet/600v-800v-n-channel-automotiv...
https://www.infineon.com/cms/en/product/universal-serial-bus/usb-c-high-voltage-microcontrollers/ez-...
https://www.infineon.com/cms/en/product/power/lighting-ics/ac-dc-led-driver-ic/xdpl8219/
https://www.infineon.com/cms/en/product/universal-serial-bus/usb-c-high-voltage-microcontrollers/ez-...

0 Likes

Hello Giraffe1492

 

You wrote that This status is defined as shown in the image below. But your picture is not displayed

Aleksey1210_1-1685425243723.png

Links are also not available

Thanks in advance

Best Regards,

Aleksey

 

 

 

 
0 Likes