<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: can anyone please explain hw to transfer data from slave to master in SPI and i know hw to transmit data from master to salve.</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285638#M11990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreedhara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The slave has to be read by the master if you want to transfer data between them. I do like this:&lt;/P&gt;&lt;P&gt;- Chip select the device&lt;/P&gt;&lt;P&gt;- Provide a register address (I manage internal "registers" with data) with the LSB telling the slave if it's write/read.&lt;/P&gt;&lt;P&gt;- If it's it's write, the slave gets the data on the next byte and writes it into the register. The data pushed by the slave in this case is ignored by the master&lt;BR /&gt;- If it's read, the master will receive the byte contained in that address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a particular case I work, but I think you got the idea: When you chip select the slave, the data in the buffer is shifted out to the master. It's as simple as that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 10:25:51 GMT</pubDate>
    <dc:creator>andersonfelippe</dc:creator>
    <dc:date>2013-04-25T10:25:51Z</dc:date>
    <item>
      <title>can anyone please explain hw to transfer data from slave to master in SPI and i know hw to transmit data from master to salve.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285637#M11989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone please explain hw to transfer data from slave to master in SPI communication&amp;nbsp; and i know hw to transmit data from master to salve.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; both salve and master devices are free scale mc13224v chip based boards.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;shreedhara m&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 09:52:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285637#M11989</guid>
      <dc:creator>shreedharamanni</dc:creator>
      <dc:date>2013-04-25T09:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone please explain hw to transfer data from slave to master in SPI and i know hw to transmit data from master to salve.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285638#M11990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreedhara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The slave has to be read by the master if you want to transfer data between them. I do like this:&lt;/P&gt;&lt;P&gt;- Chip select the device&lt;/P&gt;&lt;P&gt;- Provide a register address (I manage internal "registers" with data) with the LSB telling the slave if it's write/read.&lt;/P&gt;&lt;P&gt;- If it's it's write, the slave gets the data on the next byte and writes it into the register. The data pushed by the slave in this case is ignored by the master&lt;BR /&gt;- If it's read, the master will receive the byte contained in that address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a particular case I work, but I think you got the idea: When you chip select the slave, the data in the buffer is shifted out to the master. It's as simple as that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 10:25:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285638#M11990</guid>
      <dc:creator>andersonfelippe</dc:creator>
      <dc:date>2013-04-25T10:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone please explain hw to transfer data from slave to master in SPI and i know hw to transmit data from master to salve.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285639#M11991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anderson Felippe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  thaks for your replay.i had gone through your mail and i have doubt that&lt;/P&gt;&lt;P&gt;if salve has to transmit the data to master,is that it is required to&lt;/P&gt;&lt;P&gt;convert slave to master and master to salve for the duration of&lt;/P&gt;&lt;P&gt;transmission.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;shreedhara m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, Apr 25, 2013 at 3:56 PM, Anderson Felippe &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 11:36:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285639#M11991</guid>
      <dc:creator>shreedharamanni</dc:creator>
      <dc:date>2013-04-25T11:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone please explain hw to transfer data from slave to master in SPI and i know hw to transmit data from master to salve.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285640#M11992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there's no need and also no point in doing that. The slave has to be read by the master, only that.&lt;/P&gt;&lt;P&gt;I hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 11:47:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285640#M11992</guid>
      <dc:creator>andersonfelippe</dc:creator>
      <dc:date>2013-04-25T11:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone please explain hw to transfer data from slave to master in SPI and i know hw to transmit data from master to salve.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285641#M11993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This Forum is for Coldfire parts. The chip you're using is ARM-based, RF Zigbee chip, and discussion on those parts is being held in this forum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/space/2021"&gt;Other Freescale Solutions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Anderson said you should not try to switch master and slave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI allows sending 8 (or 16 or more) bits from the Master to the Slave. These bits are shifted out of a shift-register in the Master into another shift-register in the Slave. At the same time a shift register in the slave is shifted data back into the master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's it. The "meaning" of the bits in the data being transferred is up to you. Hardware chips that have SPI interfaces (like EEPROM, clocks and ADC converters) come with data sheets that detail how the hardware designer has decided to use SPI to get the job done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you read the data sheets for various SPI-based chips, and then copy the registers and the use for one that most closely matches what you want to do. We use multiple SPI-connected CAN controllers on Coldfire parts. These CAN chips have 128 bytes of control registers. The master has to send a control byte (which means "read, write, reset, bit-modify" or other commands), then the address of the register, then the data to send, or (while sending "dummy data") read if it is reading data back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Master can send data whenever it wants to. The Slave can't start a transfer. If the Slave in your design has to request the master to communicate with it, then you need an separate connection from the Slave that interrupts the master. This is treated like any other peripheral interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 14:40:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285641#M11993</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2013-04-25T14:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone please explain hw to transfer data from slave to master in SPI and i know hw to transmit data from master to salve.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285642#M11994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Tom Evans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur replay.i try now with ur information..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;shreedhara m&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 04:39:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285642#M11994</guid>
      <dc:creator>shreedharamanni</dc:creator>
      <dc:date>2013-04-26T04:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: can anyone please explain hw to transfer data from slave to master in SPI and i know hw to transmit data from master to salve.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285643#M11995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks dude..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 04:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/can-anyone-please-explain-hw-to-transfer-data-from-slave-to/m-p/285643#M11995</guid>
      <dc:creator>shreedharamanni</dc:creator>
      <dc:date>2013-04-26T04:39:53Z</dc:date>
    </item>
  </channel>
</rss>

