Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI Transaction manager - nCS (chip select behavior)

Hello, 

In my project (nRF52, SDK14.2) I have spi data flash connected to the MCU.

I'm trying to use SPI transaction manager library (nrf_spi_mngr) and face few questions:

  1. Does .ss pin (in nrf_drv_spi_config_t) used in nrf_spi_mngr_init() serves as the chip select nCS?
  2. If it does -
    1. How can I drive several spi components of the same spi port (each with a different nCS)?
    2. If I'm using nrf_spi_mngr_schedule() to schedule a transaction pointing to multiple transfers (nrf_spi_mngr_transaction_t.p_transfers), will nCS be deasserted-reasserted between consecutive transactions ?
      • If it does deassert-reassert between transfers, can it be overridden - i.e. sending multiple transfers WITHOUT deassert-reassert in between transfers (like address and then data etc)?
  3. If it doesn't -
    1. How do I assert/deassert nCS before/after spi transfer. Do I use .begin_callback/end_callback of nrf_spi_mngr_transaction_t for that purpose?

Thanks.

Parents Reply Children
No Data
Related