<?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 Re: Speed up SPI KV58 in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934474#M5799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to change the clock but nothing happened.&amp;nbsp; I was seeing 240MHz for the System clock on the Clock configuration tab with HSRun but the timing on the system didn't change.&amp;nbsp; Is there documentation on setting up the clocks that I have not found? Can someone point me to documentation or explain to me how the Run mode is different than the Functional Group?&amp;nbsp; My Functional Group is BOARD_BootClockHSRUN and my Run mode is HSRUN. I'm not&amp;nbsp; sure I'm actually using that mode.&lt;/P&gt;&lt;P&gt;I finally realized that I need to use the:&lt;/P&gt;&lt;P&gt;BOARD_BootClockHSRUN();&lt;/P&gt;&lt;P&gt;vs&lt;/P&gt;&lt;P&gt;//BOARD_BootClockRUN(); &lt;/P&gt;&lt;P&gt;to initialize the clocks. Possibly I still don't have the right clocks or Clock startup function. &amp;nbsp; This helped but still didn't significantly change the delay timing between SPI data send..&amp;nbsp;It seemed to cut the 1.2 us send to about 1.1us, or I'm just making finer measurements now. It did not significantly change the delay between sends.&amp;nbsp; &amp;nbsp; I'm still not getting the timing I need. Any other thought would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Aug 2019 12:47:55 GMT</pubDate>
    <dc:creator>kensamuelson</dc:creator>
    <dc:date>2019-08-03T12:47:55Z</dc:date>
    <item>
      <title>Speed up SPI KV58</title>
      <link>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934471#M5796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a Tower KV58 Demo board trying to talk to a AD5601 SPI 16-bit DAC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been able to talk to the DAC fine using the attached program.&amp;nbsp; It has a 24 Bit transfer with the first 8 bits 0's and the other 16 bits the data bits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm seeing as 1.2 us of DAC transfer and then 7.3 us of delay., for a total of about 8.5 us between DAC writes.&amp;nbsp; The DAC can take data with only a 1 us delay. &amp;nbsp; I need to get the current 7.3 us delay down to less than 4 us.&amp;nbsp; I don't need a&amp;nbsp; SPI read since the data is useless after 4 us, so just move on to the next write.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried increasing the TRANSFER_BAUDRATE to 32000000 but that didn't work with the TOWER KV58. I thought this would have solved the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possibly I'm not using the right technology for this (Master Half Duplex DMA).&amp;nbsp; I have tried some other Tower Board examples but this is the best I've gotten so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 01:22:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934471#M5796</guid>
      <dc:creator>kensamuelson</dc:creator>
      <dc:date>2019-08-01T01:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up SPI KV58</title>
      <link>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934472#M5797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is your CPU clock? TWR-KV58 can run up to 240 MHz. I'd recommend you to increase the system clock frequency and see if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can change the clock using MCUXpresso Config Tools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 21:05:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934472#M5797</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-08-01T21:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up SPI KV58</title>
      <link>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934473#M5798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the advice.&amp;nbsp; I saw the documentation that said the board could do that, but I've been unable to find a way to change the clock to that speed.&amp;nbsp;&amp;nbsp; Attached is my current clock configuration.&amp;nbsp; Any help or advice you can provide to help me figure out what to set, or how to speed it up would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDITED:&amp;nbsp; I did find, just now,&amp;nbsp; that if I changed to the HSRUN, I could find a way to get the processor to go up to 240 MHz but I see the SPI0 (Fast Peripheral Clock) clock is still a maximum of 144MHz. Which seems to be double the 72 MHz that I'm using now. &amp;nbsp;&amp;nbsp; I'll try that to see what it changes but if you have any other ideas I'm open to hearing them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for getting me to look at it again.&amp;nbsp; I'm not sure why I didn't see that before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken &lt;span class="lia-inline-image-display-wrapper" image-alt="ProgramClock.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84606i9960BFBFC1A5DE9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ProgramClock.png" alt="ProgramClock.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 22:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934473#M5798</guid>
      <dc:creator>kensamuelson</dc:creator>
      <dc:date>2019-08-01T22:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up SPI KV58</title>
      <link>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934474#M5799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to change the clock but nothing happened.&amp;nbsp; I was seeing 240MHz for the System clock on the Clock configuration tab with HSRun but the timing on the system didn't change.&amp;nbsp; Is there documentation on setting up the clocks that I have not found? Can someone point me to documentation or explain to me how the Run mode is different than the Functional Group?&amp;nbsp; My Functional Group is BOARD_BootClockHSRUN and my Run mode is HSRUN. I'm not&amp;nbsp; sure I'm actually using that mode.&lt;/P&gt;&lt;P&gt;I finally realized that I need to use the:&lt;/P&gt;&lt;P&gt;BOARD_BootClockHSRUN();&lt;/P&gt;&lt;P&gt;vs&lt;/P&gt;&lt;P&gt;//BOARD_BootClockRUN(); &lt;/P&gt;&lt;P&gt;to initialize the clocks. Possibly I still don't have the right clocks or Clock startup function. &amp;nbsp; This helped but still didn't significantly change the delay timing between SPI data send..&amp;nbsp;It seemed to cut the 1.2 us send to about 1.1us, or I'm just making finer measurements now. It did not significantly change the delay between sends.&amp;nbsp; &amp;nbsp; I'm still not getting the timing I need. Any other thought would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Aug 2019 12:47:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934474#M5799</guid>
      <dc:creator>kensamuelson</dc:creator>
      <dc:date>2019-08-03T12:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up SPI KV58</title>
      <link>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934475#M5800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you checked the &lt;STRONG&gt;Delay after Transfer Prescaler&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This register can be used to decrease the delay between transfers and you can modify it using the SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;masterConfig-&amp;gt;ctarConfig.betweenTransferDelayInNanoSec&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 20:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934475#M5800</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-08-05T20:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Speed up SPI KV58</title>
      <link>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934476#M5801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did see that setting but I changed it to 0, which seemed to be allowed, and it had no effect on the between transfer time.&amp;nbsp; Before that it was&amp;nbsp; 1000000000U / TRANSFER_BAUDRATE; AND TRANSFER_BAUDRATE was 16000000 so 62.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially I did get the program working but I'm a little unsure why it is working.&amp;nbsp; I incorporated it into my program which works on interrupts.&amp;nbsp; Possibly the way I have interrupts setup in my program was somehow compatible with the way the SPI program wanted the interrupts setup and they work together.&amp;nbsp; Thanks for all your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 21:39:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Speed-up-SPI-KV58/m-p/934476#M5801</guid>
      <dc:creator>kensamuelson</dc:creator>
      <dc:date>2019-08-06T21:39:37Z</dc:date>
    </item>
  </channel>
</rss>

