<?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 assigning a variable to port in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/assigning-a-variable-to-port/m-p/143992#M1609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;how do you assign a switch to port, because I wrote the following code line&lt;/DIV&gt;&lt;DIV&gt;bit switch = P1^3&amp;nbsp;&amp;nbsp; which is supposed to assign a variable switch to bit 3 of port1 but it gives me&amp;nbsp;an error message on this line when I try to compile&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jan 2007 04:32:30 GMT</pubDate>
    <dc:creator>mojalefa1</dc:creator>
    <dc:date>2007-01-31T04:32:30Z</dc:date>
    <item>
      <title>assigning a variable to port</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/assigning-a-variable-to-port/m-p/143992#M1609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;how do you assign a switch to port, because I wrote the following code line&lt;/DIV&gt;&lt;DIV&gt;bit switch = P1^3&amp;nbsp;&amp;nbsp; which is supposed to assign a variable switch to bit 3 of port1 but it gives me&amp;nbsp;an error message on this line when I try to compile&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 04:32:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/assigning-a-variable-to-port/m-p/143992#M1609</guid>
      <dc:creator>mojalefa1</dc:creator>
      <dc:date>2007-01-31T04:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: assigning a variable to port</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/assigning-a-variable-to-port/m-p/143993#M1610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;- Which CPU are you targeting (HC08, HC12, Coldfire, ..)&lt;BR /&gt;- Which version of CodeWarrior are you using?&lt;BR /&gt;&amp;nbsp; To retrieve that info:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Start CodeWarrior&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Select Help -&amp;gt; About Freescale CodeWarrior&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Click on "Install Products"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - CodeWarrior version used is displayed on top in the Installed Products dialog.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;In any case ANSI standard does not define P1^3 as valid notation to access bit number 3 in a variable / register).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please refer to your favorite ANSI C programming manual and look at how bitfields are managed.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2007 18:45:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/assigning-a-variable-to-port/m-p/143993#M1610</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-01-31T18:45:42Z</dc:date>
    </item>
  </channel>
</rss>

