LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org


jjf 2011-02-20
A cheap AVR Board with ATmega32 and ENC28J60
The ENC28J60 is a Ethernet MAC+PHY, connected serial (spi) to the AVR
4 A/D channels
4 TTL-inputs
8 TTL-outputs

Ethernet response time test with ping

jjf@nb8:~$ ping -c 20
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=64 time=1.07 ms
64 bytes from icmp_req=19 ttl=64 time=1.11 ms
64 bytes from icmp_req=20 ttl=64 time=1.09 ms
--- ping statistics ---
20 packets transmitted, 20 received, 0% packet loss, time 19024ms
rtt min/avg/max/mdev = 1.075/1.087/1.114/0.041 ms
The picture shows the timing
yellow: eth-rx, green eth-tx
blue: spi-clk, magenta:spi-cs
End-tx to start-rx: 770Ás
Spi-cs high: 44Ás (calculation of ping response)
Spi-clk: 4MHz

Spi connected eth maybe to slow for realtime ethernet.


With the original firmware telnet <ip> 50290 works (see link 3)
Commands: getip, getmask getgw, getport 1, etc.


 [1] http://www.pollin.de/shop/downloads/D810058B.PDF (schematics on page 7) 
[2] http://www.pollin.de/shop/dt/MTQ5OTgxOTk-/Bausaetze_Module/Bausaetze/Bausatz_AVR_NET_IO.html
[3] http://www.gtkdb.de/index_18_1032.html

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited February 20, 2011 6:42 am by Jjf (diff)
Published under a Creative Commons License