Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

USB EZ-PD™ Type-C Forum Discussions

HuHong
Level 1
Level 1
10 replies posted 10 sign-ins 5 replies posted

Hi ,

  I have a question about CCG5 source Vbus OCP。When ocp_cur is 3A,only 3.8A  above can trigger OCP .

  Normally,3.3A can trigger ,but not function well.(3.3 = 3+10% *3);

 What can we do to modify this problem ?

 

BR

Venus

0 Likes
1 Solution
HmdRahmathulla
Moderator
Moderator
Moderator
50 replies posted 50 sign-ins 10 solutions authored

Hi Venus,

you can reduce the voltage reference to calibrate the OCP. 

HmdRahmathulla_1-1662124949738.png

 

 check csa_tab[] In hal_ccgx.c file for gain and voltage reference.

HmdRahmathulla_8-1662125017074.png

 

Check above image

 First highlighted circle is Vsense value for 1000mA, and it is here with divisible of 100 w.r.t calculation done in the function system_vbus_ocp_en(uint8_t port, uint32_t cur, vbus_ocp_cbk_t cbk)

And second circle is multiplication factor 0 = 1.3 (5 = 1.3 + (5*10mv) = 1.35 which is the third circle.

For 3amp with 20% threshold ( 3 + 0.6) is 3.6 (for 3.6Amp the corresponding Vsense value is 36, there you can reduce the Vref multilcation factor step of 10mV and calibrate the OCP according to your requirement.

 

Thanks & Regards

Mohamed Rahmathulla

View solution in original post

0 Likes
10 Replies
HmdRahmathulla
Moderator
Moderator
Moderator
50 replies posted 50 sign-ins 10 solutions authored

Hi Venus,

Thank you for creating post in infineon community.

could you please tell the board which you are using -(incase of Dev Kit).

if it is custom board please do check the Rsense value, it should be 10-mOhm.

kindly send me configuration parameters that you have set.

 

Thanks & Regards

Mohamed Rahmathulla

 

0 Likes
HuHong
Level 1
Level 1
10 replies posted 10 sign-ins 5 replies posted

Hi HmdRahmathulla,

  Thank you for your response . 

1.The board is CYPD5225-96BZXI.

2.Rsense is 10 10-mOhm 

3.Sink OCP functions well,but source OCP  doesn't.

HuHong_0-1661754438646.png

 

BR

Venus

0 Likes
HmdRahmathulla
Moderator
Moderator
Moderator
50 replies posted 50 sign-ins 10 solutions authored

Hi Venus,

 

In the below table the accuracy of current sense have mentioned. please refer.

disable the deep sleep mode by resetting SYS_DEEPSLEEP_ENABLE macro.

it will improve the accuracy of current sense.

HmdRahmathulla_0-1661845003700.png

Thanks & Regards

Mohamed Rahmathulla H

0 Likes

Hi Mohamed Rahmathulla H,

 I reset SYS_DEEPSLEEP_ENABLE macro ,but test fails.When ocp_cur is 1.6A,only 2.3A  above can trigger OCP.

BR

Venus

 

 

PREVIEW
 
0 Likes

Hi  Rahmathulla ,

      Can we calibrate this value ocp_cur?If  we can ,can you show me how to do it?

BR

Venus

0 Likes
HmdRahmathulla
Moderator
Moderator
Moderator
50 replies posted 50 sign-ins 10 solutions authored

Hi Venus,

you can reduce the voltage reference to calibrate the OCP. 

HmdRahmathulla_1-1662124949738.png

 

 check csa_tab[] In hal_ccgx.c file for gain and voltage reference.

HmdRahmathulla_8-1662125017074.png

 

Check above image

 First highlighted circle is Vsense value for 1000mA, and it is here with divisible of 100 w.r.t calculation done in the function system_vbus_ocp_en(uint8_t port, uint32_t cur, vbus_ocp_cbk_t cbk)

And second circle is multiplication factor 0 = 1.3 (5 = 1.3 + (5*10mv) = 1.35 which is the third circle.

For 3amp with 20% threshold ( 3 + 0.6) is 3.6 (for 3.6Amp the corresponding Vsense value is 36, there you can reduce the Vref multilcation factor step of 10mV and calibrate the OCP according to your requirement.

 

Thanks & Regards

Mohamed Rahmathulla

0 Likes

Hi Rahmathulla,

  Thank you for your response .

As you say ,we can reduce the Vref multilcation factor step of 10mV and calibrate the OCP according to your requirement. But now ,the current which triggers OCP differs from devcie to device  as follows.The ocp_cur is same (3A). What can we do ?

HuHong_0-1662434096699.png

 

BR

Venus

0 Likes
HmdRahmathulla
Moderator
Moderator
Moderator
50 replies posted 50 sign-ins 10 solutions authored

Hi Venus,

 The default value in CSA table will adjust OCP error between +/- 7% to +/- 24% which mentioned in the datasheet.

There is a biased current in CCG5 Current Sense OP-AMP. This biased current:

-Differs from device to device

-Identical for the same device

 

Thanks & regards

Mohamed Rahmathulla

0 Likes

Hi Rahmathulla,    

Which API  of using ADC interface to read OCP current?Thanks

BR 

Venus

0 Likes

Hi Venus,

 We dont have OCP current API which supports for CCG5.

we have comparator block inside Vbus current sense amplifier which gives high or low signal.

if you feel that CCG5 error percentage is more, kindly use external circuit for VBus current sense and use "8-bit ADC" pin from CCG5 for sampling the data.

 

Thanks & Regards

Mohamed Rahmathulla

 

0 Likes