USB EZ-PD™ Type-C Forum Discussions
Hi. cypress
In newly update PDO, there has dpm_update_src_cap_mask (uint8_t port, uint8_t mask); in your example PDO[4], you sent the mask is 0F, my question how to calculate the value 0X0F, in the other example, it is 0X1F as below:
void change_pdos(void)
{
pd_do_t SRC_PDO[4];
if ( //read pin status register somewhat way == false)
{
SRC_PDO[0].val = 0x0001912C; //5V 3A (This value can check on xml file created by EZ-PD Configuration Utility)
SRC_PDO[1].val = 0x0002D0D2; //9V 2.1A
SRC_PDO[2].val = 0x0004B12C; //15V 3A
SRC_PDO[3].val = 0x0006412C; //20V 3A
dpm_update_src_cap(0, 4, SRC_PDO);
dpm_update_src_cap_mask (0, 0x0F);
dpm_pd_command (0, DPM_CMD_SRC_CAP_CHNG, NULL,NULL); //Send PD command about the changes in source capabilities
}
}
CY_ISR(GPIO_ISR_handler)
{
//clear any active interrupts on corresponds pin for interrupt
change_pdos();
}
second example:
void change_pdos(void)
{
pd_do_t SRC_PDO[5];
SRC_PDO[0].val = 0x0B01912C;
SRC_PDO[1].val = 0x0002D0C8;
/* New 15V PDO to be added */
SRC_PDO[2].val = 0x0004B064;
SRC_PDO[3].val = 0xC0761E3C;
SRC_PDO[4].val = 0xC0DC1E3C;
/**
* @brief This function updates the source PDOs at runtime thereby overriding
* the source PDOs in the configuration table.
* @param port Port index.
* @param count Count of PDOs.
* @param pdo Pointer to the PDO array.
* @return CCG_STAT_SUCCESS if operation is successful, CCG_STAT_BAD_PARAM
* otherwise.
*/
dpm_update_src_cap(0, 5, SRC_PDO);
/**
* @brief This function updates the source PDO mask at runtime thereby
* overriding the source PDO mask in the configuration table.
* @param port Port index.
* @param mask PDO mask.
* @return CCG_STAT_SUCCESS if operation is successful, CCG_STAT_BAD_PARAM
* otherwise.
*/
dpm_update_src_cap_mask (0, 0x1F);
dpm_pd_command (0, DPM_CMD_SRC_CAP_CHNG, NULL,NULL); //Send PD command about the changes in source capabilities
}
/*
* Interrupt Service Routine to handle the interrupts triggered
* on the falling edge of the GPIO_0 input signal
*/
CY_ISR(GPIO_ISR_handler)
{
GPIO_0_ClearInterrupt(); // Clears any active interrupts attached with the GPIO_0 component
/* update the source PDOs */
change_pdos();
}
Show LessHi,
I would like to use the CCG3 from Cypress in the following application:
- CCG3 shall perform PD management for UFP port with Power Sink (our box acts as a docking station, that charges laptops)
- CCG3 shall control the PS8742 MUX (FLIP, CE_USB, CE_DP) depending on Alt Mode, Pin Assignment C,D shall be supported
- CCG3 shall control the DC-DC converter via GPIOs (1 out of 4 possible power contracts)
- CCG3 shall implement a Billboard Device
- Optional: CCG3 shall implement an HID device
Please let me know how it is possible, we ordered a CCG3 Eval kit, arrives soon.
Thank you
Andras
Show LessDear Team,
Designed a product based on CYPD3125 type C Controller. Kindly look into the below link which is exactly equal to our requirement.
We made the same design with some minor change which is in the link. Please find attached schematics and kindly provide your feedback on schematics and let us know if it requires any change.
For CC lines U1 requires any Mosfet's or not. And please confirm USB host communication J1 connections.
Charging Tablet: Samsung TAB A (2017)
Regards
Srini
Show LessAre there any reference designs for EZ-PD Type-C USB that support 100 watts? Can the CCG3PA chip be swapped with a CCG3 on this design to support 100 watts? - https://www.cypress.com/documentation/reference-designs/ccg3pa-car-charger-reference-design-using-southchip
I also stumbled on the CCG3 Power Adaptor Solution Demo files. I believe these are meant to be used with the eval kit, but it looks like the schematic could be used to build a straight PD power adaptor. I'm looking for a DC-DC power supply that outputs via USB-C PD at up to 100 watts.
Show LessHello Cypress Support and everybody else.
Where do I find the register description of the EZ-PD BCR EZPD3177 chip?
The datasheet only talks about the existence of the I2C slave interface and it address.
Thanks, W.
Show LessHi. cypress
in the SDK(C:\Program Files (x86)\Cypress\EZ-PD CCGx Power SDK\CCGx\Firmware\projects\CYPD3175-24LQXQ_pa_direct_fb) project, the verson is FW_MAJOR_VERSION (3),FW_MINOR_VERSION(4),FW_PATCH_VERSION(0).
when I enable VCONN_CC1 and VCONN_CC2 in .cysch and #define VCONN_SUPPORT_ENABLE (1u) in stack_params.h to support >3A, then building the project. it is appears pa_vconn_enable errors as below in main.C, whether do you meet the same issue in version 3.4, how to solve it, but it is ok at former 3.2.
Show Less
Hi all,
I'm trying to configure my CCG3PA design (based on the 39 dual USB C-A car adapter reference design firmware) using the EZ-PD utility, but I'm unable to read the config from the device, open the supplied .cyacd file (in the reference design files), or update firmware. I am using the USBCEE PAT board, and am able to read device info for the PAT board AND my prototype charger board, but it always fails when I try to read the config from my board.
I have already flashed the hex file using the PSoC programmer, and verified that multiple USB C and USB A charging profiles (like PD, QC2.0, etc.) work as-is. I just need to configure more profiles. Any ideas?
Show Lesshow do I control the internal mux on the CCG4M
Hello
I'm thinking that the following SVID values are defined.
>Discover Modes for Display Port SVID (0xFF01);
>Discover Modes for Apple SVID (0x05AC);
>
Q)
But Is there any material that explaining above code(xFF01, 0x05AC,,,etc).Also, PD3.0/PD2.0 standard document does not describe about the codes(ex. 0xFF01/0x05A, ,,,etc)
Best Regards
Arai
Show LessHello,
Can I make [User Parameter] of EZ-PD Configuration Utility unreadable?
The designer uses the EZ-PD Configuration Utility to write any user information to [User Parameter].
So, [User Parameter] is information that the user wants to keep confidential to other companies.
After writing [User Parameter], manipulate some flags to prevent this setting data from being read, or mask the data (All 0).
Is that possible?
Best regards,
Kenji
Show Less