<?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中的主题 32 bit DSPI on K66</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/32-bit-DSPI-on-K66/m-p/761112#M46385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; font-weight: 400; margin: 0px 0px 1em;"&gt;How would I send 32bit data values using SPI of K66.. here is my attempt. The problem is only some parts of the 32bits are shown in the scope&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; font-weight: 400; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; font-weight: 400; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;P&gt;status_t ADF4158_GenericWriteReg(pll_register_t reg, pll_params_t *params)&lt;BR /&gt;{&lt;BR /&gt; dspi_command_data_config_t command;&lt;BR /&gt; uint32_t value;&lt;/P&gt;&lt;P&gt;if(reg &amp;gt;= kPLL_MAX)&lt;BR /&gt; return kStatus_Fail;&lt;/P&gt;&lt;P&gt;/* obtain formatted register value */&lt;BR /&gt; value = ADF4158_GetFormattedRegValue(reg, params);&lt;/P&gt;&lt;P&gt;PRINTF("Writing Register R%d with value 0x%08X\r\n", reg, value);&lt;/P&gt;&lt;P&gt;/* Define Chip Select */&lt;BR /&gt; command.whichCtar = spiCtar;&lt;BR /&gt; command.whichPcs = spiPcs;&lt;BR /&gt; command.isPcsContinuous = true;&lt;BR /&gt; command.isEndOfQueue = false;&lt;BR /&gt; command.clearTransferCount = false;&lt;/P&gt;&lt;P&gt;/* upper 16 bit */&lt;BR /&gt; DSPI_MasterWriteDataBlocking(spiBase, &amp;amp;command, (uint16_t)(value &amp;gt;&amp;gt; 16U));&lt;/P&gt;&lt;P&gt;/* lower 16 bit */&lt;BR /&gt; command.isPcsContinuous = false;&lt;BR /&gt; DSPI_MasterWriteDataBlocking(spiBase, &amp;amp;command, (uint16_t)(value &amp;amp; 0x0000FFFFU));&lt;BR /&gt; ADF4158_DelayFunc();&lt;/P&gt;&lt;P&gt;return kStatus_Success;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2018 14:42:12 GMT</pubDate>
    <dc:creator>ahmedtolba</dc:creator>
    <dc:date>2018-05-16T14:42:12Z</dc:date>
    <item>
      <title>32 bit DSPI on K66</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/32-bit-DSPI-on-K66/m-p/761112#M46385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; font-weight: 400; margin: 0px 0px 1em;"&gt;How would I send 32bit data values using SPI of K66.. here is my attempt. The problem is only some parts of the 32bits are shown in the scope&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; font-weight: 400; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; font-weight: 400; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;P&gt;status_t ADF4158_GenericWriteReg(pll_register_t reg, pll_params_t *params)&lt;BR /&gt;{&lt;BR /&gt; dspi_command_data_config_t command;&lt;BR /&gt; uint32_t value;&lt;/P&gt;&lt;P&gt;if(reg &amp;gt;= kPLL_MAX)&lt;BR /&gt; return kStatus_Fail;&lt;/P&gt;&lt;P&gt;/* obtain formatted register value */&lt;BR /&gt; value = ADF4158_GetFormattedRegValue(reg, params);&lt;/P&gt;&lt;P&gt;PRINTF("Writing Register R%d with value 0x%08X\r\n", reg, value);&lt;/P&gt;&lt;P&gt;/* Define Chip Select */&lt;BR /&gt; command.whichCtar = spiCtar;&lt;BR /&gt; command.whichPcs = spiPcs;&lt;BR /&gt; command.isPcsContinuous = true;&lt;BR /&gt; command.isEndOfQueue = false;&lt;BR /&gt; command.clearTransferCount = false;&lt;/P&gt;&lt;P&gt;/* upper 16 bit */&lt;BR /&gt; DSPI_MasterWriteDataBlocking(spiBase, &amp;amp;command, (uint16_t)(value &amp;gt;&amp;gt; 16U));&lt;/P&gt;&lt;P&gt;/* lower 16 bit */&lt;BR /&gt; command.isPcsContinuous = false;&lt;BR /&gt; DSPI_MasterWriteDataBlocking(spiBase, &amp;amp;command, (uint16_t)(value &amp;amp; 0x0000FFFFU));&lt;BR /&gt; ADF4158_DelayFunc();&lt;/P&gt;&lt;P&gt;return kStatus_Success;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 14:42:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/32-bit-DSPI-on-K66/m-p/761112#M46385</guid>
      <dc:creator>ahmedtolba</dc:creator>
      <dc:date>2018-05-16T14:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: 32 bit DSPI on K66</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/32-bit-DSPI-on-K66/m-p/761113#M46386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The K66 SPI master using SPIx_PUSHR(PUSH TX FIFO Register In Master Mode) register transfers 16 bits of data and 16 bits of command information one time.&lt;/P&gt;&lt;P&gt;So, the 32bits data should be split for two times to transfer with suitable command info (each time 16bits of data).&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&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, 18 May 2018 02:28:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/32-bit-DSPI-on-K66/m-p/761113#M46386</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-05-18T02:28:46Z</dc:date>
    </item>
  </channel>
</rss>

