<?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: How can I refresh KEA SPI data register for transmitting? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-refresh-KEA-SPI-data-register-for-transmitting/m-p/914385#M53533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="308865" data-username="duffytang" href="https://community.nxp.com/people/duffytang"&gt;duffy tang&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OK, thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Could you tell me what the core clock you are using? the core frequency.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Could you also share SPI_D data write code with me?&lt;/P&gt;&lt;P&gt;&amp;nbsp; I need to check some code clock. It's better to use the register to control it directly, just to save code execute time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&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:&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>Fri, 14 Jun 2019 07:46:22 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2019-06-14T07:46:22Z</dc:date>
    <item>
      <title>How can I refresh KEA SPI data register for transmitting?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-refresh-KEA-SPI-data-register-for-transmitting/m-p/914382#M53530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP Team,&lt;/P&gt;&lt;P&gt;We are developing a sensor just like KMA210, using&amp;nbsp;S9KEAZN8AMFK as 24bit-SPI slave.&lt;/P&gt;&lt;P&gt;Time between SPI master CS low and CLK first rising clock is too&amp;nbsp;short, about 4~5us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find out it takes&amp;nbsp;about 2us from CS falling edge to software capture the edge using FTM&amp;nbsp;capture(and GPO output high level in FTM interrupt function). If I write one data to SPI0_D after CS low, it may not have enough time to transmit the writing data and send out wrong byte order.&lt;/P&gt;&lt;P&gt;So, I write one byte data to SPI0_D register before CS low. But it results in another problem, that is, I can not refresh the&amp;nbsp;&lt;SPAN&gt;SPI0_D after writing it except completing one byte transmitting. If I have write one byte to SPI0_D, it would be out of date in several minutes later.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I refresh KEA SPI data register(&lt;SPAN&gt;SPI0_D&lt;/SPAN&gt;) for transmitting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 09:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-refresh-KEA-SPI-data-register-for-transmitting/m-p/914382#M53530</guid>
      <dc:creator>fortunely</dc:creator>
      <dc:date>2019-06-12T09:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I refresh KEA SPI data register for transmitting?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-refresh-KEA-SPI-data-register-for-transmitting/m-p/914383#M53531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="303767" data-username="fortunely" href="https://community.nxp.com/people/fortunely"&gt;Martin Zhang&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your interest in NXP kinetis product, I would like to provide service for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1. What's the master your are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maybe you also can consider to increase the time between the CS low and the SCK rising.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. refresh the&amp;nbsp;&lt;SPAN&gt;SPI0_D &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you give me more details? Do you mean, when you write one byte data to SPI0_D, but you don't want to send it, want to refresh it? If yes, this should be the code side problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; By the way, how do you write the data register? Do you wait the S[SPTEF] is set?&lt;/P&gt;&lt;P&gt;The S register must be read when S[SPTEF] is set before writing to the SPI data register; otherwise, the write is ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any updated information from your side, please kindly let me know.&lt;BR /&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:&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, 13 Jun 2019 02:34:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-refresh-KEA-SPI-data-register-for-transmitting/m-p/914383#M53531</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-06-13T02:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I refresh KEA SPI data register for transmitting?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-refresh-KEA-SPI-data-register-for-transmitting/m-p/914384#M53532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Q1:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; 1. What's the master your are using?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Maybe you also can consider to increase the time between the CS low and the SCK rising&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;A1:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;Our product act as slave.&amp;nbsp; We can't change the time between the CS low and the SCK rising.So,the time&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;between the CS low and the SCK rising just is 4-5us.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Products Requriment:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;A brief description：When CS is enabled, SPID transmits real-time ADC data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Our implementation methods and problems encountered：&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;(1)First method:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Before CS comes, ADC is collected continuously, and SPI-D is updated every time ADC is collected.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Question:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;When the SPID is not empty, new data cannot be written to the SPID.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;(1)Second method:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Before CS comes, ADC is collected continuously, and SPI-D is updated when the cs is enable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Question:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;CS low and the SCK rising is so short cause the fault data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2019 07:11:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-refresh-KEA-SPI-data-register-for-transmitting/m-p/914384#M53532</guid>
      <dc:creator>duffytang</dc:creator>
      <dc:date>2019-06-14T07:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I refresh KEA SPI data register for transmitting?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-refresh-KEA-SPI-data-register-for-transmitting/m-p/914385#M53533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="308865" data-username="duffytang" href="https://community.nxp.com/people/duffytang"&gt;duffy tang&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OK, thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Could you tell me what the core clock you are using? the core frequency.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Could you also share SPI_D data write code with me?&lt;/P&gt;&lt;P&gt;&amp;nbsp; I need to check some code clock. It's better to use the register to control it directly, just to save code execute time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&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:&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>Fri, 14 Jun 2019 07:46:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-refresh-KEA-SPI-data-register-for-transmitting/m-p/914385#M53533</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-06-14T07:46:22Z</dc:date>
    </item>
  </channel>
</rss>

