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

I want to use P0.09 and P0.10 of nRF52832 as PIN of GPIO(TWI).

Hi
I am the evaluation board of nRF52832 (TAIYO YUDEN Evaluation Board)
EBSHSNZWZ) is used.
I want to use P0.09 and P0.10 of nRF52832 as PIN of GPIO(TWI).
It was set according to the answer example of DevZone.
・Describe "#define CONFIG_NFCT_PINS_AS_GPIOS" in system_nrf52.h.
・Describe "NRF_UICR-> NFCPINS = 0xFFFFFFFE;" in main.c.
However, GPIO communication is unstable (TWI communication is unstable).
GPIO communication is possible with other PINs.
Help me!!
Thanks.

Parents
  • Hi,

    The MDK code will automatically configure the NFC pins as normal GPIO pins when CONFIG_NFCT_PINS_AS_GPIOS is defined for your project. How you do this depends on the toolchain.

    For instance if using SES, do like this:

    If using make, add this in your Makefile where you set other CFLAGS:

    CFLAGS += -DCONFIG_NFCT_PINS_AS_GPIOS

    Note that the NFC pins have a quite high capacitance also when used as GPIOs so they are not the best chaise for high frequency usage. Perhaps that could be the issue here? Or what do you mean by communication being unstable? How does the TWI lines look on an oscilloscope? And which frequency do you use?

Reply
  • Hi,

    The MDK code will automatically configure the NFC pins as normal GPIO pins when CONFIG_NFCT_PINS_AS_GPIOS is defined for your project. How you do this depends on the toolchain.

    For instance if using SES, do like this:

    If using make, add this in your Makefile where you set other CFLAGS:

    CFLAGS += -DCONFIG_NFCT_PINS_AS_GPIOS

    Note that the NFC pins have a quite high capacitance also when used as GPIOs so they are not the best chaise for high frequency usage. Perhaps that could be the issue here? Or what do you mean by communication being unstable? How does the TWI lines look on an oscilloscope? And which frequency do you use?

Children
Related