<?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>CodeWarrior Development ToolsのトピックRe: How to read a pin on S12XE eval board</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-a-pin-on-S12XE-eval-board/m-p/681598#M6051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Alice, I must say a big THANKS, because you helped me to understand how the whole processor expert works (like, I mean, the whole concept of which parameters are the used name etc.), so now I can educate myself a lot faster and better I think.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, Thank you very much!&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tomas Lukac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2017 04:53:48 GMT</pubDate>
    <dc:creator>tomaslukac</dc:creator>
    <dc:date>2017-05-19T04:53:48Z</dc:date>
    <item>
      <title>How to read a pin on S12XE eval board</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-a-pin-on-S12XE-eval-board/m-p/681596#M6049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey folks, I am a little bit struggling trying to read an input pin digital value on evaluation board with MC9S12XEP100 mcu.&lt;/P&gt;&lt;P&gt;I am trying to switch from simple Atmegas to this, but I am really not familiar with using CodeWarrior. Also, The difference between ATmega32 and MC9S12XEP100 is really huge, so that is making learning how to program these even harder.&lt;/P&gt;&lt;P&gt;So, if anyone could help me out, I would really appreciate it. I am not even really familiar with the C code, I am really learning, the only thing I can do right now is some math operations, simple PWM, setting some bits and also some kind of writing stuff on LCD (like, making a simple voltmeter etc.), I do not know how to properly use an interrupt, so please try to explain me this a little bit "primitively". In AtmelStudio, while configuring the pins on my ATmega32, I simply put DDRB (lets use this port because I want use the PORTB on the evaluation board from NXP too). I have chosen pin PB0 as an input (HW button), and pin PB1 as an output (HW LED). By writing a simple code, containing one if, I am simply able to light up that LED by a button on the PB0. So I put in &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (PINB&amp;amp;(1&amp;lt;&amp;lt;PB0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PORTB=0x02;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;else&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PORTB=0x00;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and it works. And so please can someone write me, how does the equivalent code for S12XE board MCU look?&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I am using CodeWarrior IDE version 5.9.0 which is recommended for this board&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 13:07:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-a-pin-on-S12XE-eval-board/m-p/681596#M6049</guid>
      <dc:creator>tomaslukac</dc:creator>
      <dc:date>2017-05-16T13:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a pin on S12XE eval board</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-a-pin-on-S12XE-eval-board/m-p/681597#M6050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tomas,&lt;/P&gt;&lt;P&gt;I recommend you create project with Processor expert on CodeWarrior,&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/19426i2CA2BCAB18331FC8/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;then&amp;nbsp; add the component of "BitIO" , then you can refer to the example of "Typical Usage ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the detail steps please check the video of attachment .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it can helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Wed, 17 May 2017 06:46:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-a-pin-on-S12XE-eval-board/m-p/681597#M6050</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-05-17T06:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a pin on S12XE eval board</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-a-pin-on-S12XE-eval-board/m-p/681598#M6051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Alice, I must say a big THANKS, because you helped me to understand how the whole processor expert works (like, I mean, the whole concept of which parameters are the used name etc.), so now I can educate myself a lot faster and better I think.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, Thank you very much!&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tomas Lukac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 04:53:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-a-pin-on-S12XE-eval-board/m-p/681598#M6051</guid>
      <dc:creator>tomaslukac</dc:creator>
      <dc:date>2017-05-19T04:53:48Z</dc:date>
    </item>
  </channel>
</rss>

