<?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>8-bit Microcontrollersのトピックwrite/read to floating point variable through IIC - MC9S08GB60</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/write-read-to-floating-point-variable-through-IIC-MC9S08GB60/m-p/211580#M18219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; We are using MC9S08GB60 Controller.I that i'm using IIC module for communication.Our's is POWER Domain &amp;nbsp;project.In that we&amp;nbsp;are using floating point variable for storing&amp;nbsp;value of voltages like syst_vtg=58.90.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Eg: float &lt;A class="jive-link-email-small" href="mailto:syst_vtg@0x80=58.90"&gt;syst_vtg@0x80=58.90&lt;/A&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can i change the data in syst_vtg&amp;nbsp;of the&amp;nbsp;power plant (which use the&amp;nbsp;MC9S08GB60 controller ) from the&amp;nbsp;remote&amp;nbsp;side (which also using another&amp;nbsp;MC9S08GB60 controller) through IIC.&amp;nbsp;Can u suggest me how to &lt;STRONG&gt;write data&lt;/STRONG&gt; to floating point variable and also how to&amp;nbsp;&lt;STRONG&gt;read the data&lt;/STRONG&gt; from floating point variable through IIC.&amp;nbsp;And also i want to know the exact format in which HCS08 family IIC module works,because they gave IIC format like below,but they didn't mentioned the address of memory where we have to write.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;start&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;slaveaddress r/w&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;data&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;stop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt; in&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt; other memory and all they clearly mentioned where to write (&lt;STRONG&gt;address register&lt;/STRONG&gt;)as shown in below.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;start&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;slaveaddress r/w&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;address register&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;data&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; stop;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Suggest me on this issue and attach example code if u have other than&amp;nbsp;the code which is given in freescale data sheets.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;With regards&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Santhosh&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Added p/n to subject.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-12-24&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;07:20 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2008 23:13:06 GMT</pubDate>
    <dc:creator>santhu</dc:creator>
    <dc:date>2008-12-19T23:13:06Z</dc:date>
    <item>
      <title>write/read to floating point variable through IIC - MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/write-read-to-floating-point-variable-through-IIC-MC9S08GB60/m-p/211580#M18219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; We are using MC9S08GB60 Controller.I that i'm using IIC module for communication.Our's is POWER Domain &amp;nbsp;project.In that we&amp;nbsp;are using floating point variable for storing&amp;nbsp;value of voltages like syst_vtg=58.90.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Eg: float &lt;A class="jive-link-email-small" href="mailto:syst_vtg@0x80=58.90"&gt;syst_vtg@0x80=58.90&lt;/A&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can i change the data in syst_vtg&amp;nbsp;of the&amp;nbsp;power plant (which use the&amp;nbsp;MC9S08GB60 controller ) from the&amp;nbsp;remote&amp;nbsp;side (which also using another&amp;nbsp;MC9S08GB60 controller) through IIC.&amp;nbsp;Can u suggest me how to &lt;STRONG&gt;write data&lt;/STRONG&gt; to floating point variable and also how to&amp;nbsp;&lt;STRONG&gt;read the data&lt;/STRONG&gt; from floating point variable through IIC.&amp;nbsp;And also i want to know the exact format in which HCS08 family IIC module works,because they gave IIC format like below,but they didn't mentioned the address of memory where we have to write.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;start&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;slaveaddress r/w&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;data&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;stop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt; in&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt; other memory and all they clearly mentioned where to write (&lt;STRONG&gt;address register&lt;/STRONG&gt;)as shown in below.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;start&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;slaveaddress r/w&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;address register&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;data&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; stop;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Suggest me on this issue and attach example code if u have other than&amp;nbsp;the code which is given in freescale data sheets.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;With regards&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Santhosh&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Added p/n to subject.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-12-24&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;07:20 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 23:13:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/write-read-to-floating-point-variable-through-IIC-MC9S08GB60/m-p/211580#M18219</guid>
      <dc:creator>santhu</dc:creator>
      <dc:date>2008-12-19T23:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: write/read to floating point variable through IIC</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/write-read-to-floating-point-variable-through-IIC-MC9S08GB60/m-p/211581#M18220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;B&gt;&lt;STRONG&gt;Santhosh&lt;BR /&gt;&lt;BR /&gt;The following definition&lt;BR /&gt;&lt;/STRONG&gt;&lt;/B&gt;&lt;BLOCKQUOTE&gt;&lt;B&gt;&lt;STRONG&gt;start&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;slaveaddress r/w&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;data&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/B&gt;&lt;STRONG&gt;&lt;B&gt;stop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/B&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/BLOCKQUOTE&gt;&lt;STRONG&gt;&lt;B&gt;is the format of an IIC packet.&amp;nbsp; The slave address is the address of the device you are talking to on the IIC bus.&amp;nbsp; The data address you want to write to within the target device is application specific.&amp;nbsp; In IIC memory devices the first data you send to the memory would be a seed address and command such as read or write, then the following IIC transaction would be streamed data to or from that address.&lt;BR /&gt;&lt;BR /&gt;As you are controlling both ends, you will have to implement one end as the IIC slave.&lt;BR /&gt;&lt;BR /&gt;You can always go to Philips or NXP for the full spec on IIC (they developed it), though the distillation in the Freescale docs should be sufficient for most of your needs.&lt;BR /&gt;&lt;BR /&gt;As for sending the float serially, byte by byte, have you tried using a union of float and bytes&lt;BR /&gt;&lt;BR /&gt;union txFloat{&lt;BR /&gt;&amp;nbsp; float32 value;&lt;BR /&gt;&amp;nbsp; ubyte&amp;nbsp; txBytes[4];&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Alex&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/I%C2%B2C" target="test_blank"&gt;http://en.wikipedia.org/wiki/I%C2%B2C&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.i2c-bus.org/" target="test_blank"&gt;http://www.i2c-bus.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 05:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/write-read-to-floating-point-variable-through-IIC-MC9S08GB60/m-p/211581#M18220</guid>
      <dc:creator>alexod</dc:creator>
      <dc:date>2008-12-24T05:48:36Z</dc:date>
    </item>
  </channel>
</rss>

