<?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 Volatile issue in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Volatile-issue/m-p/187403#M14152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am trying to use the following documentation AN2616 and follow an example.&amp;nbsp; In the example they initialize the data direction register as such:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;PTADD = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp; //initialize as input (Data Direction Register) */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;when I compile this I get an error saying the following&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Error&amp;nbsp;&amp;nbsp; : C1019: Incompatible type to previous declaration (found 'int ', expected 'PTAPESTR volatile ')&lt;/DIV&gt;&lt;DIV&gt;main.c line 9&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;what is the proper way of doing this or am I missing something.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 03:47:50 GMT</pubDate>
    <dc:creator>jberri</dc:creator>
    <dc:date>2008-02-07T03:47:50Z</dc:date>
    <item>
      <title>Volatile issue</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Volatile-issue/m-p/187403#M14152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am trying to use the following documentation AN2616 and follow an example.&amp;nbsp; In the example they initialize the data direction register as such:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;PTADD = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp; //initialize as input (Data Direction Register) */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;when I compile this I get an error saying the following&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Error&amp;nbsp;&amp;nbsp; : C1019: Incompatible type to previous declaration (found 'int ', expected 'PTAPESTR volatile ')&lt;/DIV&gt;&lt;DIV&gt;main.c line 9&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;what is the proper way of doing this or am I missing something.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 03:47:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Volatile-issue/m-p/187403#M14152</guid>
      <dc:creator>jberri</dc:creator>
      <dc:date>2008-02-07T03:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Volatile issue</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Volatile-issue/m-p/187404#M14153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Are you placing&lt;BR /&gt;&amp;gt;PTADD = 0;&lt;BR /&gt;inside of a function, inside of main?&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 07:25:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Volatile-issue/m-p/187404#M14153</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-02-07T07:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Volatile issue</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Volatile-issue/m-p/187405#M14154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Daniel, you hit it on the dot.....&amp;nbsp; I had the code placed outside the main loop.&amp;nbsp; What I don't understand is, I thought it should have been outside the main.&amp;nbsp; Maybe I am thinking C++&lt;/DIV&gt;&lt;DIV&gt;Anyway, thank you so much.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 11:11:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Volatile-issue/m-p/187405#M14154</guid>
      <dc:creator>jberri</dc:creator>
      <dc:date>2008-02-07T11:11:02Z</dc:date>
    </item>
  </channel>
</rss>

