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

Dynamically reconfiguring NFC pins as inputs

Hi,

Is it possible to reconfigure NFC pins to be GPIO inputs (and vice-versa) without any kind of reset? It seemed like some kind of soft reset was required when I looked into it.

It sounds a bit odd, but I'm making a multipurpose programmable device, and I wanted to be able to use the NFC antenna as a crude capacitance sensor to detect if someone's hand was nearby.

I've done some tests and can get that to work pretty well when connecting other IO pins to the NFC ring as well, but I'd really like to avoid that, and to use the NFC pins' inputs, along with a single 1 MOhm resistor for the capacitive sense drive.

Related