Hello,
I found in DA14683 data sheet that I can program voltage levels on GPIOs:
"
37 (AQFN) or 21 (WLCSP) general purpose I/Os with programmable voltage levels
My question is how to do it? Am I setting it "globally" or separately for each pin.
Regards Jakub
Hi Jakub,
Thanks for your question online. There is an API in hw_gpio.h driver for configuring the power source of an output pin.
/** * \brief Configure power source for pin output * * \param [in…
/** * \brief Configure power source for pin output * * \param [in] port GPIO port * \param [in] pin GPIO pin * \param [in] power GPIO power source * */ void hw_gpio_configure_pin_power(HW_GPIO_PORT port, HW_GPIO_PIN pin, HW_GPIO_POWER power);
/** * \brief GPIO power source * */ typedef enum { HW_GPIO_POWER_V33 = 0, /**< V33 (3.3 V) power rail */ HW_GPIO_POWER_VDD1V8P = 1, /**< VDD1V8P (1.8 V) power rail */ } HW_GPIO_POWER;
Kubson320 said:My question is how to do it? Am I setting it "globally" or separately for each pin.
It should be separate for each pin! Please check the comments on hw_gpio_configure_pin_power() API.
Best regards,
PM_Renesas