<?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>LPC MicrocontrollersのトピックHow to talk to GPIO pins in binary form, LPC824?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-talk-to-GPIO-pins-in-binary-form-LPC824/m-p/934649#M37231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering how to do the following: I'm using an LPC824 and I want to write to gpio_1 and to gpio_15 on the same time, what i can do is just use the Chip_GPIO_SetPinstate function and this works, but i would love to do this just binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Chip_GPIO_SetPinState(LPC_GPIO_PORT,0,15,true);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;Chip_GPIO_SetPinState(LPC_GPIO_PORT,0,1,true);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like:&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;*LPC_GPIO_PORT-&amp;gt;B[0] = 0b1000000000000010;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But this seems to fail, but i cant figure out why...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2019 10:17:50 GMT</pubDate>
    <dc:creator>joren_joly</dc:creator>
    <dc:date>2019-10-01T10:17:50Z</dc:date>
    <item>
      <title>How to talk to GPIO pins in binary form, LPC824?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-talk-to-GPIO-pins-in-binary-form-LPC824/m-p/934649#M37231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering how to do the following: I'm using an LPC824 and I want to write to gpio_1 and to gpio_15 on the same time, what i can do is just use the Chip_GPIO_SetPinstate function and this works, but i would love to do this just binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Chip_GPIO_SetPinState(LPC_GPIO_PORT,0,15,true);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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;Chip_GPIO_SetPinState(LPC_GPIO_PORT,0,1,true);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like:&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;*LPC_GPIO_PORT-&amp;gt;B[0] = 0b1000000000000010;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But this seems to fail, but i cant figure out why...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2019 10:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-talk-to-GPIO-pins-in-binary-form-LPC824/m-p/934649#M37231</guid>
      <dc:creator>joren_joly</dc:creator>
      <dc:date>2019-10-01T10:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to talk to GPIO pins in binary form, LPC824?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-talk-to-GPIO-pins-in-binary-form-LPC824/m-p/934650#M37232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joren,&lt;/P&gt;&lt;P&gt;Can you try to do the hex value for the binary for example&amp;nbsp;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;LPC_GPIO_PORT-&amp;gt;B[0] |= 0b8002;&lt;/STRONG&gt;. Check to see if this results different.&lt;/P&gt;&lt;P&gt;Also instead of just using an equal sign, make sure you use |= or &amp;amp; ~(...) depending if you want to turn on or off certain bits so you do not modify any other configurations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your results&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 20:07:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-talk-to-GPIO-pins-in-binary-form-LPC824/m-p/934650#M37232</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-10-03T20:07:22Z</dc:date>
    </item>
  </channel>
</rss>

