<?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: GPIO setting in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684991#M42183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BME macro only useful , &amp;amp;= and |= ops giving undesired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Jul 2017 08:40:42 GMT</pubDate>
    <dc:creator>darshandpatel</dc:creator>
    <dc:date>2017-07-01T08:40:42Z</dc:date>
    <item>
      <title>GPIO setting</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684988#M42180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am using&amp;nbsp;&lt;SPAN style="color: #545454; background-color: #ffffff; font-size: small;"&gt;MKM34Z256VLL7 .In which &amp;nbsp;IIC using bit banging for giving SDA and SCL high-low i am using PDOR register directly to set that GPIO bit . Problem is total port F is getting disturbed other port pins are getting toggle in setting SDA , SCL with PDOR register if i &amp;nbsp;am setting and clearing with PSOR and PCOR respectively than this problem is not coming .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; background-color: #ffffff; font-size: small;"&gt;So, anyone can tell me the difference between direct use of PDOR and by PSOR .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; background-color: #ffffff; font-size: small;"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; background-color: #ffffff; font-size: small;"&gt;Darshan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 07:12:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684988#M42180</guid>
      <dc:creator>darshandpatel</dc:creator>
      <dc:date>2017-05-19T07:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO setting</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684989#M42181</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;From the GPIOx_PSOR register description, write 0 doesn't affect other bit status:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19701i2E3D8ED86F3BEC96/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;While, the GPIOx_PDOR register, write 0 will affect other bit status:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19749i2F0085FB9466E8DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, For example: if want to set PTF5 (I2C1_SCL), it need to use:&lt;/P&gt;&lt;P&gt;GPIOF_PDOR |= (0x1 &amp;lt;&amp;lt; 5) ;&lt;/P&gt;&lt;P&gt;If want to clear PTF5 (I2C1_SCL), it need to use:&lt;/P&gt;&lt;P&gt;GPIOF_PDOR &amp;amp;=~(0x1 &amp;lt;&amp;lt; 5);&lt;/P&gt;&lt;P&gt;&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;Ma Hui&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>Tue, 06 Jun 2017 23:05:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684989#M42181</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-06-06T23:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO setting</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684990#M42182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you can use the BME macros on GPIOF_PDOR to avoid the inefficient &amp;amp;= and |= ops for single bits in peripheral-address space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 23:31:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684990#M42182</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-06-06T23:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO setting</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684991#M42183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BME macro only useful , &amp;amp;= and |= ops giving undesired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 08:40:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684991#M42183</guid>
      <dc:creator>darshandpatel</dc:creator>
      <dc:date>2017-07-01T08:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO setting</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684992#M42184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And why that and,or ops giving such type of behavior.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Jul 2017 09:04:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684992#M42184</guid>
      <dc:creator>darshandpatel</dc:creator>
      <dc:date>2017-07-01T09:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO setting</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684993#M42185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I am not directly familiar with the byte-wide GPIO scheme in the KM series.&amp;nbsp; I agree, there is no 'obvious' reason that |= 'ones' and &amp;amp;= 'not ones' should fail, although I couldn't find a direct description as to whether reading GPIOF_PDOR would always return the exact contents of the output holding register, OR the pin state.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jul 2017 16:43:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-setting/m-p/684993#M42185</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-07-02T16:43:25Z</dc:date>
    </item>
  </channel>
</rss>

