<?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 Re: I2C Help in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134373#M1447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Sorry, i'm trying to write/read a 24LC16 i2c eeprom. A very simple device to work.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 15:11:37 GMT</pubDate>
    <dc:creator>jesconsa</dc:creator>
    <dc:date>2007-05-22T15:11:37Z</dc:date>
    <item>
      <title>I2C Help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134370#M1444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Hello, I'm still trying with I2C routines that i have seen here in the forum and i'm still haven't got so much success. I'm NOT working with uTasker, perhaps with uTasker is easier but in a first time i want to get it by programming. I could write 1 or 2 bytes (but not more at the same time) on a i2c eeprom with DrSeuss routine (Thanks!): &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fforums.freescale.com%2Ffreescale%2Fboard%2Fmessage%3Fboard.id%3DCFCOMM%26view%3Dby_date_ascending%26message.id%3D270%26fsrch%3D1" rel="nofollow" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;view=by_date_ascending&amp;amp;message.id=270&amp;amp;fsrch=1&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;. The more strange is that i have seen all data in the oscilloscope so it might be fine,...when i read the eeprom with a reader (hardware) i only see 1 or 2 bytes (from 4 or 5 that i'm trying to write)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried with the tecnova_i2c routine (interrupt driven) that comes with Niche Lite stack but the program hangs sending many bytes towards the serial port.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have studied the datasheet of the MCF52233 but i see all the routines i have used are OK. What is wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Why i'm not able to write more than 1 or 2 bytes in the first routine?, perhaps some other interrupt is avoiding for that?.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jesus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 22:56:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134370#M1444</guid>
      <dc:creator>jesconsa</dc:creator>
      <dc:date>2007-05-21T22:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134371#M1445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;From your email it is not clear which peripheral devices you are trying to R/W.&amp;nbsp; I use the MCF5475 with the I2C&lt;BR /&gt;&amp;nbsp;to talk to a real time clock and an A/D.&amp;nbsp; You may want to review a generalized tutorial on the I2c bus.&amp;nbsp;&lt;BR /&gt;In general when you read from the device:&lt;BR /&gt;Do a write of address to peripheral&lt;BR /&gt;Then to read data:&lt;BR /&gt;Enable the Acknowledge,&lt;BR /&gt;Put the I2C Master in RX mode&lt;BR /&gt;Usually you have to do some type of dummy read of the IBDR&lt;BR /&gt;Then receive your data&lt;BR /&gt;When the transfer is complte, clear the I2SR flag&lt;BR /&gt;Disable Acknowledge...generate stop&lt;BR /&gt;Restore I2C master to idle state&lt;BR /&gt;&lt;BR /&gt;If you could post the code you are using I or someone else probably could help more....&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 03:58:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134371#M1445</guid>
      <dc:creator>Marreshe</dc:creator>
      <dc:date>2007-05-22T03:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134372#M1446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for Reply. I'm trying with DrSeuss routine:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;view=by_date_ascending&amp;amp;message.id=270&amp;amp;fsrch=1" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;view=by_date_ascending&amp;amp;message.id=270&amp;amp;fsrch=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I understand very well the i2c protocol, i have done drivers for others processors, but with coldfire and so many interrupt handlers and variables it's a bit crazy . So thanks for the advice, &lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;. I am working with M52233DEMO board and Niche Lite stack.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Marreshe wrote:&lt;BR /&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;From your email it is not clear which peripheral devices you are trying to R/W.&amp;nbsp; I use the MCF5475 with the I2C&lt;BR /&gt;&amp;nbsp;to talk to a real time clock and an A/D.&amp;nbsp; You may want to review a generalized tutorial on the I2c bus.&amp;nbsp;&lt;BR /&gt;In general when you read from the device:&lt;BR /&gt;Do a write of address to peripheral&lt;BR /&gt;Then to read data:&lt;BR /&gt;Enable the Acknowledge,&lt;BR /&gt;Put the I2C Master in RX mode&lt;BR /&gt;Usually you have to do some type of dummy read of the IBDR&lt;BR /&gt;Then receive your data&lt;BR /&gt;When the transfer is complte, clear the I2SR flag&lt;BR /&gt;Disable Acknowledge...generate stop&lt;BR /&gt;Restore I2C master to idle state&lt;BR /&gt;&lt;BR /&gt;If you could post the code you are using I or someone else probably could help more....&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 15:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134372#M1446</guid>
      <dc:creator>jesconsa</dc:creator>
      <dc:date>2007-05-22T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134373#M1447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Sorry, i'm trying to write/read a 24LC16 i2c eeprom. A very simple device to work.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 15:11:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134373#M1447</guid>
      <dc:creator>jesconsa</dc:creator>
      <dc:date>2007-05-22T15:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134374#M1448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Since you say you have written many drivers, have you tried using polled mode (not interrupt driven)?&lt;BR /&gt;Have you tried writing this as a stand alone application...ie no other drivers on the I2C?&lt;BR /&gt;Aslo is the speed you are using too fast for the peripheral&lt;BR /&gt;&lt;BR /&gt;Also a problem that I had was the I2C worked really well until I installed an Ethernet driver. The problem was the Ethernet driver over wrote certain setting on the GPIO port, causing the I2C to cease to function. I went in and altered the GPIO settings and all worked well.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 11:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/I2C-Help/m-p/134374#M1448</guid>
      <dc:creator>Marreshe</dc:creator>
      <dc:date>2007-05-29T11:20:51Z</dc:date>
    </item>
  </channel>
</rss>

