<?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のトピックRe: QE128 I2C Slave</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165160#M10380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done some experimenting with the QE frequency divider register and found a setting that seems to work.&amp;nbsp; I think the QE (Slave in TX mode) was preventing the 52259 from clocking.&lt;/P&gt;&lt;P&gt;With the new IIC2F﻿setting, the two processors have been communicating for about an hour (two packets per second) without a stall.&amp;nbsp; Can you advise how to determine the proper settings for the Slave, given the settings for the Master?&amp;nbsp; It is working, but only by stumbling on a setting that worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Sep 2011 01:10:42 GMT</pubDate>
    <dc:creator>jconrad</dc:creator>
    <dc:date>2011-09-10T01:10:42Z</dc:date>
    <item>
      <title>QE128 I2C Slave</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165157#M10377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a project where a QE128 processor is an I2C slave to an MCF52259 MQX master.&amp;nbsp; The QE must accept one byte of address (index) and either read (back to the master) or write an array of control bytes.&amp;nbsp; I am currently using the Example 13.6 from Fabio's book, modified to do only Slave and operate in polled mode within the QE main loop.&amp;nbsp; Scoping the I2C lines shows the Slave Address being ACK'd but the index NAK'd.&amp;nbsp; If I have the debugger active on the QE, it halts with an illegal BP.&amp;nbsp; Can you point me in the right direction?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 23:39:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165157#M10377</guid>
      <dc:creator>jconrad</dc:creator>
      <dc:date>2011-09-06T23:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: QE128 I2C Slave</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165158#M10378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the Illegal Breakpoint problem.&amp;nbsp; The I had not sufficiently modified the example code.&amp;nbsp; The interrupts were enabled for the the I2C even though I was operating in polling mode.&amp;nbsp; Communication now takes place between the MCF52259 Master and the QE128 Slave... some of the time.&lt;/P&gt;&lt;P&gt;If I use the command line interface (part of the 52259 project) to "manually" read from&amp;nbsp; the QE128 Slave, it works fairly well.&amp;nbsp; But if I have a periodic automatic read (about 1/sec) eventually the communication hangs with the MQX routine mcf52xx_i2c_polled_rx_tx spinning on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i2csr = i2c_ptr-&amp;gt;I2SR;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } while (0 == (i2csr &amp;amp; MCF52XX_I2C_I2SR_IIF));&lt;BR /&gt;﻿I have scoped the SDA and SCL lines and when the hang occurs, stopped both processors.&amp;nbsp; I have found that the SDA line may be either hig or low, but the SCL is always low and can only be cleared by DISABLING the QE128 I2C.&amp;nbsp; The QE128 I2C control register is showing TX mode which is reasonable, since at the time it is sending requested data back to the Master.&amp;nbsp; But why has the QE128 taken over the SCL line which should be under the exclusive control of the Master?&amp;nbsp; Please help with this as it is critical to release of a product that these devices communicate reliably!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 22:29:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165158#M10378</guid>
      <dc:creator>jconrad</dc:creator>
      <dc:date>2011-09-09T22:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: QE128 I2C Slave</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165159#M10379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/I%C2%B2C#Clock_stretching_using_SCL" rel="nofollow" target="_blank"&gt;http://en.wikipedia.org/wiki/I%C2%B2C#Clock_stretching_using_SCL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since QE was in TX mode and assuming that code is mostly right, probably master was&amp;nbsp;reading from slave and for some reason your QE code didn't write IIC data register.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 01:03:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165159#M10379</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-09-10T01:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: QE128 I2C Slave</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165160#M10380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done some experimenting with the QE frequency divider register and found a setting that seems to work.&amp;nbsp; I think the QE (Slave in TX mode) was preventing the 52259 from clocking.&lt;/P&gt;&lt;P&gt;With the new IIC2F﻿setting, the two processors have been communicating for about an hour (two packets per second) without a stall.&amp;nbsp; Can you advise how to determine the proper settings for the Slave, given the settings for the Master?&amp;nbsp; It is working, but only by stumbling on a setting that worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 01:10:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165160#M10380</guid>
      <dc:creator>jconrad</dc:creator>
      <dc:date>2011-09-10T01:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: QE128 I2C Slave</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165161#M10381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FIrst it would be interesting if you shared that setting with us.&lt;/P&gt;&lt;P&gt;It is possible that the I2C module does this in slave mode so you have time to process the byte / send the next byte, and is waiting for some status bit to be set so it continues on and lets go of the clock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is also "unusual" that you are doing this in polled mode, I say that because all the examples I have seen for slave are interrupt driven, and probably do &amp;nbsp;not see this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 02:22:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QE128-I2C-Slave/m-p/165161#M10381</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2011-09-10T02:22:37Z</dc:date>
    </item>
  </channel>
</rss>

