<?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>8-bit MicrocontrollersのトピックRe: interfacing spi</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197501#M15892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Peg has already suggested, if you are using the code that utilizes the double buffering capability of the SCI module, it is possible for an overrun condition to occur, where the transmission of the second byte is completed before the first byte can be read.&amp;nbsp; Data will be lost.&amp;nbsp; For the original SPI clock rate, the value of the first received byte must be read within less than&amp;nbsp;256 bus cycles&amp;nbsp;from the completion of the transfer.&amp;nbsp; By doubling the SPI clock rate, the critical read period would be halved to 128 bus cycles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is therefore possible that a timer, or other interrupt may occur at the critical point, and may take more than 128 cycles to complete execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution 1:&amp;nbsp; Globally disable interrupts just prior to sending the second byte, and re-enable interrupts after the first byte has been read, and the flag cleared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution 2:&amp;nbsp; Do not send the second byte until after the first byte has been read.&amp;nbsp; This will eliminate any critical timing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Oct 2010 13:45:02 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2010-10-03T13:45:02Z</dc:date>
    <item>
      <title>interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197491#M15882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all, do you think it is possible link 4-wires SPI on my qe64 to 3-wires spi of "si4432" (silicon labs)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 19:55:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197491#M15882</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2010-05-04T19:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197492#M15883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes this is possible. The SS signal is very much optional.&lt;/P&gt;&lt;P&gt;Connect the clocks MOSI MISO together ans set one as master the other as slave and off you go!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 03:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197492#M15883</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2010-05-05T03:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197493#M15884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact the SI4432 device does require four connections for the SPI interface.&lt;/P&gt;&lt;P&gt;SDI &amp;lt;-&amp;gt; MOSI&lt;/P&gt;&lt;P&gt;SDO &amp;lt;-&amp;gt; MISO&lt;/P&gt;&lt;P&gt;SCLK &amp;lt;-&amp;gt; SPCLK&lt;/P&gt;&lt;P&gt;nSEL &amp;lt;-&amp;gt; (SS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nSEL may connect to any GP output pin, and must be controlled by your code.&amp;nbsp; If you choose to use the SS pin, this will also need to&amp;nbsp;be configured&amp;nbsp;as&amp;nbsp;GP output.&amp;nbsp; Automatic operation of the SS output&amp;nbsp;is not appropriate because of the multiple byte commands required by the transceiver device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 08:11:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197493#M15884</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-05-05T08:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197494#M15885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I have read the data sheet, and I come to the same end. The only «doubt» is&amp;nbsp;on&amp;nbsp;the behaviour of SDO, but&amp;nbsp;in short I think i could try it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 13:46:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197494#M15885</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2010-05-06T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197495#M15886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, now I'm trying to connect it... using SPI on my qe64.&lt;BR /&gt;I need to realize a timing like in figure.&lt;BR /&gt;I'm using these settings:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;SPI1C1 = 0x50; // master mode CPOL = CPHA = 0, ssoe = 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;SPI1C2 = 0x00; // modfen = 0 =&amp;gt; ss = gpio&lt;/P&gt;&lt;P&gt;and this routine:&lt;/P&gt;&lt;P&gt;void spi_write_register (unsigned char address, unsigned char data)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;__asm SEI;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;PTBD_PTBD5 = 0;// enable ss&lt;BR /&gt;&amp;nbsp;&amp;nbsp;while (!SPI1S_SPTEF); // wait transmit buffer empty flag&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SPI1D = address;&amp;nbsp;&amp;nbsp;// send address&lt;BR /&gt;&amp;nbsp;&amp;nbsp;while (!SPI1S_SPRF);&amp;nbsp; // wait&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SPI1D;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// clear flag&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SPI1D = data;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// new data&lt;BR /&gt;&amp;nbsp;&amp;nbsp;while (!SPI1S_SPRF);&amp;nbsp;// wait&lt;BR /&gt;&amp;nbsp;&amp;nbsp;PTBD_PTBD5 = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// disable&amp;nbsp;ss&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;__asm CLI;&lt;BR /&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;I'm getting something similar at the figure attached. But, between bit a0 and bit d7,&lt;BR /&gt;i have an extra-pause. How can I kill it?&lt;/P&gt;&lt;P&gt;If someone could help me, thanks a lot,&lt;BR /&gt;Best regards&lt;BR /&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 23:38:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197495#M15886</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2010-06-11T23:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197496#M15887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The slight delay is due to the fetching of the data byte following the transmission of the address byte.&amp;nbsp; This is of no consequence since the next clock pulses generated by the master&amp;nbsp;is also delayed.&amp;nbsp; On the same basis, it is&amp;nbsp;usually unnecessary&amp;nbsp;that interrupts need to be disabled and re-enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to operate the SPI device as intended?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jun 2010 00:00:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197496#M15887</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-06-12T00:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197497#M15888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As this interface is synchronous the master can stop/start/change speed whenever it feels like it and the slave end will just follow the clock and read the input/set the output at the appropriate time. So the pause is not an issue.&lt;/P&gt;&lt;P&gt;However by properly utilising the buffered nature of the SCID you can join the data stream together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  PTBD_PTBD5 = 0;// enable ss  while (!SPI1S_SPTEF); // wait transmit buffer empty flag    SPI1D = address;  // send address  while (!SPI1S_SPTEF); // wait transmit buffer empty flag    SPI1D = data;    // new data  while (!SPI1S_SPRF);  // wait      SPI1D;       // clear flag  while (!SPI1S_SPRF);  // wait      SPI1D;       // clear flag  PTBD_PTBD5 = 1;    // disable ss&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By always waiting until the SCID is truly MT in the routine, the SCID transmit side will always be truly MT (both shift register and buffer) when you enter the routine. This allows you to stuff two bytes before you start reading. This scheme can be extended to produce a longer continuous stream.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy SPIing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jun 2010 05:14:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197497#M15888</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2010-06-12T05:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197498#M15889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works! thank you Peg, thank you Big Mac.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 23:00:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197498#M15889</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2010-06-17T23:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197499#M15890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;again on this.&lt;/P&gt;&lt;P&gt;If I use SPI communication between mcu and transceiver with Prescaler 8 (1:1:1) and Rate Divisor 4 (0:0:1)&amp;nbsp;(f_bus = 20 Mhz =&amp;gt; sclk = 625 khz) it works everything. But I&amp;nbsp; have a lot of data so I think to speed up communication with Prescaler 8 and Rate divisor 2 (0:0:0) (sclk = 1,25 Mhz&amp;nbsp;). With this baud rate the transceiver doesn't trasmit. With an oscilloscope I see a normal SPI&amp;nbsp;communication between devices but there is transmission.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 23:03:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197499#M15890</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2010-10-01T23:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197500#M15891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure I am understanding you.&lt;/P&gt;&lt;P&gt;Are you saying you have a working setup and then when you speed up the SPI clock it stops working?&lt;/P&gt;&lt;P&gt;You are seeing the data on the SPI lines but it is not working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A not on the code presented previously:&lt;/P&gt;&lt;P&gt;This style of SPI code is generally not used as it is not interrupt proof.&lt;/P&gt;&lt;P&gt;It relies on being able to load both bytes before the first one has completely shifted out.&lt;/P&gt;&lt;P&gt;Indeed single stepping the routine will cause it to hang.&lt;/P&gt;&lt;P&gt;You could disable interrupts during the critical stage but you have to ask yourself whether you really need those back to back transmissions. With enough differential between buss clock and SPI clock speeds you get it anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Oct 2010 04:23:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197500#M15891</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2010-10-02T04:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197501#M15892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Peg has already suggested, if you are using the code that utilizes the double buffering capability of the SCI module, it is possible for an overrun condition to occur, where the transmission of the second byte is completed before the first byte can be read.&amp;nbsp; Data will be lost.&amp;nbsp; For the original SPI clock rate, the value of the first received byte must be read within less than&amp;nbsp;256 bus cycles&amp;nbsp;from the completion of the transfer.&amp;nbsp; By doubling the SPI clock rate, the critical read period would be halved to 128 bus cycles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is therefore possible that a timer, or other interrupt may occur at the critical point, and may take more than 128 cycles to complete execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution 1:&amp;nbsp; Globally disable interrupts just prior to sending the second byte, and re-enable interrupts after the first byte has been read, and the flag cleared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution 2:&amp;nbsp; Do not send the second byte until after the first byte has been read.&amp;nbsp; This will eliminate any critical timing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Oct 2010 13:45:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197501#M15892</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-10-03T13:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197502#M15893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@PEG&amp;nbsp; Yes I had a working setup and speed up action stopped all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I disable interrupts and it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use this new&amp;nbsp;routine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;SS = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// enable SS&lt;BR /&gt;&amp;nbsp; &amp;nbsp;while (!SPI1S_SPTEF); // wait: "transmit buffer empty flag"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SPI1S;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;SPI1D = address;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;while (!SPI1S_SPRF);&amp;nbsp; // wait: "reader buffer full flag"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI1S;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;clear flag&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI1D;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI1D = data; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;while (!SPI1S_SPRF); // wait: "reader buffer full flag"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI1S;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI1D;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;clear flag&lt;BR /&gt;&amp;nbsp; &amp;nbsp;SS = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;disable SS&lt;/P&gt;&lt;P&gt;It works with&amp;nbsp;or without interrupts.&lt;/P&gt;&lt;P&gt;Thank you for&amp;nbsp;all Peg and Bigmac,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roberto&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 19:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197502#M15893</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2010-10-04T19:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197503#M15894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad you got it sorted out.&lt;/P&gt;&lt;P&gt;The additinal SPI1S reads (SPI1S&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt; should not be required.&lt;/P&gt;&lt;P&gt;You are doing a read in the flag test line above it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 04:34:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197503#M15894</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2010-10-05T04:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197504#M15895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i remove additional reads to SPIS it doesn't work...:smiley sad:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 14:48:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197504#M15895</guid>
      <dc:creator>roberto_m</dc:creator>
      <dc:date>2010-10-05T14:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: interfacing spi</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197505#M15896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Must be due to a timing issue at the other end then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 17:38:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/interfacing-spi/m-p/197505#M15896</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2010-10-05T17:38:45Z</dc:date>
    </item>
  </channel>
</rss>

