Maker Pro
Maker Pro

Spi connections

Rajinder

Jan 30, 2016
568
Joined
Jan 30, 2016
Messages
568
Hi all,
I am connecting a 4 wire spi to 4 wire spi.
Master is a micro, slave is a temp sensor.
Do I connect as follows
SCLK to SCK
SS to CS
MOSI to MOSI
MISO to MISO
The micro is the master.
Thanks in advance
 

PETERDECO

Dec 19, 2019
239
Joined
Dec 19, 2019
Messages
239
I have limited SPI experience but it is my understanding the MISO (output) will connect to MOSI (input) for communications.
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
it said what I have mentioned on one website, but on another it was different
If you had said so and included the links to these sites it would have been clear to us that you had done some research which left you with doubts.

it is my understanding the MISO (output) will connect to MOSI (input) for communications.
No.
MOSI is MasterOutSlaveIn and is named so on both master and slave.
Same for MISO (MasterInSlaveOut).
 

PETERDECO

Dec 19, 2019
239
Joined
Dec 19, 2019
Messages
239
Thank you @bertus. That clarifies lots. @Harald a while back I used a uC to communicate with a chip using SPI. I connected the chip's MOSI (input) to the uC's SDO (output). That's the reason I thought the outputs connected to inputs.
 
Top