<?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: Bit field in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bit-field/m-p/2350267#M20882</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;the game you are playing is related to the defined sizes of bitfield elements (unsigned char, unsigned int) and then MSB. LSB order, MSb, LSb order. I suggest you to test combinations simply with different options after reading the help ....&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lama_0-1776099462232.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/382159i86F640708F1B8C89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lama_0-1776099462232.png" alt="lama_0-1776099462232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you want more info about bitfields I suggest to go through all appearnces in&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lama_2-1776099768901.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/382161i7E57DEE5BE534351/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lama_2-1776099768901.png" alt="lama_2-1776099768901.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus when you select an item it can show more options with the same name. Open each of them because each of them direct to different contet.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lama_3-1776099895547.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/382162i8797026D7CA324FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lama_3-1776099895547.png" alt="lama_3-1776099895547.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... or go to your instalation dir&amp;nbsp;c:\Program Files (x86)\Freescale\CWS12v5.2\Help\pdf\&lt;/P&gt;
&lt;P&gt;open file&amp;nbsp;Compiler_HC12.pdf&lt;/P&gt;
&lt;P&gt;and search for each existence of bitfield keyword.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Ladislav&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2026 17:09:42 GMT</pubDate>
    <dc:creator>lama</dc:creator>
    <dc:date>2026-04-13T17:09:42Z</dc:date>
    <item>
      <title>Bit field</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bit-field/m-p/2349912#M20880</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using MC9S12DG256 controller and IDE is CodeWarrior 5.2. When I am disabling the option bit field size reduction , the memory allocation starts from mid instead of start. for example my variable is of type int it starts from 8 instead of 0. I want to start from 0. Please find the screen shot attached.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 06:36:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bit-field/m-p/2349912#M20880</guid>
      <dc:creator>Aswin_5232</dc:creator>
      <dc:date>2026-04-13T06:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bit field</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bit-field/m-p/2350267#M20882</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;the game you are playing is related to the defined sizes of bitfield elements (unsigned char, unsigned int) and then MSB. LSB order, MSb, LSb order. I suggest you to test combinations simply with different options after reading the help ....&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lama_0-1776099462232.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/382159i86F640708F1B8C89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lama_0-1776099462232.png" alt="lama_0-1776099462232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you want more info about bitfields I suggest to go through all appearnces in&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lama_2-1776099768901.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/382161i7E57DEE5BE534351/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lama_2-1776099768901.png" alt="lama_2-1776099768901.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus when you select an item it can show more options with the same name. Open each of them because each of them direct to different contet.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lama_3-1776099895547.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/382162i8797026D7CA324FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lama_3-1776099895547.png" alt="lama_3-1776099895547.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... or go to your instalation dir&amp;nbsp;c:\Program Files (x86)\Freescale\CWS12v5.2\Help\pdf\&lt;/P&gt;
&lt;P&gt;open file&amp;nbsp;Compiler_HC12.pdf&lt;/P&gt;
&lt;P&gt;and search for each existence of bitfield keyword.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Ladislav&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 17:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Bit-field/m-p/2350267#M20882</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2026-04-13T17:09:42Z</dc:date>
    </item>
  </channel>
</rss>

