Can an SPI slave start a transmission in full-duplex mode?STM32 SPI not working as I expect it should based on online readingSerial Peripheral InterfaceSPI slave unreliable on PIC18LF2550Full duplex SPI Master using DMA - STM32F105STM32F2xx: Data from SPI Slave to MasterWhat is holding the SS pin high in SPI master mode on AVRs?STM32F411 SPI slave enters debug infinite loopSPI daisy chain read receive from slaveSPI clock source - master or slaveSPI internals _ missing MISO clock during read operationSPI: Receiving bytes from slave

How to query data in backups?

Is there a way to create a report for the failed entries while calling REST API

Double blind peer review when paper cites author's GitHub repo for code

Atari ST DRAM timing puzzle

Can an SPI slave start a transmission in full-duplex mode?

Why couldn't soldiers sight their own weapons without officers' orders?

Arrange a list in ascending order by deleting list elements

Did WWII Japanese soldiers engage in cannibalism of their enemies?

What is the idiomatic way of saying “he is ticklish under armpits”?

English - Acceptable use of parentheses in an author's name

Do other countries guarantee freedoms that the United States does not have?

Does the United States guarantee any unique freedoms?

What are good ways to improve as a writer other than writing courses?

Why are physicists so interested in irreps if in their non-block-diagonal form they mix all components of a vector?

How do we avoid CI-driven development...?

How does The Fools Guild make its money?

Look mom! I made my own (Base 10) numeral system!

Can I call myself an assistant professor without a PhD

Is there a loss of quality when converting RGB to HEX?

Is it really ~648.69 km/s delta-v to "land" on the surface of the Sun?

Team goes to lunch frequently, I do intermittent fasting but still want to socialize

Best gun to modify into a monsterhunter weapon?

What happen if I gain the control of aura that enchants an opponent's creature? Would the aura stay attached?

Plausibility of Ice Eaters in the Arctic



Can an SPI slave start a transmission in full-duplex mode?


STM32 SPI not working as I expect it should based on online readingSerial Peripheral InterfaceSPI slave unreliable on PIC18LF2550Full duplex SPI Master using DMA - STM32F105STM32F2xx: Data from SPI Slave to MasterWhat is holding the SS pin high in SPI master mode on AVRs?STM32F411 SPI slave enters debug infinite loopSPI daisy chain read receive from slaveSPI clock source - master or slaveSPI internals _ missing MISO clock during read operationSPI: Receiving bytes from slave






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3












$begingroup$


As far as I know, SPI transmission for an SPI slave works like below:



  1. Master selects a slave using SS pin

  2. Master and slave send data to each other simultaneously

  3. Master starts clock and data transmission at the same time (there is no clock before write operation)

  4. Master stops transmission any time it wants (by stopping write operation and clock generation), even if slave has more data to send.

Is there any SPI slave configuration which allows slave to transmit data without permission of master?



I'm just thinking out loud. Assume that there is only one slave and a continuous clock is provided by master etc.



Even if assumed statement is true, don't master and slave lose byte synchronization (i.e. receives bit stream) since there is no start-stop bits for SPI?



I'm asking such a question because I've read the following section from this document.




2.2 SPI Example



The attached SPI example illustrates the use of the USART in
synchronous mode. USART1 is configured as slave, whereas USART2 is
master. The following transactions take place:



  • Data transmission from master to slave.

  • Data transmission from slave to master.

  • Data transmission from master to slave and from slave to master simultaneously.



The document gives SPI example but realizes the example using USART devices. And I get that a USART slave can start a transmission without permission of master.



I couldn't find the source code that is referenced by the document.










share|improve this question









New contributor



JeJoRic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$









  • 4




    $begingroup$
    The slave, by definition, cannot initiate a transaction (it may be able to interrupt the master to get a transaction started though).
    $endgroup$
    – Peter Smith
    9 hours ago






  • 4




    $begingroup$
    Unidirectional data transfer in traditional SPI is just someone ignoring the state of the line going in the other direction. Writes, reads, and bidirectional transfers aren't really any different. In fact for example many SPI peripherals will clock out a status word during the first word, before they even know what is being requested, since it costs next to nothing to do so and allows a quick status polling.
    $endgroup$
    – Chris Stratton
    8 hours ago


















