This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC23xx SSP slave Mode

Hi,
I am trying to communicate SSP on 2 LPC23xx boards. One is Master and other is Slave.
Master Board Sending data correctly but Slave Board is not receiving data.

Please help...or send Slave mode code ...initialization of SSP Slave is According to Datasheet.

Thank You

Parents
  • "Note that MISO is _not_ used in this case, as it is not useful to have the master generate clock pules for the slave (in this case)"

    What do you mean by that?

    MISO on the slave doesn't have anything to do with need for clock pulses.

    The clock signal is always master -> slave.

    The MOSI signal is (often) connected master -> slave.

    The MISO signal is (often) connected slave -> master.

    Some programs are always sending data in both directions concurrently.

    Some are sending commands on MOSI while the slave sends zero or one bits.
    Then the master switches to sending dummy bits (normally zeros or ones) while picking up incomming bits from the slave.

    So yes - sometimes MISO isn't used. But irrelevant to the need for clock pulses.

Reply
  • "Note that MISO is _not_ used in this case, as it is not useful to have the master generate clock pules for the slave (in this case)"

    What do you mean by that?

    MISO on the slave doesn't have anything to do with need for clock pulses.

    The clock signal is always master -> slave.

    The MOSI signal is (often) connected master -> slave.

    The MISO signal is (often) connected slave -> master.

    Some programs are always sending data in both directions concurrently.

    Some are sending commands on MOSI while the slave sends zero or one bits.
    Then the master switches to sending dummy bits (normally zeros or ones) while picking up incomming bits from the slave.

    So yes - sometimes MISO isn't used. But irrelevant to the need for clock pulses.

Children
No data