- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a project as below:
- 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.
Solved! Go to Solution.
- Labels:
-
USB EZ-PD Type-C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you send me the TRM document or other. I can't find it in the website.
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you guide me how to add i2c into project with dmp_task in this topic?
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I suggest you to please refer the Development TRM.
The complete steps to achieve this is available in it.
Regards,
Abhilash P