3












$begingroup$


As far as I know, SPI transmission for an SPI slave works like below:



  1. Master selects a slave using SS pin

  2. Master and slave send data to each other simultaneously

  3. Master starts clock and data transmission at the same time (there is no clock before write operation)

  4. Master stops transmission any time it wants (by stopping write operation and clock generation), even if slave has more data to send.

Is there any SPI slave configuration which allows slave to transmit data without permission of master?



I'm just thinking out loud. Assume that there is only one slave and a continuous clock is provided by master etc.



Even if assumed statement is true, don't master and slave lose byte synchronization (i.e. receives bit stream) since there is no start-stop bits for SPI?



I'm asking such a question because I've read the following section from this document.




2.2 SPI Example



The attached SPI example illustrates the use of the USART in
synchronous mode. USART1 is configured as slave, whereas USART2 is
master. The following transactions take place:



  • Data transmission from master to slave.

  • Data transmission from slave to master.

  • Data transmission from master to slave and from slave to master simultaneously.



The document gives SPI example but realizes the example using USART devices. And I get that a USART slave can start a transmission without permission of master.



I couldn't find the source code that is referenced by the document.










share|improve this question









New contributor



JeJoRic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$









  • 4




    $begingroup$
    The slave, by definition, cannot initiate a transaction (it may be able to interrupt the master to get a transaction started though).
    $endgroup$
    – Peter Smith
    9 hours ago






  • 4




    $begingroup$
    Unidirectional data transfer in traditional SPI is just someone ignoring the state of the line going in the other direction. Writes, reads, and bidirectional transfers aren't really any different. In fact for example many SPI peripherals will clock out a status word during the first word, before they even know what is being requested, since it costs next to nothing to do so and allows a quick status polling.
    $endgroup$
    – Chris Stratton
    8 hours ago














3












3








3





$begingroup$


As far as I know, SPI transmission for an SPI slave works like below:



  1. Master selects a slave using SS pin

  2. Master and slave send data to each other simultaneously

  3. Master starts clock and data transmission at the same time (there is no clock before write operation)

  4. Master stops transmission any time it wants (by stopping write operation and clock generation), even if slave has more data to send.

Is there any SPI slave configuration which allows slave to transmit data without permission of master?



I'm just thinking out loud. Assume that there is only one slave and a continuous clock is provided by master etc.



Even if assumed statement is true, don't master and slave lose byte synchronization (i.e. receives bit stream) since there is no start-stop bits for SPI?



I'm asking such a question because I've read the following section from this document.




2.2 SPI Example



The attached SPI example illustrates the use of the USART in
synchronous mode. USART1 is configured as slave, whereas USART2 is
master. The following transactions take place:



  • Data transmission from master to slave.

  • Data transmission from slave to master.

  • Data transmission from master to slave and from slave to master simultaneously.



The document gives SPI example but realizes the example using USART devices. And I get that a USART slave can start a transmission without permission of master.



I couldn't find the source code that is referenced by the document.










share|improve this question









New contributor



JeJoRic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$




As far as I know, SPI transmission for an SPI slave works like below:



  1. Master selects a slave using SS pin

  2. Master and slave send data to each other simultaneously

  3. Master starts clock and data transmission at the same time (there is no clock before write operation)

  4. Master stops transmission any time it wants (by stopping write operation and clock generation), even if slave has more data to send.

Is there any SPI slave configuration which allows slave to transmit data without permission of master?



I'm just thinking out loud. Assume that there is only one slave and a continuous clock is provided by master etc.



Even if assumed statement is true, don't master and slave lose byte synchronization (i.e. receives bit stream) since there is no start-stop bits for SPI?



I'm asking such a question because I've read the following section from this document.




