<?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>Processor Expert SoftwareのトピックRe: Change I2c address</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Change-I2c-address/m-p/387835#M3025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marek,&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="it"&gt;&lt;SPAN title="nella figura sotto puoi vedere il diagramma temporale delle I2C di un MAG3110 (slave). il Master è un MK10. Gli indirizzi Device e Register devono essere scritti prima uno poi dopo la tx, l'altro nel registro I2C0_A1?"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;in the figure below&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;see the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time diagram&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;MAG3110&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I2C&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;slave).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="it"&gt;&lt;SPAN title="nella figura sotto puoi vedere il diagramma temporale delle I2C di un MAG3110 (slave). il Master è un MK10. Gli indirizzi Device e Register devono essere scritti prima uno poi dopo la tx, l'altro nel registro I2C0_A1?"&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="it"&gt;&lt;SPAN title="nella figura sotto puoi vedere il diagramma temporale delle I2C di un MAG3110 (slave). il Master è un MK10. Gli indirizzi Device e Register devono essere scritti prima uno poi dopo la tx, l'altro nel registro I2C0_A1?"&gt;&lt;SPAN lang="en"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Immagin2e.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59459i1DED9E77FC38018E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Immagin2e.png" alt="Immagin2e.png" /&gt;&lt;/span&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;The&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Master&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;MK10&lt;/SPAN&gt;.&lt;BR /&gt; T&lt;SPAN class="hps"&gt;he&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;addresses&amp;nbsp; &lt;SPAN lang="it"&gt;&lt;SPAN title="nella figura sotto puoi vedere il diagramma temporale delle I2C di un MAG3110 (slave). il Master è un MK10. Gli indirizzi Device e Register devono essere scritti prima uno poi dopo la tx, l'altro nel registro I2C0_A1?"&gt;&lt;SPAN lang="en"&gt;of &lt;SPAN class="hps"&gt;Device&lt;/SPAN&gt; and &lt;SPAN class="hps"&gt;Register&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;must&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;be written&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;first one then&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;after&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;tx&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;the other in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I2C0_A1&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;register&lt;/SPAN&gt;&lt;SPAN&gt;? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 10:50:25 GMT</pubDate>
    <dc:creator>nikivendola</dc:creator>
    <dc:date>2016-02-08T10:50:25Z</dc:date>
    <item>
      <title>Change I2c address</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Change-I2c-address/m-p/387833#M3023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I'm using CodeWarrioir with PE to program a HCS08 microcontroller.&lt;/P&gt;&lt;P&gt;It's a fan controller and it will comunicate with the rest of System over a I2C bus as a Slave device.&lt;/P&gt;&lt;P&gt;For the address, I need to read some GPIO to see what is its position on a back plane. Therefore, I need to set the I2C address on-the-fly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the ProcessorExpert windows, I didn't see an obvious way to do that. The only option I see is the "Slave address" property, wich appears to be static after the build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is if there's an easy way to set the I2C Slave address of a I2C component by software, after the code starts running.&lt;/P&gt;&lt;P&gt;If there's not a easy way, what is the hard way I should go to get this working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The about screen shows:&lt;/P&gt;&lt;P&gt;CodeWarrior Development Studio&lt;/P&gt;&lt;P&gt;Version: 1.0.0 &lt;/P&gt;&lt;P&gt;Build Id: b15_2105-A22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 14:29:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Change-I2c-address/m-p/387833#M3023</guid>
      <dc:creator>RicardoCazettaM</dc:creator>
      <dc:date>2014-08-28T14:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change I2c address</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Change-I2c-address/m-p/387834#M3024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;I am not sure which HCS08 derivative and which I2C component you use for your application but the slave address of the I2C device in the slave mode must be set before the I2C device is enabled, see the proper initialization sequence in a HCS08 reference manual:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Module Initialization (Slave)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Write: Control Register 2&lt;/P&gt;&lt;P&gt;• to enable or disable general call&lt;/P&gt;&lt;P&gt;• to select 10-bit or 7-bit addressing mode&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Write: Address Register 1 to set the slave address&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Write: Control Register 1 to enable the I2C module and interrupts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4. Initialize RAM variables (IICEN = 1 and IICIE = 1) for transmit data&lt;/P&gt;&lt;P&gt;5. Initialize RAM variables used to achieve the routine shown in the following figure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever you need to change the slave address you should reinitialize the device. If you change the slave address when I2C device is enabled the behaviour is undefined.&lt;/P&gt;&lt;P&gt;So you need to rewrite the source code generated by the PEx component (you must select Code Generation - Don't Write Generated Component Modules in the pop-up menu of the I2C component and then you can modify the generated code). You can write own function for re-initialization of the I2C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 12:22:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Change-I2c-address/m-p/387834#M3024</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2014-09-05T12:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change I2c address</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Change-I2c-address/m-p/387835#M3025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marek,&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="it"&gt;&lt;SPAN title="nella figura sotto puoi vedere il diagramma temporale delle I2C di un MAG3110 (slave). il Master è un MK10. Gli indirizzi Device e Register devono essere scritti prima uno poi dopo la tx, l'altro nel registro I2C0_A1?"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;in the figure below&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;see the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time diagram&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;MAG3110&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I2C&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;(&lt;/SPAN&gt;slave).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="it"&gt;&lt;SPAN title="nella figura sotto puoi vedere il diagramma temporale delle I2C di un MAG3110 (slave). il Master è un MK10. Gli indirizzi Device e Register devono essere scritti prima uno poi dopo la tx, l'altro nel registro I2C0_A1?"&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="it"&gt;&lt;SPAN title="nella figura sotto puoi vedere il diagramma temporale delle I2C di un MAG3110 (slave). il Master è un MK10. Gli indirizzi Device e Register devono essere scritti prima uno poi dopo la tx, l'altro nel registro I2C0_A1?"&gt;&lt;SPAN lang="en"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Immagin2e.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59459i1DED9E77FC38018E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Immagin2e.png" alt="Immagin2e.png" /&gt;&lt;/span&gt;&lt;BR /&gt; &lt;SPAN class="hps"&gt;The&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Master&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;MK10&lt;/SPAN&gt;.&lt;BR /&gt; T&lt;SPAN class="hps"&gt;he&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;addresses&amp;nbsp; &lt;SPAN lang="it"&gt;&lt;SPAN title="nella figura sotto puoi vedere il diagramma temporale delle I2C di un MAG3110 (slave). il Master è un MK10. Gli indirizzi Device e Register devono essere scritti prima uno poi dopo la tx, l'altro nel registro I2C0_A1?"&gt;&lt;SPAN lang="en"&gt;of &lt;SPAN class="hps"&gt;Device&lt;/SPAN&gt; and &lt;SPAN class="hps"&gt;Register&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;must&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;be written&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;first one then&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;after&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;tx&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;the other in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I2C0_A1&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;register&lt;/SPAN&gt;&lt;SPAN&gt;? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 10:50:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Change-I2c-address/m-p/387835#M3025</guid>
      <dc:creator>nikivendola</dc:creator>
      <dc:date>2016-02-08T10:50:25Z</dc:date>
    </item>
  </channel>
</rss>

