<?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>topic Change SPI Speed in Code in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-SPI-Speed-in-Code/m-p/764453#M46538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Kinetis Design Studio with a K60 chip.&amp;nbsp; I have a touch screen that needs to be initialized via SPI at 10 MHz or less.&amp;nbsp; The touch screen can communicate at 30 MHz after initialization. I have a bus clock speed of 60 MHz and need to change my SPI prescaler divider from 6 to 2 (10 MHz to 30 MHz) after I run my initialization code.&amp;nbsp; I used processor expert (SyncroMaster) to configure my SPI port.&amp;nbsp; Please advise how I should change my SPI bus speed after the touch screen has been initialized.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2017 21:39:37 GMT</pubDate>
    <dc:creator>barrypurtymun</dc:creator>
    <dc:date>2017-11-09T21:39:37Z</dc:date>
    <item>
      <title>Change SPI Speed in Code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-SPI-Speed-in-Code/m-p/764453#M46538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Kinetis Design Studio with a K60 chip.&amp;nbsp; I have a touch screen that needs to be initialized via SPI at 10 MHz or less.&amp;nbsp; The touch screen can communicate at 30 MHz after initialization. I have a bus clock speed of 60 MHz and need to change my SPI prescaler divider from 6 to 2 (10 MHz to 30 MHz) after I run my initialization code.&amp;nbsp; I used processor expert (SyncroMaster) to configure my SPI port.&amp;nbsp; Please advise how I should change my SPI bus speed after the touch screen has been initialized.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 21:39:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-SPI-Speed-in-Code/m-p/764453#M46538</guid>
      <dc:creator>barrypurtymun</dc:creator>
      <dc:date>2017-11-09T21:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change SPI Speed in Code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-SPI-Speed-in-Code/m-p/764454#M46539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Barry Purtymun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After you initialized the SPI for the touch screen initialization, and want to use the higher spi baud, you can try to modify the SPI baudrate prescaler register directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It is SPIx_CTARn[PBR], please use the register control directly on your code at first, just the test the function, whether it meet your demand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Fri, 10 Nov 2017 06:04:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-SPI-Speed-in-Code/m-p/764454#M46539</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-11-10T06:04:15Z</dc:date>
    </item>
  </channel>
</rss>

