Difference between revisions of "Ethernet"

From ElectroDragon
Jump to navigation Jump to search
(Schematic)
(Redirected page to Category:Ethernet)
(Tag: New redirect)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
#redirect [[category:Ethernet]]
== ENC28J60 Breakout ==
 
=== Pin definition  ===
 
 
 
{|class="wikitable"
 
|-
 
|width="100px"| 1  CS
 
|width="100px"| 2  RST
 
|-
 
|3  SI
 
|4  SCK
 
|-
 
|5  INT
 
|6  SO
 
|-
 
|7  NC
 
|8  CLK
 
|-
 
|9  VIN / VCC
 
|10 GND
 
|}
 
 
 
 
 
== Use with Arduino ==
 
* Wiring
 
[[File:172004eierrfwri9xsfamq-1.jpg|thumbnail]]
 
 
 
=== Arduino as Ethernet Web Server ===
 
 
 
* Download the ENC28J60 library. Unzip the library to IDE library.<br />
 
* Connect the ENC28J60 Mini Ethernet Module to Arduino, notice the switch is choosing 3.3V or 5V. The IO as below: CS - 10 , SI - 11 , SO - 12 , SCK - 13
 
* Select the IDE arduino-xxx/example/etherShield/etherShield_webserver.<br />
 
 
 
* Plugin the USB to Arduino , and then input the IP such as : http://192.168.1.15/. It will show as below informaion.<br />
 
 
 
<gallery>
 
File:BK ENC28J60 07.jpg
 
File:BK ENC28J60 08.jpg
 
</gallery>
 
 
 
 
 
== Schematic ==
 
<gallery>
 
File:ENC28J60_Ethernet_Module_schematic.jpg | W5100 SCH 01
 
File:W5100_SCH.png | W5100 mini sch 02
 
File:LAN8720A_SCH.png | LAN8720A SCH
 
File:LAN8720_for_ESP32.png | LAN8720 for ESP32 SCH
 
</gallery>
 
 
 
== Demo Code ==
 
 
 
* [[:File:UIP_0.9_51_ENC28J60.zip|Demo Code With 51]] (Tested with STC89LE516RD+)
 
* [[:File:Mega64_with_en28j60.zip|Demo Code with AVR mega64]]
 
* [[:File:STM32_ENC28J60.zip|Demo Code with Stm32]], Works with STM32F103VB, wiring: NSS<->PD9,SCK<->PA5,MISO<->PA6,MOSI<->PA7
 
* [[:File:ENC28J60_Ethernet_Module_And_Demo_CodesTCPIPstack.zip|Arduino Ethershield Library]]
 
* [[File:EtherShield.zip|Ethernet Shield Arduino Library]]
 
* Tutorial [[http://www.electrodragon.com/?p=1112 |here]].
 
 
 
== Pending ==
 
* DM9000CEP
 
* DM9161AEP
 
* RTL8201CP-VD-LF 10/100m - 2.2
 
 
 
== LAN8720 Ethernet with ESP ==
 
* Make menu config animation see here.  http://www.electrodragon.com/w/File:Makemenu_lan8720.gif
 
Jumper setup
 
* ESP32 IO0  to CLK pin - default closed (connected)
 
* 10K pull up to CLK pin - default open
 
* ESP32 IO17 three-way jumper - default open (not used)
 
{| class="wikitable sortable" align = "right"
 
|-
 
! Description !! Connection !! Devkitc-left side !! Devkitc-right side !! Connection !! Description
 
|-
 
| - || 3.3V || 3.3V || GND2 || - || -
 
|-
 
| -|| -|| EN || IO23 || MDC || -
 
|-
 
| -|| -|| SVP || IO22 || TXD1 || -
 
|-
 
| -|| - || SVN || TXD0 || - || -
 
|-
 
| -|| -|| IO34 || RXD0 || - || -
 
|-
 
| -|| -|| IO35 || IO21 || TX_EN || -
 
|-
 
| -|| -|| IO32 || GND3 || GND || -
 
|-
 
| -|| -|| IO33 || IO19 || TXD0 || -
 
|-
 
| -|| RXD0 || IO25 || IO18 || MDIO || -
 
|-
 
| -|| RXD1 || IO26 || IO5 || - || -
 
|-
 
| -|| CRS_DV || IO27 || IO17 || PHY_PWR || control the ON/OFF of the crystal power
 
|-
 
| -|| -|| IO14 || IO16 || - || -
 
|-
 
| -|| -|| IO12 || IO4 || - || -
 
|-
 
| -|| GND || GND || IO0 || CLK || crystal clock pin
 
|-
 
| -|| -|| IO13 || IO2 || - || -
 
|-
 
| -|| -|| SD2 || IO15 || - || -
 
|-
 
| -|| -|| SD3 || SD1 || - || -
 
|-
 
| -|| -|| CMD || SD0 || - || -
 
|-
 
| -|| -|| 5V || CLK || - || -
 
 
 
|}
 
 
 
 
 
 
 
[[category:Ethernet]]
 

Latest revision as of 23:56, 15 June 2020

Redirect to: