Author Topic: which SPI mode is this  (Read 1116 times)

0 Members and 1 Guest are viewing this topic.

Offline Vindhyachal.takniki

  • Frequent Contributor
  • **
  • Posts: 455
which SPI mode is this
« on: June 03, 2015, 07:21:44 am »
1. I have a slave device running on SPI which needs to communicate with MCU. In slave datasheet attached SPI diagram is given.
2. I need to set MCU SPI mode.
3. Which SPI mode is this. I think its SPI mode 1 because transmitter data i.e which is master have valid data on falling edge of clk.

 

Offline Kemme

  • Contributor
  • Posts: 25
  • Country: pl
Re: which SPI mode is this
« Reply #1 on: June 03, 2015, 07:55:30 am »
CPOL=0
CPHA=0
http://dot2pic.com - bitmap to data array online.
 

Offline odessa

  • Regular Contributor
  • *
  • Posts: 111
  • Country: gb
Re: which SPI mode is this
« Reply #2 on: June 03, 2015, 12:29:38 pm »
Thats SPI mode 0
When  I die I want to die peacefully in my sleep like my Grandad ... Not all shouting and screaming like the passengers on his bus.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf