<?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: One SPI module and two UARTs ... in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/One-SPI-module-and-two-UARTs/m-p/484114#M4213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2015 21:32:11 GMT</pubDate>
    <dc:creator>peterfurey</dc:creator>
    <dc:date>2015-12-17T21:32:11Z</dc:date>
    <item>
      <title>One SPI module and two UARTs ...</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/One-SPI-module-and-two-UARTs/m-p/484112#M4211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using a FRDM-K64F board with a few custom extension boards for my development platform. Currently, I'm trying to configure one DSPI module (master only configuration) to interface with two serial devices using Processor Expert. I have two chip select configurations, PCS0 and PCS1, both of which have "active low" polarity. The DSPI module is initially configured to use PCS0, which goes high after the DSPI_DRV_MasterInit() call. However, I don't see a mechanism to initialize the PCS1 pin to go high as well within the PE interface, or by any of the DSPI_DRV_xxx() or DSPI_HAL_xxx() functions. The only workaround I see is to temporarily change the PCS1 pin to a GPIO pin and pull it high. Since PCS0 and PCS1 are both "active low" they both need to be high in the inactive state for this interface to work. What am I missing? I strongly suspect there is a better way to do this.&lt;/P&gt;&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 18:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/One-SPI-module-and-two-UARTs/m-p/484112#M4211</guid>
      <dc:creator>peterfurey</dc:creator>
      <dc:date>2015-12-14T18:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: One SPI module and two UARTs ...</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/One-SPI-module-and-two-UARTs/m-p/484113#M4212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does the function of "DSPI_HAL_SetPcsPolarityMode()" can meet your requirement&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*FUNCTION**********************************************************************&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;* Function Name : DSPI_HAL_SetPcsPolarityMode&lt;/P&gt;&lt;P&gt;* Description&amp;nbsp; : Configure DSPI peripheral chip select polarity.&lt;/P&gt;&lt;P&gt;* This function will take in the desired peripheral chip select (PCS) and it's&lt;/P&gt;&lt;P&gt;* corresponding desired polarity and will configure the PCS signal to operate with the&lt;/P&gt;&lt;P&gt;* desired characteristic.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*END**************************************************************************/&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14503388867425584" data-renderedposition="281_8_1232_304" jivemacro_uid="_14503388867425584"&gt;&lt;P&gt;void DSPI_HAL_SetPcsPolarityMode(SPI_Type * base, dspi_which_pcs_config_t pcs,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dspi_pcs_polarity_config_t activeLowOrHigh)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = SPI_RD_MCR_PCSIS(base);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (activeLowOrHigh == kDspiPcs_ActiveLow)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp |= pcs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&amp;nbsp; /* kDspiPcsPolarity_ActiveHigh */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp &amp;amp;= ~(unsigned)pcs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI_BWR_MCR_PCSIS(base, temp);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&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;P&gt;Have a great day,&lt;BR /&gt;Alice Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 07:55:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/One-SPI-module-and-two-UARTs/m-p/484113#M4212</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-12-17T07:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: One SPI module and two UARTs ...</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/One-SPI-module-and-two-UARTs/m-p/484114#M4213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 21:32:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/One-SPI-module-and-two-UARTs/m-p/484114#M4213</guid>
      <dc:creator>peterfurey</dc:creator>
      <dc:date>2015-12-17T21:32:11Z</dc:date>
    </item>
  </channel>
</rss>

