which SPI mode is this

Thread Starter

Vindhyachal Takniki

Joined Nov 3, 2014
594
1. I have a slave device running on SPI which needs to communicate with MCU.
2. I need to set MCU SPI mode.
3. Which SPI mode is this. I think its SPI mode 1.

Edit: Below pic I found in slave datasheet

Untitled.png
 
Last edited:

John P

Joined Oct 14, 2008
2,026
I don't think this is SPI at all, if you want to use common microcontrollers to interface with it. It seems as if you clock in 18 bits on SDI, and then the output bits begin--that is a long way from standard. Normally you'd send and receive 8 bits simultaneously, but maybe there's a processor somewhere that has "programmable SPI" that lets you select everything. If you're bit-banging it, then you just follow the diagram and it is what it is, SPI or something unique.
 

RamaD

Joined Dec 4, 2009
328
  • Remove John P, 27 minutes ago, which SPI mode is this
    It seems as if you clock in 18 bits on SDI, and then the output bits begin
It is 24 bits. Sure enough, I7 and 17 look the same!
 
Top