cancel
Showing results for 
Search instead for 
Did you mean: 

USB EZ-PD™ Type-C

PhienNguyen
New Contributor

Hi,

I have a project as below:

PhienNguyen_0-1638105928383.png

- CYPD3174 work in no feeback mode.

- MCU read PD contract negotiation from CYPD3174 and set voltage to ACT4751.

1. To disable opto feedback mode, i comment code in condition #if (VBUS_CTRL_TYPE_P1 == VBUS_CTRL_OPTO_FB) as below: 

PDSS_TRIMS->trim_ea1_0 = 0xA0;
/* Use internal current for reference in case of opto feedback. */
pd->ea_ctrl = ((pd->ea_ctrl & ~PDSS_EA_CTRL_IREF_BG_SEL_MASK) |
(1u << PDSS_EA_CTRL_IREF_BG_SEL_POS));

/* Enable shunt */
pd->ea_ctrl |= PDSS_EA_CTRL_EN_SHNT;

Is this the right way to disable feedback mode on CYPD3174, if not please guide me.

2. I added I2C slave (SCB0) but it unable to communicate to MCU until i comment dpm_task(port); in main function.

Please help me add I2C (SCB0) and disable feedback mode of CYPD3174.

 

Thanks and Best regards.

0 Likes
1 Solution
Abhilash_P
Moderator
Moderator

Hi,

 

1) The function VBUS_CTRL_NONE has to be enabled. But it is not required in this case. You can use with the FB pin open.  You need to add GPIO write functions in the psrc_select_voltage() function in file psource.c. Enable and edit the switch case statements to add GPIO write functions for only required cases.

 

2) Please refer section 14.4.10 from the Development TRM of CCG3PA for enabling and initializing the I2C ( SCB) interface. 

 

Regards,

Abhilash P 

View solution in original post

0 Likes
5 Replies
Abhilash_P
Moderator
Moderator

Hi,

 

1) The function VBUS_CTRL_NONE has to be enabled. But it is not required in this case. You can use with the FB pin open.  You need to add GPIO write functions in the psrc_select_voltage() function in file psource.c. Enable and edit the switch case statements to add GPIO write functions for only required cases.

 

2) Please refer section 14.4.10 from the Development TRM of CCG3PA for enabling and initializing the I2C ( SCB) interface. 

 

Regards,

Abhilash P 

View solution in original post

0 Likes
PhienNguyen
New Contributor

Hi,

Can you send me the TRM document or other. I can't find it in the website.

 

Best regards.

0 Likes
Abhilash_P
Moderator
Moderator

Hi,

 

   The TRM document cannot be shared here. Please contact local Infineon sales or create a technical support case under Mycase system. 

 

Regards,

Abhilash P

0 Likes
PhienNguyen
New Contributor

Hi, 

Can you guide me how to add i2c into project with dmp_task in this topic?

 

Best regards.

0 Likes
Abhilash_P
Moderator
Moderator

Hi,

 

   I suggest you to please refer the Development TRM.

The complete steps to achieve this is available in it.

 

Regards,

Abhilash P

0 Likes