2.2 SPI Example



The attached SPI example illustrates the use of the USART in
synchronous mode. USART1 is configured as slave, whereas USART2 is
master. The following transactions take place:



  • Data transmission from master to slave.

  • Data transmission from slave to master.

  • Data transmission from master to slave and from slave to master simultaneously.



The document gives SPI example but realizes the example using USART devices. And I get that a USART slave can start a transmission without permission of master.



I couldn't find the source code that is referenced by the document.







microcontroller spi uart serial






share|improve this question









New contributor



JeJoRic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



JeJoRic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 8 hours ago









bitsmack

13.3k7 gold badges38 silver badges82 bronze badges




13.3k7 gold badges38 silver badges82 bronze badges






New contributor



JeJoRic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 9 hours ago









JeJoRicJeJoRic

183 bronze badges




183 bronze badges




New contributor



JeJoRic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




JeJoRic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • 4




    $begingroup$
    The slave, by definition, cannot initiate a transaction (it may be able to interrupt the master to get a transaction started though).
    $endgroup$
    – Peter Smith
    9 hours ago






  • 4




    $begingroup$
    Unidirectional data transfer in traditional SPI is just someone ignoring the state of the line going in the other direction. Writes, reads, and bidirectional transfers aren't really any different. In fact for example many SPI peripherals will clock out a status word during the first word, before they even know what is being requested, since it costs next to nothing to do so and allows a quick status polling.
    $endgroup$
    – Chris Stratton
    8 hours ago













  • 4




    $begingroup$
    The slave, by definition, cannot initiate a transaction (it may be able to interrupt the master to get a transaction started though).
    $endgroup$
    – Peter Smith
    9 hours ago






  • 4




    $begingroup$
    Unidirectional data transfer in traditional SPI is just someone ignoring the state of the line going in the other direction. Writes, reads, and bidirectional transfers aren't really any different. In fact for example many SPI peripherals will clock out a status word during the first word, before they even know what is being requested, since it costs next to nothing to do so and allows a quick status polling.
    $endgroup$
    – Chris Stratton
    8 hours ago








4




4




$begingroup$
The slave, by definition, cannot initiate a transaction (it may be able to interrupt the master to get a transaction started though).
$endgroup$
– Peter Smith
9 hours ago




$begingroup$
The slave, by definition, cannot initiate a transaction (it may be able to interrupt the master to get a transaction started though).
$endgroup$
– Peter Smith
9 hours ago




4




4




$begingroup$
Unidirectional data transfer in traditional SPI is just someone ignoring the state of the line going in the other direction. Writes, reads, and bidirectional transfers aren't really any different. In fact for example many SPI peripherals will clock out a status word during the first word, before they even know what is being requested, since it costs next to nothing to do so and allows a quick status polling.
$endgroup$
– Chris Stratton
8 hours ago





$begingroup$
Unidirectional data transfer in traditional SPI is just someone ignoring the state of the line going in the other direction. Writes, reads, and bidirectional transfers aren't really any different. In fact for example many SPI peripherals will clock out a status word during the first word, before they even know what is being requested, since it costs next to nothing to do so and allows a quick status polling.
$endgroup$
– Chris Stratton
8 hours ago











2 Answers
2






active

oldest

votes


















8












$begingroup$

No, with SPI, all communications are driven by the master device. You are correct that the master cannot simply provide a continuous clock; there would be no way to detect the byte boundaries.



A slave device will often have a separate output pin to signal to the master that it has data available. This pin is connected to an input on a microcontroller and is often used as an interrupt.



Then, the device can assert the pin, causing the microcontroller to spin up the SPI bus.




For more detailed information, please read on :) This is a slightly-modified version of an explanation found here:




The slave device can only communicate when it is provided a clock from the master. This complicates reading from the slave, because you have to cause the master to provide enough clock cycles for the slave to respond.



When you send an SPI command from the master, two transmissions actually happen during the same eight clock pulses. The first is that your byte is clocked out of the MOSI line. But, at the same time, data is being clocked in to the microcontroller via the MISO line.



