This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52 changing PIO from Analog to Digital Output

Dear Wang,

I am unable find any documentation and board Initialisation code on how to change PIO from analog to digital output. but can't seem to locate the setting.

Need PIO1 to operate in Digital mode. And similarly other PIOs as well.

Regards, jagadish.H

Parents Reply
  • this is more specific to the device that could also be using the same PIO, not just analog. for eg: PIO1 can be used as XL2 input, as well as Digital IO, The functions you have suggested are not doing the job. I need to switch the PIO1 to Digital IO, as described in the product datasheet (on page 13, nRF52832_PS_v1.2). I have exact same issue with GPIO 21, which is stuck in nReset, that also needs to be switched to Digital IO.

Children
No Data
Related