<?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: PORTAD as GPIO at 9S12NE64 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148106#M4090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;With MC9S12NE64.h of HC12 V4.6, this works correctly, so I would guess that you use some other version, so which CW version do you use?&lt;BR /&gt;The actual error you see is generated if you include "MC9S12NE64.h" in your source file, but you do not have the corresponding MC9S12NE64.c added to your project, or more precisely if there is no matching definition for the variables declared in the header file. In that case I would expect a warning "default... created" before that error message.&lt;BR /&gt;Make sure you have the matching "MC9S12NE64.h/MC9S12NE64.c" and not a *.c file for another derivative. If in doubt create a new project with the wizard and check if it works in there. If not report the bug, if it does work, copy the settings :smileyhappy:.&lt;BR /&gt;&lt;BR /&gt;BTW. In HC12 V4.6 the register is called PORTAD and not PORTAD0 as in your snippet.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2007 00:13:18 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2007-09-21T00:13:18Z</dc:date>
    <item>
      <title>PORTAD as GPIO at 9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148102#M4086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;nbsp; Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm trying to program a keypad (4x4 matrix) with a 9S12NE64 using PORTAD. But when I define this port as input for my keypad, the CW return a error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; L1907: Fixup overflow TI1_Interrupt, to _PORTAD1 type 1, at offset 0x5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#pragma CODE_SEG __NEAR_SEG NON_BANKED&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;interrupt void TI1_Interrupt(void){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned char T;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; TFLG1 = 16;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; T = PORTAD1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; key_scan(T);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I change the PORTAD for PORTB (for example), no errors acours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 19:54:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148102#M4086</guid>
      <dc:creator>fmaesso</dc:creator>
      <dc:date>2007-09-20T19:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: PORTAD as GPIO at 9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148103#M4087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I suspect that is the linker's way of telling you to only use peripherals that actually exist on the chip. I might be totally wrong but last time I checked, NE64 only had one ADC.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 20:47:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148103#M4087</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-09-20T20:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: PORTAD as GPIO at 9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148104#M4088</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;How did you define PORTAD?&lt;/DIV&gt;&lt;DIV&gt;Is it allocated in a user defined segment? Make sure to allocate the segment on the zeropage.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you are using the header file delivered with CodeWarrior, make sure to add the corresponding .c file to your project as well.&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>Thu, 20 Sep 2007 21:10:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148104#M4088</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-09-20T21:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: PORTAD as GPIO at 9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148105#M4089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello&lt;BR /&gt;Yes, the MC9S12NE64.h archive is declared in then main.c.&lt;BR /&gt;I tried to define with PORTAD, PORTAD1. In accordance with datasheet the address of this port is 0x8f. In the MC9S12NE64.h archive this address it is defined as PORTAD1.&lt;BR /&gt;&amp;nbsp; This error only appears when use the PORTAD. If use another PORT, does not have error.&lt;BR /&gt;The reason of the error is the use of ATD port? or I am defining the PORTAD of wrong way?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Fernando Maesso&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 22:06:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148105#M4089</guid>
      <dc:creator>fmaesso</dc:creator>
      <dc:date>2007-09-20T22:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: PORTAD as GPIO at 9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148106#M4090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;With MC9S12NE64.h of HC12 V4.6, this works correctly, so I would guess that you use some other version, so which CW version do you use?&lt;BR /&gt;The actual error you see is generated if you include "MC9S12NE64.h" in your source file, but you do not have the corresponding MC9S12NE64.c added to your project, or more precisely if there is no matching definition for the variables declared in the header file. In that case I would expect a warning "default... created" before that error message.&lt;BR /&gt;Make sure you have the matching "MC9S12NE64.h/MC9S12NE64.c" and not a *.c file for another derivative. If in doubt create a new project with the wizard and check if it works in there. If not report the bug, if it does work, copy the settings :smileyhappy:.&lt;BR /&gt;&lt;BR /&gt;BTW. In HC12 V4.6 the register is called PORTAD and not PORTAD0 as in your snippet.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 00:13:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148106#M4090</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-09-21T00:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: PORTAD as GPIO at 9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148107#M4091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi&lt;BR /&gt;&amp;nbsp; The version of CW is 5.5.1272 . Come with the DEMO9s12NE64 KIT. If I posted the zip of my project, this help you?&lt;BR /&gt;&lt;BR /&gt;Fernando Maesso&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 02:36:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148107#M4091</guid>
      <dc:creator>fmaesso</dc:creator>
      <dc:date>2007-09-21T02:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: PORTAD as GPIO at 9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148108#M4092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;To retrieve information on the CodeWarrior version you are using you need to:&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;nbsp; - Start CodeWarrior&lt;BR /&gt;&amp;nbsp; - Select Help -&amp;gt; About Freescale CodeWarrior&lt;BR /&gt;&amp;nbsp; - Click on "Install Products"&lt;BR /&gt;&amp;nbsp; - CodeWarrior version used is displayed on top in the Installed Products dialog.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;IDE version number does not help at all.&lt;/DIV&gt;&lt;DIV&gt;Anyway it looks you are using an older release of the tools. I would recommend you to give it a try with V4.6. You can download a special edition from our web.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you are still unable to get it working I would recommend you to submit a service request for that.&lt;BR /&gt;&lt;BR /&gt;Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework?regFlag=fromOpenSR" rel="nofollow" target="_blank"&gt;here&lt;/A&gt; to submit a service request.&lt;BR /&gt;&lt;BR /&gt;Make sure to attach a reproducible project and installed product information to the service request.&lt;BR /&gt;To generate the required information:&lt;BR /&gt;- Start CodeWarrior&lt;BR /&gt;- Open the project&lt;BR /&gt;- Select "Help" -&amp;gt; "Pack and Go" and follow instructions on the screen.&lt;BR /&gt;&lt;BR /&gt;Attach the generated .zip file to the SR.&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>Fri, 21 Sep 2007 12:40:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148108#M4092</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-09-21T12:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: PORTAD as GPIO at 9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148109#M4093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ok my post was perhaps not very informative, but what I was saying between the lines is to make sure you are using the right variable name. PORTAD1 is located at 0x012F on all S12 derivates, a location labelled as "reserved" by the NE64 manual, simply because there is no secondary ADC on chip.&lt;BR /&gt;&lt;BR /&gt;According to Freescale's NE64 manual this register is named PORTAD. It might also be PORTAD0, since that is the name of the register on all other S12 devices, like the D-family.&lt;BR /&gt;&lt;BR /&gt;Check if this variable name exists in both the h and the c file. It might be quite possible that the wrong name "PORTAD1" exists in them, and in that case that would be the source of the problem.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 13:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148109#M4093</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-09-21T13:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: PORTAD as GPIO at 9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148110#M4094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;HI!&lt;BR /&gt;&amp;nbsp; Now its OK. I replace the MC9S12NE64.* on the CW 3.1 path which come with CW 4.6 and now all works.&lt;BR /&gt;&lt;BR /&gt;Thank very much for your help.&lt;BR /&gt;&lt;BR /&gt;Fernando Maesso&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2007 21:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PORTAD-as-GPIO-at-9S12NE64/m-p/148110#M4094</guid>
      <dc:creator>fmaesso</dc:creator>
      <dc:date>2007-09-22T21:28:08Z</dc:date>
    </item>
  </channel>
</rss>

