How to set default voltage in cypd3174 source code

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
rttt_3611331
Level 3
Level 3
First like given

I developed a power adapter using cypd3174, and use the source code in EZ-PD CCGx Power SDK(CYPD3174-24LQXQ_pa_opto_fb), and I compile and flashing the firmware  into power adapter, everything seems ok. however, the problem is that if the target devices can't support USB PD, then I need to provide a default voltage for it, where can set it in "CYPD3174-24LQXQ_pa_opto_fb" source code.

And I looked for document, guess the "psrc_set_voltage" API can do this, but I could't find where to add.

thx.   

0 Likes
1 Solution

Hi,

CYPD3174-24LQXQ_pa_opto_fb is Opto Feedback design, which is means the feedback from the secondary side to the primary fly-back controller is through an opto isolator. Default 5 V VBUS is dictated by the reference voltage Vref and the internal resistor divider of 200 k and 68 k.

If you are designing a Type-C design, strongly recommend you are not change 5V default value.

If you insist to, you can refer below SPEC,

The CV loop IDACs can sink up to 102.3 μA of current and can source up to 12.7 μA of current.

And then, you can try to change the value of IDAC by below API.

void pd_hal_set_fb_dac(int16_t dac_value)

Best Regards,

Lisa

View solution in original post

3 Replies
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi ,

CCG3PA firmware support your requirements by default. If you attached a Type-C device without PD, the 5V will be enabled on the VBUS.

Best Regards,

Lisa

0 Likes

Hi Lisa,

     If I want to change the default valtage and where/how to do this?

thank you very much.

0 Likes

Hi,

CYPD3174-24LQXQ_pa_opto_fb is Opto Feedback design, which is means the feedback from the secondary side to the primary fly-back controller is through an opto isolator. Default 5 V VBUS is dictated by the reference voltage Vref and the internal resistor divider of 200 k and 68 k.

If you are designing a Type-C design, strongly recommend you are not change 5V default value.

If you insist to, you can refer below SPEC,

The CV loop IDACs can sink up to 102.3 μA of current and can source up to 12.7 μA of current.

And then, you can try to change the value of IDAC by below API.

void pd_hal_set_fb_dac(int16_t dac_value)

Best Regards,

Lisa