<?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>Processor Expert SoftwareのトピックRe: Kinetis SPI Master Clock Polarity after Init</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206852#M840</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;I have discussed the problem with developers and the behaviour of SPIMaster_LDD i correct and correspond to the description of DSPI device in reference manual (RM).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameters of the communuicaiton are set during data transfer. For more details please see section: "49.3.7 DSPI PUSH TX FIFO Register In Master Mode (SPIx_PUSHR)" in RM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, it seems your workaround was correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2012 17:27:18 GMT</pubDate>
    <dc:creator>ProcessorExpert</dc:creator>
    <dc:date>2012-02-20T17:27:18Z</dc:date>
    <item>
      <title>Kinetis SPI Master Clock Polarity after Init</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206849#M837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing my application on Kinetis K60 with CodeWarrior 10.1 with ProcessorExpert 5.1 and&amp;nbsp;MQX 3.7.&lt;/P&gt;&lt;P&gt;I need to drive an SPI bus in master mode, so I use the SPIMaster_LDD embedded component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I initialize clock polarity as HIGH and clock phase as CHANGE ON LEADING EDGE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But after the execution of the SPI_Init() function the CLK pin is at&amp;nbsp;LOW level. Why? The clock line idle state should be high.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this reason, my first SPI Master transaction to the slave device (which requires a high clock idle state) always fails.&lt;/P&gt;&lt;P&gt;However, after the first SPI transaction the CLK pin remains high, so all the subsequent SPI transactions are good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround, I make a dummy SPI transaction of a single data byte after the SPI_Init() function call and then I can get all the real subsequent transactions to work properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the Kinetis SPI peripheral initialization make the CLK pin&amp;nbsp;output the correct idle level set by the chosen clock polarity?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 16:40:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206849#M837</guid>
      <dc:creator>Vagni</dc:creator>
      <dc:date>2012-02-16T16:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis SPI Master Clock Polarity after Init</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206850#M838</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;I am not aware of such problem in SPIMaster_LDD component. Could you please provide the ProcessorExpert.pe file from your project in order to analayze it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 01:32:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206850#M838</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2012-02-17T01:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis SPI Master Clock Polarity after Init</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206851#M839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Filip,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See&amp;nbsp;my attached ProcessorExpert.pe file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 01:45:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206851#M839</guid>
      <dc:creator>Vagni</dc:creator>
      <dc:date>2012-02-17T01:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis SPI Master Clock Polarity after Init</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206852#M840</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;I have discussed the problem with developers and the behaviour of SPIMaster_LDD i correct and correspond to the description of DSPI device in reference manual (RM).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameters of the communuicaiton are set during data transfer. For more details please see section: "49.3.7 DSPI PUSH TX FIFO Register In Master Mode (SPIx_PUSHR)" in RM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, it seems your workaround was correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 17:27:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206852#M840</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2012-02-20T17:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis SPI Master Clock Polarity after Init</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206853#M841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even though this thread is long dead, I would like to correct the information in threads like these for those who are googling for solutions to various problems.&amp;nbsp; So this comment is for future googlers, not the original participants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread demonstrates an often confused understanding of the clock polarity settings.&amp;nbsp; If the clock setting is active high then it will idle low.&amp;nbsp; So the clock was behaving correctly for the chosen setting.&amp;nbsp; If one wants an idle high and clocking on the rising edge (a very common SPI configuration) then the choices should be ACTIVE LOW and CLOCK ON SECOND EDGE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Dec 2016 23:50:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Kinetis-SPI-Master-Clock-Polarity-after-Init/m-p/206853#M841</guid>
      <dc:creator>sgraves</dc:creator>
      <dc:date>2016-12-18T23:50:12Z</dc:date>
    </item>
  </channel>
</rss>

