Close

Enhance protection code for AP33772

A project log for PicoPD - USB-C PD 3.0 PPS Trigger with RP2040

Adding Power Delivery 3.0 (PD3.0) & PPS to our beloved RP2040 chip in Pico footprint.

centylabCentyLab 02/03/2024 at 18:230 Comments

Attention: This feature will not work on PicoPD based on the design of the MOSFET

The new code push for AP33772 now supports the built-in over-temperature protection and over-current protection. The over-temperature protection utilizes the NTC (negative temperature coefficient) component if populated. Remember to switch on the MASK flag to enable these features.

To turn on over-temperature protection

usbpd.setOTPTHR(100); //Turn off output if NTC detect 100C or above
usbpd.setMask(OTP_EN); //Enable MASK

PicoPD does not support over-current protection or over-temperature protection due to the design of the output MOSFET. In PicoPD, the MOSFET is controlled by the RP2040, and not the AP33772 IC.

AP33772 IC does not support short-circuit protection. The datasheet does not mention this capability, and also no mention of over-current protection timing. I would not recommend using the AP3372 IC for high precision/high accuracy current-related sensing but as a rough estimate for current reading.

GitHub: AP33772-CPP

Discussions