<?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 I2C Primer in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396122#M2423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;(I am reposting this in a different area.&amp;nbsp; I am learning these forums).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am brand new to the Freescale product suite and Code Warrior.&amp;nbsp; I have inherited a project and the associated device which is a amateur radio device.&amp;nbsp; The device has several components, 1) MC9S08QG8CPBE, 2) A MCP3422 ADC and a KTM-s1201.&amp;nbsp; At any rate, the MCU communicates with the ADC via I2C.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone would be so kind as to point me in the right direction to Freescale I2c primer, I would be most appreciative. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The I2C source code included with the project is dated 8/2008.&amp;nbsp; This is pretty much a "down on the metal" type program.&amp;nbsp; Does Freescale have an I2C library I may link to?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//===================================================================&lt;BR /&gt;// MC9RS08KA8 IIC Subroutines&amp;nbsp; 8/24/2008&lt;BR /&gt;// Written by John H. Fisher - K5JHF&lt;BR /&gt;//===================================================================&lt;/P&gt;&lt;P&gt;#include "derivative.h"&lt;BR /&gt;#include "iic.h"&lt;/P&gt;&lt;P&gt;//===================================================================&lt;/P&gt;&lt;P&gt;void i2c_send ( char send ) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; IICD&amp;nbsp; = send; // master transmit;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while (!IICS_IICIF);&amp;nbsp;&amp;nbsp; // wait until IBIF;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IICS_IICIF = 1; // clear the interrupt event flag;&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//===================================================================&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;73,&lt;/P&gt;&lt;P&gt;Ron / W4MMP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2015 12:24:33 GMT</pubDate>
    <dc:creator>ronaldpatton</dc:creator>
    <dc:date>2015-08-25T12:24:33Z</dc:date>
    <item>
      <title>I2C Primer</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396122#M2423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;(I am reposting this in a different area.&amp;nbsp; I am learning these forums).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am brand new to the Freescale product suite and Code Warrior.&amp;nbsp; I have inherited a project and the associated device which is a amateur radio device.&amp;nbsp; The device has several components, 1) MC9S08QG8CPBE, 2) A MCP3422 ADC and a KTM-s1201.&amp;nbsp; At any rate, the MCU communicates with the ADC via I2C.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone would be so kind as to point me in the right direction to Freescale I2c primer, I would be most appreciative. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The I2C source code included with the project is dated 8/2008.&amp;nbsp; This is pretty much a "down on the metal" type program.&amp;nbsp; Does Freescale have an I2C library I may link to?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//===================================================================&lt;BR /&gt;// MC9RS08KA8 IIC Subroutines&amp;nbsp; 8/24/2008&lt;BR /&gt;// Written by John H. Fisher - K5JHF&lt;BR /&gt;//===================================================================&lt;/P&gt;&lt;P&gt;#include "derivative.h"&lt;BR /&gt;#include "iic.h"&lt;/P&gt;&lt;P&gt;//===================================================================&lt;/P&gt;&lt;P&gt;void i2c_send ( char send ) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; IICD&amp;nbsp; = send; // master transmit;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while (!IICS_IICIF);&amp;nbsp;&amp;nbsp; // wait until IBIF;&lt;/P&gt;&lt;P&gt;&amp;nbsp; IICS_IICIF = 1; // clear the interrupt event flag;&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//===================================================================&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;73,&lt;/P&gt;&lt;P&gt;Ron / W4MMP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 12:24:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396122#M2423</guid>
      <dc:creator>ronaldpatton</dc:creator>
      <dc:date>2015-08-25T12:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Primer</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396123#M2424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;I suggest you refer HCS08QRUG. this package includes nearly all HCS08 Peripheral Modules demo code. IIC on QG8 is also included as a demo. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/user_guide/HCS08QRUGSW.zip" title="http://cache.freescale.com/files/microcontrollers/doc/user_guide/HCS08QRUGSW.zip"&gt;http://cache.freescale.com/files/microcontrollers/doc/user_guide/HCS08QRUGSW.zip&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/user_guide/HCS08QRUG.pdf" title="http://cache.freescale.com/files/microcontrollers/doc/user_guide/HCS08QRUG.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/user_guide/HCS08QRUG.pdf&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can this help you?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 02:46:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396123#M2424</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-08-26T02:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Primer</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396124#M2425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of CW do you use ?&amp;nbsp; You can use the Processor Expert on CW , it provides I2C driver.&lt;/P&gt;&lt;P&gt;For example CW10.6,&amp;nbsp; when you create project , please select "Processor Expert"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53133i23A5D986D90E96D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then add the SW_I2C component&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53187i90D436A3D9147A58/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then you can refer to the "Typical Usage" to configure , there have the I2C demo :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53235iD49EF4A0D15C49B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 02:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396124#M2425</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-08-26T02:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Primer</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396125#M2426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Yes, these are very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 02:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396125#M2426</guid>
      <dc:creator>ronaldpatton</dc:creator>
      <dc:date>2015-08-26T02:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Primer</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396126#M2427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is also very helpful, but how do I add this to an existing project (workspace)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 03:04:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396126#M2427</guid>
      <dc:creator>ronaldpatton</dc:creator>
      <dc:date>2015-08-26T03:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Primer</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396127#M2428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using code warrior 10.6 Special Edition.&lt;/P&gt;&lt;P&gt;I really need some help with the project I am working on.&amp;nbsp; I have followed the instructions and still can not find an acceptable solution.&lt;/P&gt;&lt;P&gt;I have created a new project that incorporated processor expert.&lt;/P&gt;&lt;P&gt;First when I select the processor type,&amp;nbsp; my specific chip is not included (MC9S08QGCPBE, which is the 16 pin version).&amp;nbsp; See screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2015-09-01 11.03.20_cr.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52957iE35AF79954F006AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2015-09-01 11.03.20_cr.jpg" alt="Screenshot 2015-09-01 11.03.20_cr.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, if I create a new project with out processor expert, the wizard allows me to select the proper chip.&amp;nbsp; Then I copy my source code into the project with the "add files" command.&amp;nbsp; This works.&amp;nbsp; However if I attempt to add any component via the Process Export menu,&amp;nbsp; the "add to project" is greyed out.&amp;nbsp; I can not add components to an existing project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would attach a zip file of the project if I knew how to attach files via this forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 15:24:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/I2C-Primer/m-p/396127#M2428</guid>
      <dc:creator>ronaldpatton</dc:creator>
      <dc:date>2015-09-01T15:24:58Z</dc:date>
    </item>
  </channel>
</rss>