But since the slave doesn't get the full command until the end of these transactions, it doesn't present any data to the bus. This results in a received value of 0x00 or 0xFF.



Then you need to provide an additional eight clocks to allow the slave to return the actual value. In many code implementations, this is done by sending a "dummy byte" to the slave.



Note that, in the first transmission, the master ignores whatever arrives from the slave. In the second transmission, the slave ignores whatever is sent by the master.




That describes the general case. There can be additional complexities. For example, some slave ICs will actually output some sort of status byte at the same time they are receiving a command from the master. So, in this case, the master shouldn't discard the first received byte.






share|improve this answer











$endgroup$










  • 1




    $begingroup$
    "the master cannot simply provide a continuous clock" Actually I've seen a device not too long ago that does exactly that. It was a weird little beast. I don't recall the P/N unfortunately.
    $endgroup$
    – Aaron
    4 hours ago










  • $begingroup$
    @Aaron Good to know! People keep getting more and more clever :-)
    $endgroup$
    – bitsmack
    1 hour ago


















1












$begingroup$

No, master is the one that arbitrates the chipselects and drives the clock. A slave will always only listen to clock and chipselect. Data transfer can be full duplex still. There are some implementations where the clock can be continuous, but it does not matter much as the chipselect is used to synchronize the byte boundaries anyway. But then there are multimaster systems, so basically you can have some mechanism for the devices to decide who is slave and master. Or just include a separate "interrupt" wire for the slave to signal the master that it has a data packet for the master.






share|improve this answer









