Connect with us

Spi connections

Discussion in 'General Electronics Discussion' started by Rajinder, Feb 19, 2021.

Scroll to continue with content
  1. Rajinder

    Rajinder

    526
    9
    Jan 30, 2016
    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
     
  2. Harald Kapp

    Harald Kapp Moderator Moderator

    11,295
    2,586
    Nov 17, 2011
    @Rajinder : do you do any research yourself before coming to this forum?
    It's not that we don't want to help, but a bit of cooperation on your side is appreciated.
     
    Rajinder likes this.
  3. Rajinder

    Rajinder

    526
    9
    Jan 30, 2016
    Hi, I did some research and it said what I have mentioned on one website, but on another it was different, hence I wanted some clarification. That's all. Sorry.
     
  4. PETERDECO

    PETERDECO

    126
    35
    Dec 19, 2019
    I have limited SPI experience but it is my understanding the MISO (output) will connect to MOSI (input) for communications.
     
  5. Harald Kapp

    Harald Kapp Moderator Moderator

    11,295
    2,586
    Nov 17, 2011
    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.

    No.
    MOSI is MasterOutSlaveIn and is named so on both master and slave.
    Same for MISO (MasterInSlaveOut).
     
  6. bertus

    bertus Moderator

    1,694
    655
    Nov 8, 2019
    Rajinder likes this.
  7. PETERDECO

    PETERDECO

    126
    35
    Dec 19, 2019
    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.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-