<?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>CodeWarrior for MCU中的主题 Re: I2C and Processor Expert</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/I2C-and-Processor-Expert/m-p/135569#M1728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;It seems that your problem could be caused by three following misunderstandings:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- the EI2C1_RecvBlock method has 3 parameters, not 2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- 0xC000 is from FLASH memory in default setting and therefore you didn't receive any data&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- possible incorrect usage of EI2C_RecvBlock method, this method receives a block of 3 bytes size, not 3 blocks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I hope this help you&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Best Regards, Jan Pospisilik, Processor Expert Support&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 May 2006 12:56:48 GMT</pubDate>
    <dc:creator>ProcessorExpert</dc:creator>
    <dc:date>2006-05-23T12:56:48Z</dc:date>
    <item>
      <title>I2C and Processor Expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/I2C-and-Processor-Expert/m-p/135568#M1727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 2;"&gt;I am relatively new to micro-controllers and having trouble with my first I2C application. I am using a MC9S1C32 processor to communicate with an external capacitance to digital Converter (AD7746). I have the micro correctly hooked up to the data/clock lines of the converter, and the I2C bean added in my project. I am using code warrior 5.5.1272 and processor expert 2.95. In the I2C bean settings, I entered in the slave address 72 which is specified in the AD7746 datasheet. I believe my problems are in the way I am trying to call the functions generated by the I2C bean.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 2;"&gt;Currently my I2C code is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 2;"&gt;EI2C1_SendChar(0x01); //Send x01 over I2C to set sub address register of converter to 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 2;"&gt;EI2C1_RecvBlock( 0xC000, 3); //Receive 3 blocks of data from the converter, store starting at address C000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 2;"&gt;That code then gets repeated every second.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 2;"&gt;When I look at address C000 with the debugger, the values never change from zero (I have a small capacitor hooked up to the converter capacitance measurement channel). I viewed the data/clock lines with a scope to verify messages where being send, and I was seeing serial like communication.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 2;"&gt;Also the AD7746 external ready pin never changes when viewed with a scope. So I believe another problem is I never "say go".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 2;"&gt;Anyone have any help, pointers?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 2;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2006 02:25:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/I2C-and-Processor-Expert/m-p/135568#M1727</guid>
      <dc:creator>Royjr</dc:creator>
      <dc:date>2006-05-11T02:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: I2C and Processor Expert</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/I2C-and-Processor-Expert/m-p/135569#M1728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;It seems that your problem could be caused by three following misunderstandings:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- the EI2C1_RecvBlock method has 3 parameters, not 2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- 0xC000 is from FLASH memory in default setting and therefore you didn't receive any data&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- possible incorrect usage of EI2C_RecvBlock method, this method receives a block of 3 bytes size, not 3 blocks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I hope this help you&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Best Regards, Jan Pospisilik, Processor Expert Support&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 12:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/I2C-and-Processor-Expert/m-p/135569#M1728</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2006-05-23T12:56:48Z</dc:date>
    </item>
  </channel>
</rss>

