Level 1
Level 1

# CCG5 Source Vbus OCP trigger

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

1 Solution
Moderator
Moderator

# Re: CCG5 Source Vbus OCP trigger

Hi Venus,

you can reduce the voltage reference to calibrate the OCP.

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

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

10 Replies
Moderator
Moderator

# Re: CCG5 Source Vbus OCP trigger

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

Level 1
Level 1

# Re: CCG5 Source Vbus OCP trigger

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.

BR

Venus

Moderator
Moderator

# Re: CCG5 Source Vbus OCP trigger

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.

Thanks & Regards

Mohamed Rahmathulla H

Level 1
Level 1

# Re: CCG5 Source Vbus OCP trigger

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

Level 1
Level 1

# Re: CCG5 Source Vbus OCP trigger

Hi  Rahmathulla ,

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

BR

Venus

Moderator
Moderator

# Re: CCG5 Source Vbus OCP trigger

Hi Venus,

you can reduce the voltage reference to calibrate the OCP.

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

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

Level 1
Level 1

# Re: CCG5 Source Vbus OCP trigger

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 ?

BR

Venus

Moderator
Moderator

# Re: CCG5 Source Vbus OCP trigger

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

Level 1
Level 1

# Re: CCG5 Source Vbus OCP trigger

Hi Rahmathulla，

BR

Venus

Moderator
Moderator

# Re: CCG5 Source Vbus OCP trigger

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