<?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: Register map for S12 C32? in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187439#M7098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello Lundin,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have attached the header files from within a V4.5 installation.&amp;nbsp; You may wish to check for differences with your existing files.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by bigmac on &lt;SPAN class="date_text"&gt;2008-09-23&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:09 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2008 00:06:29 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2008-09-23T00:06:29Z</dc:date>
    <item>
      <title>Register map for S12 C32?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187436#M7095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been using the S12 devices DG128 and C32 for quite a while now. For my C32 projects I have always used the same register map as for my DG128 projects, without problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I started up a new C32 project with PWM and ATD, parts that I haven't used before for this mcu derivate. I soon discovered that I wouldn't be able to use my old memory map for the D family, since both MODRR and the whole PWM is allocated at different addresses. Ie, S12 processors are not code compatible because of different hardware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fair enough, I switch to the register map in the non-standard C header that came with the compiler (CW 3.1). Something in this header file is however fishy, I can't get the ATD working. If I switch back to my old register map, everything works. As far as I know, there shouldn't be any ATD hardware differencies between DG128 and C32, except less silicon bugs in the latter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect it could be related to "struct padding" or similar compiler options... the CW register map is cluttered with unions and macros, non-standard bitfields and non-standard variable allocation. I'm not too intrigued to track down the cause of the error in that mess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am wondering if there are any known issues with the register map, and if there is a newer register map for C32 available in later versions of CW?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or even better, is there a register map for this mcu written in pure ANSI/ISO C with #defines?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 15:24:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187436#M7095</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2008-09-22T15:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Register map for S12 C32?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187437#M7096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Lundin,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To use&amp;nbsp;the DG128 header file, the main difference for the ATD module seems to be that all register names previously&amp;nbsp;identified by the prefix ATD...&amp;nbsp; within your&amp;nbsp;code, should now have the prefix ATD0... , to suit the proper header file for the new device.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has this already been taken into account?&amp;nbsp; You do not say whether the code is failing to compile, or it is compiling but does not work as expected.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The use of bit fields, unions and macros to define individual bits within a register seems to be the "CW way".&amp;nbsp; I don't believe there is any compulsion to use these if you wish to create your own bit mask definitions.&amp;nbsp; However, I think that the standard register names should continue to be used.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 20:51:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187437#M7096</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-09-22T20:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Register map for S12 C32?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187438#M7097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The code compiles in both cases.&lt;BR /&gt;&lt;BR /&gt;Yeah the register names have changed, I used "ATD0" from my DG128 register map and it worked well. When I use "ATD" without 0 from the CW3.1 header for C32, it isn't working.&lt;BR /&gt;&lt;BR /&gt;Worth mentioning is that the DG128 map was written by myself, since it is from the old "Star12" days when CW didn't come with a register map. So maybe the CW3.1 version of DG128 has the same issues, I don't know. I will try that one and check.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 21:32:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187438#M7097</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2008-09-22T21:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Register map for S12 C32?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187439#M7098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello Lundin,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have attached the header files from within a V4.5 installation.&amp;nbsp; You may wish to check for differences with your existing files.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by bigmac on &lt;SPAN class="date_text"&gt;2008-09-23&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:09 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 00:06:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187439#M7098</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-09-23T00:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Register map for S12 C32?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187440#M7099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;I did a file compare between them and the old files and they seem to be quite different. I will test if I can use that h file together with the old C file. The c file is just a load of dumb allocations so I think it might work, unless they changed the register names between versions, which seems unlikely.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 13:47:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187440#M7099</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2008-09-23T13:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Register map for S12 C32?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187441#M7100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Lundin,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Sorry, I gave you only half the files.&amp;nbsp; Here are the related C files from the same CW version.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 19:14:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Register-map-for-S12-C32/m-p/187441#M7100</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-09-23T19:14:40Z</dc:date>
    </item>
  </channel>
</rss>

