- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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-...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Giraffe1492
You wrote that This status is defined as shown in the image below. But your picture is not displayed
Links are also not available
Thanks in advance
Best Regards,
Aleksey