<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックUsing the MII -- am I missing something?</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-the-MII-am-I-missing-something/m-p/214940#M10818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I’m having trouble reading registers from the PHY on a Coldfire 5372. The PHY may or may not be relevant, but I'm accessing a Micrel KSZ8893MQL/MBL (Integrated 3-Port 10/100 Managed Switch with PHYs).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This chip provides access to registers through both an MII and an SMI (apparently a sort of "extended" MII that uses a subset of the MII protocol).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I prematurely thought that reading and writing to the MII and SMI ports for the network PHY were working – I saw the write functionality work, and (foolishly) thought that if writing data on that interface worked, that then reading on that interface would also work. I was wrong. Only writing to registers is working, but reading from registers isn’t returning any valid data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I’ve been trying to do due diligence in checking things before I asked you guys, but I’m about out of ideas. Here’s what I’ve tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;I checked to see if there was anything wrong with the commands that I was sending to read from the MII / SMI – I looked at the bits and from what I can see, it matches the spec perfectly. It clearly works for writing, but the reading is not quite working.&lt;/LI&gt;&lt;LI&gt;I tried reading from a whole host of registers (both MII and SMI), and none of them are returning valid data.&lt;/LI&gt;&lt;LI&gt;I tried using a spin loop to poll the data ready register to see if that ever triggers – it goes through the spin loop just fine – I’m not sure if something isn’t set correctly or what, because clearly the data isn’t there that I was expecting.&lt;/LI&gt;&lt;LI&gt;I tried switching interfaces, and reading from the MII rather than the SMI. This didn’t give me any different behavior. I also tried switching hardware, to a device that would use only the MII (with the SMI disabled) – that didn’t fix anything.&lt;/LI&gt;&lt;/OL&gt;&lt;SPAN&gt;Any ideas? It's odd to me that writing to registers is working but reading from them is not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance -- I'm new to using the MII, and could use some pointers as far as what I might try poking at next.&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;--clint&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Jan 2009 03:43:28 GMT</pubDate>
    <dc:creator>HanClinto</dc:creator>
    <dc:date>2009-01-10T03:43:28Z</dc:date>
    <item>
      <title>Using the MII -- am I missing something?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-the-MII-am-I-missing-something/m-p/214940#M10818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I’m having trouble reading registers from the PHY on a Coldfire 5372. The PHY may or may not be relevant, but I'm accessing a Micrel KSZ8893MQL/MBL (Integrated 3-Port 10/100 Managed Switch with PHYs).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This chip provides access to registers through both an MII and an SMI (apparently a sort of "extended" MII that uses a subset of the MII protocol).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I prematurely thought that reading and writing to the MII and SMI ports for the network PHY were working – I saw the write functionality work, and (foolishly) thought that if writing data on that interface worked, that then reading on that interface would also work. I was wrong. Only writing to registers is working, but reading from registers isn’t returning any valid data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I’ve been trying to do due diligence in checking things before I asked you guys, but I’m about out of ideas. Here’s what I’ve tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;I checked to see if there was anything wrong with the commands that I was sending to read from the MII / SMI – I looked at the bits and from what I can see, it matches the spec perfectly. It clearly works for writing, but the reading is not quite working.&lt;/LI&gt;&lt;LI&gt;I tried reading from a whole host of registers (both MII and SMI), and none of them are returning valid data.&lt;/LI&gt;&lt;LI&gt;I tried using a spin loop to poll the data ready register to see if that ever triggers – it goes through the spin loop just fine – I’m not sure if something isn’t set correctly or what, because clearly the data isn’t there that I was expecting.&lt;/LI&gt;&lt;LI&gt;I tried switching interfaces, and reading from the MII rather than the SMI. This didn’t give me any different behavior. I also tried switching hardware, to a device that would use only the MII (with the SMI disabled) – that didn’t fix anything.&lt;/LI&gt;&lt;/OL&gt;&lt;SPAN&gt;Any ideas? It's odd to me that writing to registers is working but reading from them is not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance -- I'm new to using the MII, and could use some pointers as far as what I might try poking at next.&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;--clint&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jan 2009 03:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-the-MII-am-I-missing-something/m-p/214940#M10818</guid>
      <dc:creator>HanClinto</dc:creator>
      <dc:date>2009-01-10T03:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using the MII -- am I missing something?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-the-MII-am-I-missing-something/m-p/214941#M10819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Clint&lt;BR /&gt;&lt;BR /&gt;A couple of quick ideas:&lt;BR /&gt;- Have you a pull up on the MII input data line? I believe the PHY output is open drain so may require one to be able to be read.&lt;BR /&gt;- What value are you reading? Generally all registers of a non-responding PHY will be read as 0xffff&lt;BR /&gt;- Are you sure that you can write? PHYs often have a default configuration which is adequate for basic operation without any successful writes.&lt;BR /&gt;- Are you sure that you are reading from the correct PHY address? This is hardwired when powered up (read in on some inputs).&lt;BR /&gt;&lt;BR /&gt;See also the following -it is not for your chip but maybe has something of interest:&lt;BR /&gt;&lt;A href="http://www.utasker.com/forum/index.php?topic=161.0" rel="nofollow" target="_blank"&gt;http://www.utasker.com/forum/index.php?topic=161.0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_blank"&gt;www.uTasker.com&lt;/A&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2009 11:21:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-the-MII-am-I-missing-something/m-p/214941#M10819</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2009-01-11T11:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using the MII -- am I missing something?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-the-MII-am-I-missing-something/m-p/214942#M10820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a very similar problem reading from the PHY on my 5372 as well. I would be very curious to&amp;nbsp;know how this got resolved, if it has been. Following up on Mark's post, I do have a pull up on the data line and (like Clint) am also able to write, but have, thus far, been unable to successfully read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;HanClinto rules!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 04:04:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Using-the-MII-am-I-missing-something/m-p/214942#M10820</guid>
      <dc:creator>msm516</dc:creator>
      <dc:date>2009-02-25T04:04:31Z</dc:date>
    </item>
  </channel>
</rss>