$endgroup$

















    Your Answer






    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("schematics", function ()
    StackExchange.schematics.init();
    );
    , "cicuitlab");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "135"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    JeJoRic is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f452278%2fcan-an-spi-slave-start-a-transmission-in-full-duplex-mode%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    8












    $begingroup$

    No, with SPI, all communications are driven by the master device. You are correct that the master cannot simply provide a continuous clock; there would be no way to detect the byte boundaries.



    A slave device will often have a separate output pin to signal to the master that it has data available. This pin is connected to an input on a microcontroller and is often used as an interrupt.



    Then, the device can assert the pin, causing the microcontroller to spin up the SPI bus.




    For more detailed information, please read on :) This is a slightly-modified version of an explanation found here:




    The slave device can only communicate when it is provided a clock from the master. This complicates reading from the slave, because you have to cause the master to provide enough clock cycles for the slave to respond.



    When you send an SPI command from the master, two transmissions actually happen during the same eight clock pulses. The first is that your byte is clocked out of the MOSI line. But, at the same time, data is being clocked in to the microcontroller via the MISO line.



    But since the slave doesn't get the full command until the end of these transactions, it doesn't present any data to the bus. This results in a received value of 0x00 or 0xFF.



    Then you need to provide an additional eight clocks to allow the slave to return the actual value. In many code implementations, this is done by sending a "dummy byte" to the slave.



    Note that, in the first transmission, the master ignores whatever arrives from the slave. In the second transmission, the slave ignores whatever is sent by the master.




    That describes the general case. There can be additional complexities. For example, some slave ICs will actually output some sort of status byte at the same time they are receiving a command from the master. So, in this case, the master shouldn't discard the first received byte.






    share|improve this answer











    $endgroup$










    • 1




      $begingroup$
      "the master cannot simply provide a continuous clock" Actually I've seen a device not too long ago that does exactly that. It was a weird little beast. I don't recall the P/N unfortunately.
      $endgroup$
      – Aaron
      4 hours ago










    • $begingroup$
      @Aaron Good to know! People keep getting more and more clever :-)
      $endgroup$
      – bitsmack
      1 hour ago















    8












    $begingroup$

    No, with SPI, all communications are driven by the master device. You are correct that the master cannot simply provide a continuous clock; there would be no way to detect the byte boundaries.



    A slave device will often have a separate output pin to signal to the master that it has data available. This pin is connected to an input on a microcontroller and is often used as an interrupt.



    Then, the device can assert the pin, causing the microcontroller to spin up the SPI bus.




    For more detailed information, please read on :) This is a slightly-modified version of an explanation found here:




    The slave device can only communicate when it is provided a clock from the master. This complicates reading from the slave, because you have to cause the master to provide enough clock cycles for the slave to respond.



    When you send an SPI command from the master, two transmissions actually happen during the same eight clock pulses. The first is that your byte is clocked out of the MOSI line. But, at the same time, data is being clocked in to the microcontroller via the MISO line.



    But since the slave doesn't get the full command until the end of these transactions, it doesn't present any data to the bus. This results in a received value of 0x00 or 0xFF.



    Then you need to provide an additional eight clocks to allow the slave to return the actual value. In many code implementations, this is done by sending a "dummy byte" to the slave.



    Note that, in the first transmission, the master ignores whatever arrives from the slave. In the second transmission, the slave ignores whatever is sent by the master.




    That describes the general case. There can be additional complexities. For example, some slave ICs will actually output some sort of status byte at the same time they are receiving a command from the master. So, in this case, the master shouldn't discard the first received byte.






    share|improve this answer











    $endgroup$










    • 1




      $begingroup$
      "the master cannot simply provide a continuous clock" Actually I've seen a device not too long ago that does exactly that. It was a weird little beast. I don't recall the P/N unfortunately.
      $endgroup$
      – Aaron
      4 hours ago










    • $begingroup$
      @Aaron Good to know! People keep getting more and more clever :-)
      $endgroup$
      – bitsmack
      1 hour ago













    8












    8








    8





    $begingroup$

    No, with SPI, all communications are driven by the master device. You are correct that the master cannot simply provide a continuous clock; there would be no way to detect the byte boundaries.



    A slave device will often have a separate output pin to signal to the master that it has data available. This pin is connected to an input on a microcontroller and is often used as an interrupt.



    Then, the device can assert the pin, causing the microcontroller to spin up the SPI bus.




    For more detailed information, please read on :) This is a slightly-modified version of an explanation found here:




    The slave device can only communicate when it is provided a clock from the master. This complicates reading from the slave, because you have to cause the master to provide enough clock cycles for the slave to respond.



    When you send an SPI command from the master, two transmissions actually happen during the same eight clock pulses. The first is that your byte is clocked out of the MOSI line. But, at the same time, data is being clocked in to the microcontroller via the MISO line.



    But since the slave doesn't get the full command until the end of these transactions, it doesn't present any data to the bus. This results in a received value of 0x00 or 0xFF.



    Then you need to provide an additional eight clocks to allow the slave to return the actual value. In many code implementations, this is done by sending a "dummy byte" to the slave.



    Note that, in the first transmission, the master ignores whatever arrives from the slave. In the second transmission, the slave ignores whatever is sent by the master.




    That describes the general case. There can be additional complexities. For example, some slave ICs will actually output some sort of status byte at the same time they are receiving a command from the master. So, in this case, the master shouldn't discard the first received byte.






    share|improve this answer











    $endgroup$



    No, with SPI, all communications are driven by the master device. You are correct that the master cannot simply provide a continuous clock; there would be no way to detect the byte boundaries.



    A slave device will often have a separate output pin to signal to the master that it has data available. This pin is connected to an input on a microcontroller and is often used as an interrupt.



    Then, the device can assert the pin, causing the microcontroller to spin up the SPI bus.




    For more detailed information, please read on :) This is a slightly-modified version of an explanation found here:




    The slave device can only communicate when it is provided a clock from the master. This complicates reading from the slave, because you have to cause the master to provide enough clock cycles for the slave to respond.



    When you send an SPI command from the master, two transmissions actually happen during the same eight clock pulses. The first is that your byte is clocked out of the MOSI line. But, at the same time, data is being clocked in to the microcontroller via the MISO line.



    But since the slave doesn't get the full command until the end of these transactions, it doesn't present any data to the bus. This results in a received value of 0x00 or 0xFF.



    Then you need to provide an additional eight clocks to allow the slave to return the actual value. In many code implementations, this is done by sending a "dummy byte" to the slave.



    Note that, in the first transmission, the master ignores whatever arrives from the slave. In the second transmission, the slave ignores whatever is sent by the master.




    That describes the general case. There can be additional complexities. For example, some slave ICs will actually output some sort of status byte at the same time they are receiving a command from the master. So, in this case, the master shouldn't discard the first received byte.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 7 hours ago

























    answered 9 hours ago









    bitsmackbitsmack

    13.3k7 gold badges38 silver badges82 bronze badges




    13.3k7 gold badges38 silver badges82 bronze badges










    • 1




      $begingroup$
      "the master cannot simply provide a continuous clock" Actually I've seen a device not too long ago that does exactly that. It was a weird little beast. I don't recall the P/N unfortunately.
      $endgroup$
      – Aaron
      4 hours ago










    • $begingroup$
      @Aaron Good to know! People keep getting more and more clever :-)
      $endgroup$
      – bitsmack
      1 hour ago












    • 1




      $begingroup$
      "the master cannot simply provide a continuous clock" Actually I've seen a device not too long ago that does exactly that. It was a weird little beast. I don't recall the P/N unfortunately.
      $endgroup$
      – Aaron
      4 hours ago










    • $begingroup$
      @Aaron Good to know! People keep getting more and more clever :-)
      $endgroup$
      – bitsmack
      1 hour ago







    1




    1




    $begingroup$
    "the master cannot simply provide a continuous clock" Actually I've seen a device not too long ago that does exactly that. It was a weird little beast. I don't recall the P/N unfortunately.
    $endgroup$
    – Aaron
    4 hours ago




    $begingroup$
    "the master cannot simply provide a continuous clock" Actually I've seen a device not too long ago that does exactly that. It was a weird little beast. I don't recall the P/N unfortunately.
    $endgroup$
    – Aaron
    4 hours ago












    $begingroup$
    @Aaron Good to know! People keep getting more and more clever :-)
    $endgroup$
    – bitsmack
    1 hour ago




    $begingroup$
    @Aaron Good to know! People keep getting more and more clever :-)
    $endgroup$
    – bitsmack
    1 hour ago













    1












    $begingroup$

    No, master is the one that arbitrates the chipselects and drives the clock. A slave will always only listen to clock and chipselect. Data transfer can be full duplex still. There are some implementations where the clock can be continuous, but it does not matter much as the chipselect is used to synchronize the byte boundaries anyway. But then there are multimaster systems, so basically you can have some mechanism for the devices to decide who is slave and master. Or just include a separate "interrupt" wire for the slave to signal the master that it has a data packet for the master.






    share|improve this answer









    $endgroup$



















      1












      $begingroup$

      No, master is the one that arbitrates the chipselects and drives the clock. A slave will always only listen to clock and chipselect. Data transfer can be full duplex still. There are some implementations where the clock can be continuous, but it does not matter much as the chipselect is used to synchronize the byte boundaries anyway. But then there are multimaster systems, so basically you can have some mechanism for the devices to decide who is slave and master. Or just include a separate "interrupt" wire for the slave to signal the master that it has a data packet for the master.






      share|improve this answer









      $endgroup$

















        1












        1








        1





        $begingroup$

        No, master is the one that arbitrates the chipselects and drives the clock. A slave will always only listen to clock and chipselect. Data transfer can be full duplex still. There are some implementations where the clock can be continuous, but it does not matter much as the chipselect is used to synchronize the byte boundaries anyway. But then there are multimaster systems, so basically you can have some mechanism for the devices to decide who is slave and master. Or just include a separate "interrupt" wire for the slave to signal the master that it has a data packet for the master.






        share|improve this answer









        $endgroup$



        No, master is the one that arbitrates the chipselects and drives the clock. A slave will always only listen to clock and chipselect. Data transfer can be full duplex still. There are some implementations where the clock can be continuous, but it does not matter much as the chipselect is used to synchronize the byte boundaries anyway. But then there are multimaster systems, so basically you can have some mechanism for the devices to decide who is slave and master. Or just include a separate "interrupt" wire for the slave to signal the master that it has a data packet for the master.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 8 hours ago









        JustmeJustme

        5,9612 gold badges6 silver badges17 bronze badges




        5,9612 gold badges6 silver badges17 bronze badges























            JeJoRic is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            JeJoRic is a new contributor. Be nice, and check out our Code of Conduct.












            JeJoRic is a new contributor. Be nice, and check out our Code of Conduct.











            JeJoRic is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to Electrical Engineering Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f452278%2fcan-an-spi-slave-start-a-transmission-in-full-duplex-mode%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

            Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

            Tom Holland Mục lục Đầu đời và giáo dục | Sự nghiệp | Cuộc sống cá nhân | Phim tham gia | Giải thưởng và đề cử | Chú thích | Liên kết ngoài | Trình đơn chuyển hướngProfile“Person Details for Thomas Stanley Holland, "England and Wales Birth Registration Index, 1837-2008" — FamilySearch.org”"Meet Tom Holland... the 16-year-old star of The Impossible""Schoolboy actor Tom Holland finds himself in Oscar contention for role in tsunami drama"“Naomi Watts on the Prince William and Harry's reaction to her film about the late Princess Diana”lưu trữ"Holland and Pflueger Are West End's Two New 'Billy Elliots'""I'm so envious of my son, the movie star! British writer Dominic Holland's spent 20 years trying to crack Hollywood - but he's been beaten to it by a very unlikely rival"“Richard and Margaret Povey of Jersey, Channel Islands, UK: Information about Thomas Stanley Holland”"Tom Holland to play Billy Elliot""New Billy Elliot leaving the garage"Billy Elliot the Musical - Tom Holland - Billy"A Tale of four Billys: Tom Holland""The Feel Good Factor""Thames Christian College schoolboys join Myleene Klass for The Feelgood Factor""Government launches £600,000 arts bursaries pilot""BILLY's Chapman, Holland, Gardner & Jackson-Keen Visit Prime Minister""Elton John 'blown away' by Billy Elliot fifth birthday" (video with John's interview and fragments of Holland's performance)"First News interviews Arrietty's Tom Holland"“33rd Critics' Circle Film Awards winners”“National Board of Review Current Awards”Bản gốc"Ron Howard Whaling Tale 'In The Heart Of The Sea' Casts Tom Holland"“'Spider-Man' Finds Tom Holland to Star as New Web-Slinger”lưu trữ“Captain America: Civil War (2016)”“Film Review: ‘Captain America: Civil War’”lưu trữ“‘Captain America: Civil War’ review: Choose your own avenger”lưu trữ“The Lost City of Z reviews”“Sony Pictures and Marvel Studios Find Their 'Spider-Man' Star and Director”“‘Mary Magdalene’, ‘Current War’ & ‘Wind River’ Get 2017 Release Dates From Weinstein”“Lionsgate Unleashing Daisy Ridley & Tom Holland Starrer ‘Chaos Walking’ In Cannes”“PTA's 'Master' Leads Chicago Film Critics Nominations, UPDATED: Houston and Indiana Critics Nominations”“Nominaciones Goya 2013 Telecinco Cinema – ENG”“Jameson Empire Film Awards: Martin Freeman wins best actor for performance in The Hobbit”“34th Annual Young Artist Awards”Bản gốc“Teen Choice Awards 2016—Captain America: Civil War Leads Second Wave of Nominations”“BAFTA Film Award Nominations: ‘La La Land’ Leads Race”“Saturn Awards Nominations 2017: 'Rogue One,' 'Walking Dead' Lead”Tom HollandTom HollandTom HollandTom Hollandmedia.gettyimages.comWorldCat Identities300279794no20130442900000 0004 0355 42791085670554170004732cb16706349t(data)XX5557367