I am using the AardvarkTM I2C/SPI Host Adapter as an SPI master with multiple slave devices. Can you clarify how the Aardvark API Software command aa_spi_write() works?
Is Slave Select asserted for each byte sent MOSI (master output slave input)?
-or-
Is Slave Select asserted for each byte sent MOSI (master output slave input)?
Thanks for your question! SPI requires four signals: SCLK, MODI, MISO, and SS. When the SPI implementation has multiple slave devices, each slave device requires a separate SS signal. The SCLK, MOSI and MISO signals are shared by all devices.
Following are details about the SPI signals. When the Aardvark host adapter SS signal is configured to active low, and the Aardvark writes to the slave device, the following transactions occur:
Between the bytes there is a delay, as shown in the figures below. For additional information about MOSI (master output slave input) signals, please refer to section 2.4 of the Aardvark Adapter User Manual.
For more information, please refer to the following documents:
Aardvark Host Adapter User Manual
API DocumentationWe hope this answers your question. If you have other questions about our host adapters or other Total Phase products, feel free to email us at sales@totalphase.com or submit a request for technical support.