<?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: TWR_K65 SPI issue</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K65-SPI-issue/m-p/744502#M45339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hamza,&lt;/P&gt;&lt;P&gt;Can you post your spi code here, include spi setting. For I'm not quit understand why you write out data 3 times in a loop, how you control the CS signal and how you finish a transfer.&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;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Dec 2017 07:32:14 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2017-12-27T07:32:14Z</dc:date>
    <item>
      <title>TWR_K65 SPI issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K65-SPI-issue/m-p/744500#M45337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using custom bare-metal application and trying to use TWR_K65 DSPI at maximum baud rate possible, the slave i am using supports upto 80 MHz clocking. I am running system clock at 180 MHz but due to some limitations, OUTDV_2 divider is set to 3 so bus clock is 60 MHz. And in SPI_CTAR0, both PBR (Baud Rate Prescaler) and BR (Baud Rate Scaler) are set to 0 (divided by 2) so we will have SPI Clock:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI_CLK = BUS_CLK / (PBR * BR) = 60 MHz ( 2 * 2) = 15 MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data&amp;nbsp;gets corrupt&amp;nbsp;i set above configuration. But if i set BR (Baud Rate Scaler) to 1 (divided by 3), I receive correct data, but it limits my clock to (10 MHz), I don't know why setting BR to 0 causing this problem, Any help would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hamza.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Dec 2017 11:14:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K65-SPI-issue/m-p/744500#M45337</guid>
      <dc:creator>ameerhamza</dc:creator>
      <dc:date>2017-12-24T11:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: TWR_K65 SPI issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K65-SPI-issue/m-p/744501#M45338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ameer,&lt;/P&gt;&lt;P&gt;the max speed of K65 DSPI is 30M in master mode(in slave mode only 10M). Since you use TWR-K65 board, the voltage supply also should be ok. So I guess the problem may in timing issue.&amp;nbsp;You&amp;nbsp;may try to adjust the timing issue or&amp;nbsp;observe&amp;nbsp;the waveform by&amp;nbsp;oscilloscope. If the problem is still there,&amp;nbsp;you can share your code and&amp;nbsp;the wifi module's spec here. I'll try to&amp;nbsp;debug for you.&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;Jing&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Dec 2017 08:01:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K65-SPI-issue/m-p/744501#M45338</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2017-12-25T08:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: TWR_K65 SPI issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K65-SPI-issue/m-p/744502#M45339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hamza,&lt;/P&gt;&lt;P&gt;Can you post your spi code here, include spi setting. For I'm not quit understand why you write out data 3 times in a loop, how you control the CS signal and how you finish a transfer.&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;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 07:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K65-SPI-issue/m-p/744502#M45339</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2017-12-27T07:32:14Z</dc:date>
    </item>
  </channel>
</rss>

