<?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: New Ethernet Interface KSZ8051RNL in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/New-Ethernet-Interface-KSZ8051RNL/m-p/535909#M4836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ashgupta28 on Tue Dec 09 01:50:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also using custom board with LPC18xx with KSZ8863RLL. I am trying to read &amp;amp; write PHY registers. Actually I am using CLOCK MODE &amp;amp; MDIO SMII Mode (RMII mode) to access registers. I guess as per the MII format, only 5bit register address &amp;amp; 5 bit Phy address can be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using 25MHZ crystal populated at X1 &amp;amp; X2 at PHY switch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT I AM GETTING GARBAGE VALUES WHILE READING THESE KSZ8863RLL REGISTERS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HERE ARE THE STEPS I AM FOLLOWING:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.Configure the LPC processor clock &amp;amp; enabled the RMII interface of LPC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.Configure the PHY address PHY 1( this configuration helps to create the RMII frame format and adding the PHY address 0x01 in PHY address Bits[4:0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.As per our set up, LPC processor is receiving 50MHz reference clock.(Please correct me if I am wrong). So what settings need to be in done in LPC as per clock. I have selected CLK_M3_ETHERNET/102&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4.After that I tried to read MII_PHYSID1(0x02) &amp;amp; MII_PHYSID2(0x03) with PHY address 0x01. It will return only 16bit data (should return 0x0022 &amp;amp; 0x1430) as per the format. But I receive only the garbage value. Also I tried to connect the LAN cable at port 1 &amp;amp; tried to read the MII_BMSR to check the LINK up or down but the value I am reading is 0x0000 every time. The LEDs &amp;amp; LINK LEDs blinks properly after connecting the cable but still I am getting 0x00 value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (lpc_mii_read(0x00, &amp;amp;tmp) != SUCCESS) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return ERROR;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have selected PHY address 1 &amp;amp; trying to read 0x00 register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lpc_read_read is actually configuring the packet as per the datasheet &amp;amp; sending to Micrel chip&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:11:26 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:11:26Z</dc:date>
    <item>
      <title>New Ethernet Interface KSZ8051RNL</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/New-Ethernet-Interface-KSZ8051RNL/m-p/535906#M4833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Luis Digital on Tue Sep 28 12:39:41 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The KSZ8051RNL is a new Ethernet interface, is very inexpensive and includes the 4 resistors of 49.9 ohms. The only problem is that is bigger and take more PCB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It&amp;nbsp; would be great NXP chips include this interface, would be a great saving&amp;nbsp; money, space, and would end the problems of compatibility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:11:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/New-Ethernet-Interface-KSZ8051RNL/m-p/535906#M4833</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: New Ethernet Interface KSZ8051RNL</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/New-Ethernet-Interface-KSZ8051RNL/m-p/535907#M4834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by UlfZiemann on Wed Oct 20 05:25:10 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The KSZ8051RNL supports RMII: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.micrel.com/_PDF/Ethernet/ksz8051_pb.pdf&lt;/A&gt;&lt;SPAN&gt; as an interface to the microcontroller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The LPC1758 from NXP supports RMII, too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do you see a problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ulf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:11:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/New-Ethernet-Interface-KSZ8051RNL/m-p/535907#M4834</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: New Ethernet Interface KSZ8051RNL</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/New-Ethernet-Interface-KSZ8051RNL/m-p/535908#M4835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Luis Digital on Wed Oct 20 06:10:41 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: UlfZiemann&lt;/STRONG&gt;&lt;BR /&gt;The KSZ8051RNL supports RMII: &lt;A href="http://"&gt;http://www.micrel.com/_PDF/Ethernet/ksz8051_pb.pdf&lt;/A&gt; as an interface to the microcontroller.&lt;BR /&gt;&lt;BR /&gt;The LPC1758 from NXP supports RMII, too.&lt;BR /&gt;&lt;BR /&gt;Where do you see a problem?&lt;BR /&gt;&lt;BR /&gt;Ulf&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I said:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only problem is that is bigger and take more PCB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This chip also has more pins, and control signals that need resistance. So in the end saving money is not. Significant savings could be ARM chips with Ethernet, as is standard for other manufacturers such as Microchip.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:11:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/New-Ethernet-Interface-KSZ8051RNL/m-p/535908#M4835</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: New Ethernet Interface KSZ8051RNL</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/New-Ethernet-Interface-KSZ8051RNL/m-p/535909#M4836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ashgupta28 on Tue Dec 09 01:50:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also using custom board with LPC18xx with KSZ8863RLL. I am trying to read &amp;amp; write PHY registers. Actually I am using CLOCK MODE &amp;amp; MDIO SMII Mode (RMII mode) to access registers. I guess as per the MII format, only 5bit register address &amp;amp; 5 bit Phy address can be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using 25MHZ crystal populated at X1 &amp;amp; X2 at PHY switch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT I AM GETTING GARBAGE VALUES WHILE READING THESE KSZ8863RLL REGISTERS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HERE ARE THE STEPS I AM FOLLOWING:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.Configure the LPC processor clock &amp;amp; enabled the RMII interface of LPC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.Configure the PHY address PHY 1( this configuration helps to create the RMII frame format and adding the PHY address 0x01 in PHY address Bits[4:0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.As per our set up, LPC processor is receiving 50MHz reference clock.(Please correct me if I am wrong). So what settings need to be in done in LPC as per clock. I have selected CLK_M3_ETHERNET/102&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4.After that I tried to read MII_PHYSID1(0x02) &amp;amp; MII_PHYSID2(0x03) with PHY address 0x01. It will return only 16bit data (should return 0x0022 &amp;amp; 0x1430) as per the format. But I receive only the garbage value. Also I tried to connect the LAN cable at port 1 &amp;amp; tried to read the MII_BMSR to check the LINK up or down but the value I am reading is 0x0000 every time. The LEDs &amp;amp; LINK LEDs blinks properly after connecting the cable but still I am getting 0x00 value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (lpc_mii_read(0x00, &amp;amp;tmp) != SUCCESS) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return ERROR;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have selected PHY address 1 &amp;amp; trying to read 0x00 register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lpc_read_read is actually configuring the packet as per the datasheet &amp;amp; sending to Micrel chip&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:11:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/New-Ethernet-Interface-KSZ8051RNL/m-p/535909#M4836</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:11:26Z</dc:date>
    </item>
  </channel>
</rss>

