In nrf52840 can we configure port 0 and port 1 both port as open drain or only port 0 configure as open drain
In nrf52840 can we configure port 0 and port 1 both port as open drain or only port 0 configure as open drain
Hi
No, any GPIO can be configured as an open drain. There are quite a few cases on how to configure PORT 1 pins already on the DevZone. Please find a case fitting the SDK you're using: https://devzone.nordicsemi.com/search?q=configure%20port%201%20pins
Best regards,
Simon
in my case whenever, I am trying to configure port 1 pin as open drain that will not work.
Hi
Can you specify what you mean by "will not work"? What SDK version are you using, what specific pin are you trying to enable, and what error do you see when trying to do so?
Best regards,
Simon
Hi
Thanks for your reply
I am working with latest sdk version 17.1.0 in that i have try port 1 pin 7 and 10 but for both in oper drain mode not working
In code
nrf_gpio_cfg(NRF_GPIO_PIN_MAP(1,4),
NRF_GPIO_PIN_DIR_OUTPUT,
NRF_GPIO_PIN_INPUT_DISCONNECT,
NRF_GPIO_PIN_NOPULL,
NRF_GPIO_PIN_S0D1,
NRF_GPIO_PIN_NOSENSE);
i am configure pin by this way can you suggest any input !!!
Hi
You can check out this case for example, where my colleague Jørgen has uploaded an example project where a Port 1 pin is configured. Then you should be able to follow Jørn's guidance here to mimic open drain behavior.
Best regards,
Simon