<?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>MCUXpresso GeneralのトピックRe: Send 8 bits using the MKE15Z256</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Send-8-bits-using-the-MKE15Z256/m-p/936718#M2242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use the pins from PTC10 to PTC17 you will need to do a shift to the command. Also it will be better to use the PSOR and PCOR register to set/clear the pin logic state. Also the mask will need to change&amp;nbsp;to match the pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example with the changes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;STRONG style="color: #7f0055; border: 0px; font-weight: bold; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 13.3333px;"&gt;TFT_CMD&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;int8_t&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background: #d4d4d4; border: 0px; font-weight: inherit; font-size: 13.3333px;"&gt;command&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&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;&lt;SPAN style="color: #ff0000;"&gt;command = command &amp;lt;&amp;lt; 10;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-indent: 35.4pt; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: #005032; background: #d4d4d4; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tmp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-indent: 35.4pt; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;tmp = GPIOC-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;PDOR&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;amp; &lt;SPAN style="color: #ff0000;"&gt;0xFFFC03FF‬&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-indent: 35.4pt; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;GPIOC-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;PDOR&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;= tmp | command;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;/P&gt;&lt;P&gt;If you want to use the SDK functions, you can use the&amp;nbsp;GPIO_PortSet but considering all the pins you want to set, for example:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;GPIO_PortSet(GPIOC, command &amp;lt;&amp;lt; 10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2019 19:45:15 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2019-09-18T19:45:15Z</dc:date>
    <item>
      <title>Send 8 bits using the MKE15Z256</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Send-8-bits-using-the-MKE15Z256/m-p/936717#M2241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing a project and need to send 8 bits through ports PTC10 ~ PTC17, but ports PTC0 ~ PTC9 are being used for other purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I do it as follows? (In the attached file is better explained)&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; &lt;STRONG&gt;TFT_CMD&lt;/STRONG&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #005032;"&gt;int8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; &lt;SPAN style="background: #D4D4D4;"&gt;command&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 35.4pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #005032; background: #D4D4D4;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; tmp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 35.4pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;tmp = GPIOC-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0;"&gt;PDOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; &amp;amp; 0xFFFFFF00;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 35.4pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;GPIOC-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0;"&gt;PDOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; = tmp | command;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 16:02:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Send-8-bits-using-the-MKE15Z256/m-p/936717#M2241</guid>
      <dc:creator>m_giraldi</dc:creator>
      <dc:date>2019-09-17T16:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Send 8 bits using the MKE15Z256</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Send-8-bits-using-the-MKE15Z256/m-p/936718#M2242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use the pins from PTC10 to PTC17 you will need to do a shift to the command. Also it will be better to use the PSOR and PCOR register to set/clear the pin logic state. Also the mask will need to change&amp;nbsp;to match the pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example with the changes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;STRONG style="color: #7f0055; border: 0px; font-weight: bold; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 13.3333px;"&gt;TFT_CMD&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;int8_t&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background: #d4d4d4; border: 0px; font-weight: inherit; font-size: 13.3333px;"&gt;command&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&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;&lt;SPAN style="color: #ff0000;"&gt;command = command &amp;lt;&amp;lt; 10;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-indent: 35.4pt; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: #005032; background: #d4d4d4; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tmp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-indent: 35.4pt; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;tmp = GPIOC-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;PDOR&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;amp; &lt;SPAN style="color: #ff0000;"&gt;0xFFFC03FF‬&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; text-indent: 35.4pt; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;GPIOC-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;PDOR&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;= tmp | command;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;/P&gt;&lt;P&gt;If you want to use the SDK functions, you can use the&amp;nbsp;GPIO_PortSet but considering all the pins you want to set, for example:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;GPIO_PortSet(GPIOC, command &amp;lt;&amp;lt; 10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 19:45:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Send-8-bits-using-the-MKE15Z256/m-p/936718#M2242</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-09-18T19:45:15Z</dc:date>
    </item>
  </channel>
</rss>

