3 Replies Latest reply on Jul 10, 2019 8:05 AM by NiMc_4245981

    How do I detect if VBUS_P is present?

    NiMc_4245981

      I'm working on a device based on CYPD3120-40LQXI.  The device can be either powered by the USB C cable or by an external barrel connector.  I'm unable to detect when the barrel connector is connected and I am ready to power up down-stream supplies.  I have VBUS_P connected (pin 40) but I can't figure out how to determine what is available.  I could use the pd_adc_sample function, but I don't know what value to use for port_pin, or if it would be valid.  Is there another way?