<?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: Pointer to register in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893366#M52733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on which KE04 you are using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MKE04Z8VTG4(R), MKE04Z8VWJ4(R) and MKE04Z8VFK4(R) are at &lt;STRONG&gt;0x0c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MKE04Z64VLD4(R), MKE04Z128VLD4(R),MKE04Z64VQH4(R), MKE04Z128VQH4(R), MKE04Z64VLH4(R),MKE04Z128VLH4(R), MKE04Z64VLK4(R) and MKE04Z128VLK4(R) are at &lt;STRONG&gt;0x14&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user should not be fussed with the details if a macro is used. In the uTasker project it adapts itself automatically by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#if (defined KINETIS_KE04 &amp;amp;&amp;amp; (SIZE_OF_FLASH &amp;gt; (8 * 1024))) || defined KINETIS_KE06 || (defined KINETIS_KEA64 &amp;amp;&amp;amp; !defined KINETIS_KEAN64) || defined KINETIS_KEA128&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define SIM_SCGC_BME_OR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (volatile unsigned long *)(SIM_BLOCK + 0x14 + BME_OR_OFFSET)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define SIM_SCGC_BME_OR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (volatile unsigned long *)(SIM_BLOCK + 0x0c + BME_OR_OFFSET)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the user just does&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;POWER_UP_ATOMIC(0, KBI0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which transforms itself automatically to the corresponding BME code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which then works on any Kinetis part with KBI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Non uTasker users have to carefully read the manuals and add the corresponding code manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Kinetis solutions for professional needs, training and support:http://www.utasker.com/kinetis.html&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Kinetis KE:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE02Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE02Z40M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z40M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE04Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE04Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE06Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE06Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE15Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE15Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;uTasker: supporting &amp;gt;1'000 registered Kinetis users get products faster and cheaper to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2019 11:33:20 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2019-05-22T11:33:20Z</dc:date>
    <item>
      <title>Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893357#M52724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using MCU KE04 series and I want write a register of CPU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, the KBI0_PE (Pin Enable Register) can be found in 0x40079000 absolute address so, Can't i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////////////////////////&lt;SPAN&gt;////////////////////////&lt;/SPAN&gt;&lt;SPAN&gt;////////////////////////&lt;/SPAN&gt; CODE /&lt;SPAN&gt;////////////////////////&lt;/SPAN&gt;&lt;SPAN&gt;////////////////////////&lt;/SPAN&gt;///////////////////////&lt;/P&gt;&lt;P&gt;static const uint32_t BASE_ADDRESS_KBI0 = 0x40079000; //Base address&lt;BR /&gt;uint32_t *pointerRegister = NULL; //Initialization&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pointerRegister = (BASE_ADDRESS_KBI0 + 8); //points to location fo KBI0_SC (40079008h)&lt;BR /&gt;*pointerRegister = 0xFEFFFFFF; //¿Write register?&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;it frozen MCU, why?¿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 08:19:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893357#M52724</guid>
      <dc:creator>ricardcomas</dc:creator>
      <dc:date>2019-04-12T08:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893358#M52725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The valid register address of KBI0 is from 0x40079000 to 0x40079002, Only 3 byte. 0x40079008 is out of range. When MCU find valid address access, it will trig hardfault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 09:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893358#M52725</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-04-12T09:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893359#M52726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mate, thanks fro your asking,I just tried to acces 0x4007900, but i can't write it yet, Is it possible have i use the BME (Bit Manipulation Engine) module for access?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 09:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893359#M52726</guid>
      <dc:creator>ricardcomas</dc:creator>
      <dc:date>2019-04-12T09:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893360#M52727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Richard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before accessing the KBI registers you need first to enable the KBI in SIM_SCGC.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Both enabling the clocks to the module and subsequent mode writes can be performed using the BME but this is not your basic issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Kinetis solutions, training and support:http://www.utasker.com/kinetis.html&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Kinetis KE:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE02Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE02Z40M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z40M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE04Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE04Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE06Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE06Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE15Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE15Z.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 11:28:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893360#M52727</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-04-12T11:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893361#M52728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mate, thanks for your answer, That's work! it has been fixed! :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 12:05:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893361#M52728</guid>
      <dc:creator>ricardcomas</dc:creator>
      <dc:date>2019-04-12T12:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893362#M52729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that to enable the clock via BME the following can be used:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*SIM_SCGC_BME_OR = (SIM_SCGC_KBI0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which on the KE04 is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*(volatile unsigned long *)(0x40048000 + 0x0c + 0x8000000) = 0x01000000;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 13:36:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893362#M52729</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-04-12T13:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893363#M52730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain me how does BME work? why do you add "&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold; font-size: 14px;"&gt;0x0c + 0x8000000" to "&lt;STRONG style="border: 0px; font-weight: bold;"&gt;0x40048000" ?¿¿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 12:29:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893363#M52730</guid>
      <dc:creator>ricardcomas</dc:creator>
      <dc:date>2019-05-21T12:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893364#M52731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The starting address of the SIM module is 0x40048000&lt;BR /&gt;The byte offset in the SIM module to the SIM_SCGC register is 0x0c, therefore its memory address is (0x40048000 + 0x0c).&lt;/P&gt;&lt;P&gt;The BME OR alias is an address shift of 0x80000000 therefore the OR alias of this register is at the address (0x40048000 + 0x0c + &lt;STRONG&gt;0x80000000&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;To OR 0x01000000 to the register one writes 0x01000000 to its OR alias, which gives the complete instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, to AND one uses an alias offset address of 0x40000000 instead of 0x80000000, and to XOR one uses an alias offset address of 0xc0000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details are also in the BME chapter of the user's manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Kinetis solutions for professional needs, training and support:http://www.utasker.com/kinetis.html&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;uTasker: supporting &amp;gt;1'000 registered Kinetis users get products faster and cheaper to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 18:32:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893364#M52731</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-05-21T18:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893365#M52732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark&lt;/P&gt;&lt;P&gt;mm but in the datasheet tell this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Captura.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83537iC279EFF5D4E06E92/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura.PNG" alt="Captura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The offset's 0x14,isn't?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 10:57:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893365#M52732</guid>
      <dc:creator>ricardcomas</dc:creator>
      <dc:date>2019-05-22T10:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893366#M52733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on which KE04 you are using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MKE04Z8VTG4(R), MKE04Z8VWJ4(R) and MKE04Z8VFK4(R) are at &lt;STRONG&gt;0x0c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MKE04Z64VLD4(R), MKE04Z128VLD4(R),MKE04Z64VQH4(R), MKE04Z128VQH4(R), MKE04Z64VLH4(R),MKE04Z128VLH4(R), MKE04Z64VLK4(R) and MKE04Z128VLK4(R) are at &lt;STRONG&gt;0x14&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user should not be fussed with the details if a macro is used. In the uTasker project it adapts itself automatically by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#if (defined KINETIS_KE04 &amp;amp;&amp;amp; (SIZE_OF_FLASH &amp;gt; (8 * 1024))) || defined KINETIS_KE06 || (defined KINETIS_KEA64 &amp;amp;&amp;amp; !defined KINETIS_KEAN64) || defined KINETIS_KEA128&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define SIM_SCGC_BME_OR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (volatile unsigned long *)(SIM_BLOCK + 0x14 + BME_OR_OFFSET)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define SIM_SCGC_BME_OR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (volatile unsigned long *)(SIM_BLOCK + 0x0c + BME_OR_OFFSET)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the user just does&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;POWER_UP_ATOMIC(0, KBI0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which transforms itself automatically to the corresponding BME code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which then works on any Kinetis part with KBI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Non uTasker users have to carefully read the manuals and add the corresponding code manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Kinetis solutions for professional needs, training and support:http://www.utasker.com/kinetis.html&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Kinetis KE:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE02Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE02Z40M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z40M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE04Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE04Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE06Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE06Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE15Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE15Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;uTasker: supporting &amp;gt;1'000 registered Kinetis users get products faster and cheaper to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 11:33:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893366#M52733</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-05-22T11:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer to register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893367#M52734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okey, I get it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you time mate!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 11:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Pointer-to-register/m-p/893367#M52734</guid>
      <dc:creator>ricardcomas</dc:creator>
      <dc:date>2019-05-22T11:38:28Z</dc:date>
    </item>
  </channel>
</rss>

