<?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 reading  I/O ports problems in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/reading-I-O-ports-problems/m-p/204858#M7879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hi guys thanks for your help. look I'm new in this and Im working with the gp32 from hc08 family and I need to read from the port a and the port b two numbers, the&amp;nbsp;question is&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;how can I read from the&amp;nbsp;the ports of the gp 32 and save the data in the register A, and how can I write some value in the&amp;nbsp;some port?.&lt;/DIV&gt;&lt;DIV&gt;thanks&amp;nbsp; I work with codewarrior 6.0&lt;/DIV&gt;&lt;DIV&gt;please help me!! &lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif"&gt;&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2008 05:58:21 GMT</pubDate>
    <dc:creator>LEGION55</dc:creator>
    <dc:date>2008-03-21T05:58:21Z</dc:date>
    <item>
      <title>reading  I/O ports problems</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/reading-I-O-ports-problems/m-p/204858#M7879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hi guys thanks for your help. look I'm new in this and Im working with the gp32 from hc08 family and I need to read from the port a and the port b two numbers, the&amp;nbsp;question is&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;how can I read from the&amp;nbsp;the ports of the gp 32 and save the data in the register A, and how can I write some value in the&amp;nbsp;some port?.&lt;/DIV&gt;&lt;DIV&gt;thanks&amp;nbsp; I work with codewarrior 6.0&lt;/DIV&gt;&lt;DIV&gt;please help me!! &lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif"&gt;&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 05:58:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/reading-I-O-ports-problems/m-p/204858#M7879</guid>
      <dc:creator>LEGION55</dc:creator>
      <dc:date>2008-03-21T05:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: reading  I/O ports problems</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/reading-I-O-ports-problems/m-p/204859#M7880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;oops ....please is in assembly not in c or c++ thanks&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 06:00:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/reading-I-O-ports-problems/m-p/204859#M7880</guid>
      <dc:creator>LEGION55</dc:creator>
      <dc:date>2008-03-21T06:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: reading  I/O ports problems</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/reading-I-O-ports-problems/m-p/204860#M7881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;LEGION55&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Since you didn't show any code, it couldn't be considered as a &lt;EM&gt;problem&lt;/EM&gt; itself.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Did you configured your I/O ports?&lt;/DIV&gt;&lt;DIV&gt;Are you reading incorrect or spurious values?&lt;/DIV&gt;&lt;DIV&gt;Do you write something to your port but you can't see anything?&lt;/DIV&gt;&lt;DIV&gt;Which I/O port or device are you using?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I think this task could be accomplished by reading the "Parallel Input/Output Control" of your device's Reference Manual combined by a good reading in addressing modes (INH, DIR will be a good starting).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 22:55:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/reading-I-O-ports-problems/m-p/204860#M7881</guid>
      <dc:creator>jorge</dc:creator>
      <dc:date>2008-03-25T22:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: reading  I/O ports problems</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/reading-I-O-ports-problems/m-p/204861#M7882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Legion55,&lt;BR /&gt;&lt;BR /&gt;What about:&lt;BR /&gt;&lt;BR /&gt;LDA PTA&amp;nbsp;&amp;nbsp;&amp;nbsp; ; load A with the state of the PTA pins (remember to configure the pins to input mode)&lt;BR /&gt;STA PTB&amp;nbsp;&amp;nbsp; ; store A into the PTB register (write on the PTB pins configured as outputs)&lt;BR /&gt;&lt;BR /&gt;Remember that you need to configure the PTA and PTB pins to the desired mode (input or output) by writting into the DDRA (for port A) and DDRB (for port B). By default (after reset), all pins are inputs.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 23:22:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/reading-I-O-ports-problems/m-p/204861#M7882</guid>
      <dc:creator>fabio</dc:creator>
      <dc:date>2008-03-25T23:22:04Z</dc:date>
    </item>
  </channel>
</rss>

