2023-02-08 06:18 PM
2023-02-09 06:55 AM
Hi H.Aoki,
you can use CN4 to retrieve power from an external power source (you may provide).
On FW, inside usbpd_dpm_user.c file you may see USBPD_DPM_SetupNewPower calling USBPD_PWR_IF_SetProfile handling different profile requests. In case of FIXED (as I assume) you have to fill BSP_USBPD_PWR_VBUSSetVoltage_Fixed at your convenience. For instance acting on CN4 GPIOs to change voltage.
I hope it helps.
Filippo
2023-02-09 09:46 PM
Hi Filippo.
Thank you for your reply.
Could you tell me how to build the firmware
(to fill BSP_USBPD_PWR_VBUSSetVoltage_Fixed at my convenience),
and how to set the I2C registers and values?
2023-02-10 01:25 AM
Hello,
CN4 offer you a way to connect an additional power source (through SOURCE and GND pins). Thus the power comes from outside. There's a 3.3V to supply any additional electronics.
There're other two pins, named I2C_xx, that are connected to MCU and could be used as I2C. These may act on the external power source to obtain the needed voltage level. Let me highlight two possible use cases:
BSP_USBPD_PWR_VBUSSetVoltage_Fixed is intended as a function provided by Board Support Package (which means the code supporting your board) used to control, among all, those pins acting on the power. This is application dependent and it is your responsibility.
Said this, we could detail more and more on FW and HW with many other configurations. If you could detail on your application use case (even privately) I can forward you to right people.
Do not hesitate to comment
Filippo