Use CYPD3174 in no feedback mode and I2C slave

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
PhienNguyen
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

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
Moderator
50 likes received 500 replies posted 250 solutions authored

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
Moderator
50 likes received 500 replies posted 250 solutions authored

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 

0 Likes
PhienNguyen
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

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
Moderator
50 likes received 500 replies posted 250 solutions authored

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
Level 1
Level 1
5 replies posted 5 sign-ins First reply posted

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
Moderator
50 likes received 500 replies posted 250 solutions authored

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