<?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>LPCXpresso IDE中的主题 Re: Debug I2C</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-I2C/m-p/529848#M1685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Superfred on Thu May 17 08:53:22 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi l3fos,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found one problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your code you set the I2C slave address to 0x00(I2CMasterBuffer[0]).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The eDIP 160 I2C address depends on the BA and SA pins, and 00 is invalid, check datasheet page 7. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If all pins are open, 0xDE is the correct address&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:15:53 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:15:53Z</dc:date>
    <item>
      <title>Debug I2C</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-I2C/m-p/529847#M1684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by l3fos on Thu May 17 08:03:49 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it is my first time trying to work with this architecture and the LPCXpresso environment. I used to work with a more classical Code Warrior and the Freescale ÂµCs. Long story short, I am trying to us an LPC11C24 to read a CAN interface and send the signal values to an eDIP 160 using the I2C interface. Sadly I do not have an oscilloscope or logic analyzer handy right now so I am hoping some of you out there who have experience with using the serial interrupts on these boards can help me. I started out simply just modifying the I2C example to see if I can communicate with the display at all. The display uses its own "small" protocoll which an be found here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lcd-module.de/fileadmin/eng/pdf/grafik/edip160-7e.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the source code as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Write SLA(W), address and one data byte */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2CWriteLength = 7;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2CReadLength = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2CMasterBuffer[0] = 0x00;/* address */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; bcc = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2CMasterBuffer[1]=0x11; //DC1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2CMasterBuffer[2]=0x03; //length&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2CMasterBuffer[3]=0x1B; //ESC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2CMasterBuffer[4]=0x44; //D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2CMasterBuffer[5]=0x4C; //L&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; bcc = 0xBF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2CMasterBuffer[6]=bcc;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2CEngine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which should simply clear the screen for me. The dev board of the display has indicator LEDs for the I2C communication so I know that something is being sent on the bus. I set a break point in the debugger right before the I2CEngine() command to see what the Buffer variable looked like, and it seems strange. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I hover over the variable i get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I2CMasterBuffer="\000\021\003\033DL\277"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see that it changes hex to oct apparently for debugging, but what is up with the D and the L. Is that correct? I cannot for the life of me figure out why the display isn't accepting my commands. I never had these problems using SPI on the freescales, maybe I should try SPI here, but I figured if any of you have any insights of what I might be doing wrong, I might as well learn something new =)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L3FOS&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:15:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-I2C/m-p/529847#M1684</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Debug I2C</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-I2C/m-p/529848#M1685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Superfred on Thu May 17 08:53:22 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi l3fos,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found one problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your code you set the I2C slave address to 0x00(I2CMasterBuffer[0]).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The eDIP 160 I2C address depends on the BA and SA pins, and 00 is invalid, check datasheet page 7. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If all pins are open, 0xDE is the correct address&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:15:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-I2C/m-p/529848#M1685</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Debug I2C</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-I2C/m-p/529849#M1686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by l3fos on Thu May 17 09:08:23 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Fred,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually had the pins set so the slave was at 0x10, but that was the mistake, I guess I was just looking at the wrong line. Thank you for the quick response, it always helps to have a second set of eyes =)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L3FOS&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Debug-I2C/m-p/529849#M1686</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:15:54Z</dc:date>
    </item>
  </channel>
</rss>

