<?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>Kinetis MicrocontrollersのトピックRe: Master SPI signal is incorrect</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389962#M21189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I'm configuring in setting up the K64 as master. Please let me know if you find something unexpected. Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Enable the clocks for Ports C and D and SPI0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_PORTC_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_PORTD_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SIM_SCGC6 |= SIM_SCGC6_SPI0_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Configure the ports to be used by SPI0&lt;/P&gt;&lt;P&gt;PORTC_PCR4 = PORT_PCR_MUX(2); // CS&lt;/P&gt;&lt;P&gt;PORTC_PCR5 = PORT_PCR_MUX(2); // SCLK&lt;/P&gt;&lt;P&gt;PORTD_PCR2 = PORT_PCR_MUX(2); // MOSI&lt;/P&gt;&lt;P&gt;PORTC_PCR7 = PORT_PCR_MUX(2); // MISO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Enable SPI0 IRQ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; int irq = GET_IRQ_NUM(INT_SPI0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set_irq_priority(irq, 7);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; enable_irq(irq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Configure SPI0 registers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_BR = X; // I tried multiple baud rate values but the output has the same form but different duration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Disable and clear SPI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR &amp;amp;= (~ SPI_MCR_MDIS_MASK);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR = SPI_MCR_HALT_MASK | SPI_MCR_CLR_TXF_MASK | SPI_MCR_CLR_RXF_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR |= SPI_MCR_MSTR_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_CTAR = SPI_CTAR_CPOL_MASK | SPI_CTAR_FMSZ(7) | ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Receive FIFO Overflow Overwrite Enable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR |= SPI_MCR_ROOE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Set CS0-7 inactive high&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR |= SPI_MCR_PCSIS_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Receive FIFO Overflow Request Enable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_RSER |= SPI_RSER_RFOF_RE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Clear all flags&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_SR = 0xFFFFFFFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Enable SPI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR &amp;amp;= ~SPI_MCR_HALT_MASK;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 18:35:28 GMT</pubDate>
    <dc:creator>willx</dc:creator>
    <dc:date>2014-12-05T18:35:28Z</dc:date>
    <item>
      <title>Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389954#M21181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a FRDM-KL03 and a FRDM-K64 and I tried running both as SPI master and I'm seeing the same behavior on both. The CLK line looks weird. See attachments. Good screenshot is when host adapter is acting as master and bad screenshot is when KL03 or K64 is acting as master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Config on KL03 looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C1 has SPIE, SPE, CPOL, MSTR and SSOE bits set.&lt;/P&gt;&lt;P&gt;C2 has SPISWAI and MODFEN bits set.&lt;/P&gt;&lt;P&gt;BR = 0x0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error says: "The initial (idle) state of the CLK line does not match the settings".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 23:14:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389954#M21181</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2014-12-03T23:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389955#M21182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that you have the SPI speed set too high for your logic analyser (only 10MHz) to be able to sample correctly.&lt;/P&gt;&lt;P&gt;Set a lower SPI speed and then it will probably look similar (if the SW is correct).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 11:56:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389955#M21182</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-12-04T11:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389956#M21183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The initial (idle) state of the CLK line does not match the settings" this means that the the protocol settings in the analyzer software are not correct. If you are configuring CPOL = 1 then your are selecting Active-low SPI clock (idles high) please check that the Analyzer settings for the SPI protocol are set to "Clock is high when Inactive CPOL = 1 "&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Adrian Sanchez Cano&lt;BR /&gt;Technical Support Engineer&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 20:42:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389956#M21183</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2014-12-04T20:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389957#M21184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helped on the KL03, but not on the K64. I can now see the expected signals on the KL03.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 22:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389957#M21184</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2014-12-04T22:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389958#M21185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Adrian.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The setting on the logic analyzer (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"Clock is high when Inactive CPOL = 1"&lt;/SPAN&gt;) matches the one programmed on the K64 SPI (CPOL bit is set) and now I'm able to see correct clock signal and MOSI but the SS line is not asserted (see No_SS.png attachment below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="No_SS.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47858i8DEE73AE2F944F04/image-size/large?v=v2&amp;amp;px=999" role="button" title="No_SS.png" alt="No_SS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, it is asserted just for a little bit. See SS_blip.png below which is a zoomed section from where the red dot is in No_SS.png.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SS_blip.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47859i14C7B3645D9C81F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="SS_blip.png" alt="SS_blip.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what could be the problem here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 22:26:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389958#M21185</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2014-12-04T22:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389959#M21186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the SPI driver(s) being used - the K64 has automatic CS control controlled by its FIFO control words.&lt;/P&gt;&lt;P&gt;The KL03 only works in automatic SS output when set up with SSOE in SPIx_C1 and MODFEN is set to 0 in SPIx_C2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 22:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389959#M21186</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-12-04T22:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389960#M21187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are your SPI configurations specially for the bits that control the SS behavior like the:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SPIx_MCR[PCSSE]&lt;/STRONG&gt; that for a standard comunication the value is 0: PCS5/ PCSS is used as the Peripheral Chip Select[5] signal.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SPIx_MCR[PCSIS] &lt;/STRONG&gt;to determinate the inactive state of the SS signal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if you slave allow the Continuous mode I recommend to set the &lt;STRONG&gt;SPIx_PUSHR[CONT]&lt;/STRONG&gt; signal to Keep PCSn signals asserted between transfers. You can check more information about the CONT bit in the K64 Reference Manual in the section 50.4.4.3 Continuous Selection Format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had some problems in the past using the Analyzer without the GND probes, I recommend to connect the GND probes to your hardware.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Adrian Sanchez Cano&lt;BR /&gt;Technical Support Engineer&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 22:50:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389960#M21187</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2014-12-04T22:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389961#M21188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked the config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;SPIx_MCR[PCSSE]&lt;/STRONG&gt;&lt;/SPAN&gt; is 0&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;SPIx_MCR[PCSIS] &lt;/STRONG&gt;&lt;/SPAN&gt;is all 1's&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GND pins are connected too.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The slave is a KL03 which I don't think supports continuous mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 23:53:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389961#M21188</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2014-12-04T23:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389962#M21189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I'm configuring in setting up the K64 as master. Please let me know if you find something unexpected. Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Enable the clocks for Ports C and D and SPI0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_PORTC_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_PORTD_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SIM_SCGC6 |= SIM_SCGC6_SPI0_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Configure the ports to be used by SPI0&lt;/P&gt;&lt;P&gt;PORTC_PCR4 = PORT_PCR_MUX(2); // CS&lt;/P&gt;&lt;P&gt;PORTC_PCR5 = PORT_PCR_MUX(2); // SCLK&lt;/P&gt;&lt;P&gt;PORTD_PCR2 = PORT_PCR_MUX(2); // MOSI&lt;/P&gt;&lt;P&gt;PORTC_PCR7 = PORT_PCR_MUX(2); // MISO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Enable SPI0 IRQ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; int irq = GET_IRQ_NUM(INT_SPI0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set_irq_priority(irq, 7);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; enable_irq(irq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Configure SPI0 registers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_BR = X; // I tried multiple baud rate values but the output has the same form but different duration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Disable and clear SPI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR &amp;amp;= (~ SPI_MCR_MDIS_MASK);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR = SPI_MCR_HALT_MASK | SPI_MCR_CLR_TXF_MASK | SPI_MCR_CLR_RXF_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR |= SPI_MCR_MSTR_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_CTAR = SPI_CTAR_CPOL_MASK | SPI_CTAR_FMSZ(7) | ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Receive FIFO Overflow Overwrite Enable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR |= SPI_MCR_ROOE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Set CS0-7 inactive high&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR |= SPI_MCR_PCSIS_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Receive FIFO Overflow Request Enable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_RSER |= SPI_RSER_RFOF_RE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Clear all flags&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_SR = 0xFFFFFFFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Enable SPI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SPI0_MCR &amp;amp;= ~SPI_MCR_HALT_MASK;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 18:35:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389962#M21189</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2014-12-05T18:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389963#M21190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I was transmitting before, I was using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI0_PUSHR = SPI_PUSHR_CONT_MASK | SPI_PUSHR_TXDATA(0x1f);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I add SPI_PUSHR_PCS_MASK, I&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; can see that the CS line stays low but there's as expected but I still see the red dot and the blip on MOSI line and get the error that says &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"The initial (idle) state of the CLK line does not match the settings"&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 19:35:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389963#M21190</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2014-12-05T19:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389964#M21191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are various other settings in the SPIx_CTAR register which control the timing of the CS line in relation to the clock/data. I suggest you experiment with these until you understand their effects and you may find that the glitch is occurring due to such things not being co-ordinated correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 20:04:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389964#M21191</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-12-05T20:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Master SPI signal is incorrect</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389965#M21192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the configuration of the Analyzer software changing the parameter on the settings to see which match the real signals from the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 21:03:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Master-SPI-signal-is-incorrect/m-p/389965#M21192</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2014-12-05T21:03:27Z</dc:date>
    </item>
  </channel>
</rss>

