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

Does nRF52840 SPIS configure GPIO pullup for CSN?

Previous versions of nrfx_spis.h:nrfx_spis_config_t had a "csn_pullup" field but the latest version does not.

The nRF52840 Product Specification is not very clear about how the CSN pin configuration is handled.  Does the GPIO pin need to be configured using the GPIO PIN_CNF registers or does the SPIS take control over the PSEL.CSN pin?  Will SPIS override GPIO configurations for this pin?

Thank you!

Parents
  • Hi,

    The pull config is set on the GPIO before the pin is set in the SPIS peripheral. The SPIS peripheral will control the pin once it is set in the peripheral, but this pull and drive-configs from the GPIO will still be effective.

    Previous versions of nrfx_spis.h:nrfx_spis_config_t had a "csn_pullup" field but the latest version does not.

    I'm not sure what you mean by this. I checked multiple versions of nrfx (1.6.2, 1.8.0, 2.0.0, 2.1.0) and they all have this member in the config struct.

    Best regards,
    Jørgen

Reply
  • Hi,

    The pull config is set on the GPIO before the pin is set in the SPIS peripheral. The SPIS peripheral will control the pin once it is set in the peripheral, but this pull and drive-configs from the GPIO will still be effective.

    Previous versions of nrfx_spis.h:nrfx_spis_config_t had a "csn_pullup" field but the latest version does not.

    I'm not sure what you mean by this. I checked multiple versions of nrfx (1.6.2, 1.8.0, 2.0.0, 2.1.0) and they all have this member in the config struct.

    Best regards,
    Jørgen

Children
Related