EmbeddedRelated.com
Forums
Memfault Beyond the Launch

ATmega 128 + driver ENC28j60

Started by rf_xport August 1, 2006
Hi,

I have a ATMega128 and I want to connect it to internet.

I want to use ENC28j60 as ethernet controller( MAC&PHY ethernet) because
it has SPI.

I have bought a evaluation board (AT90EIT1) from Atmel and it is really a
webserver and is contained ATMega103 and CS8900(an Ethernet
controller)...

Modular TCP/IP source code for AVR family is on CD of this evaluation
board . But its ethernet.c file is written to interface with CS8900.

Can any body help me to change this file to interface with ENC28j60?

As I am in hurry, I will be so thankful if you reply me as soon as
possible.

-thanks. 

Ask this question on the avrfreaks.net forum

rf_xport wrote:

> Hi, > > I have a ATMega128 and I want to connect it to internet. > > I want to use ENC28j60 as ethernet controller( MAC&PHY ethernet) because > it has SPI. > > I have bought a evaluation board (AT90EIT1) from Atmel and it is really a > webserver and is contained ATMega103 and CS8900(an Ethernet > controller)... > > Modular TCP/IP source code for AVR family is on CD of this evaluation > board . But its ethernet.c file is written to interface with CS8900. > > Can any body help me to change this file to interface with ENC28j60? > > As I am in hurry, I will be so thankful if you reply me as soon as > possible. > > -thanks.
just got off a page about the ENC28j60 and interfacing to Atmel chips. there may be something there to help you. Don... -- Don McKenzie E-Mail Contact Page: http://www.dontronics.com/e-mail.html USB-AVR-ISP Programmer http://www.dontronics-shop.com/product.php?productid=16488 Micro,TTL,USB to 1.5" color LCD http://www.dontronics.com/micro-lcd.html USB,RS232 or TTL to VGA Monitor http://www.dontronics.com/micro-vga.html
Don McKenzie wrote:
> rf_xport wrote: > >> Hi, >> >> I have a ATMega128 and I want to connect it to internet. >> >> I want to use ENC28j60 as ethernet controller( MAC&PHY ethernet) because >> it has SPI. >> >> I have bought a evaluation board (AT90EIT1) from Atmel and it is really a >> webserver and is contained ATMega103 and CS8900(an Ethernet >> controller)... >> >> Modular TCP/IP source code for AVR family is on CD of this evaluation >> board . But its ethernet.c file is written to interface with CS8900. >> >> Can any body help me to change this file to interface with ENC28j60? >> >> As I am in hurry, I will be so thankful if you reply me as soon as >> possible. >> >> -thanks. > > just got off a page about the ENC28j60 and interfacing to Atmel chips. > there may be something there to help you. > > Don... > > >
do you have a link perhaps ? I'm building a TCP/IP stack for 16F877 in JAL, and have some weird problems, (see also weird tricks in uChip's TCP/IP stack) so I'm interested in every solution to get the ENC28J60 working correctly. cheers, Stef Mientki
Stef Mientki wrote:

> Don McKenzie wrote: > >> rf_xport wrote: >> >>> Hi, >>> >>> I have a ATMega128 and I want to connect it to internet. >>> >>> I want to use ENC28j60 as ethernet controller( MAC&PHY ethernet) because >>> it has SPI. >>> >>> I have bought a evaluation board (AT90EIT1) from Atmel and it is >>> really a >>> webserver and is contained ATMega103 and CS8900(an Ethernet >>> controller)... >>> >>> Modular TCP/IP source code for AVR family is on CD of this evaluation >>> board . But its ethernet.c file is written to interface with CS8900. >>> >>> Can any body help me to change this file to interface with ENC28j60? >>> >>> As I am in hurry, I will be so thankful if you reply me as soon as >>> possible. >>> >>> -thanks. >> >> >> just got off a page about the ENC28j60 and interfacing to Atmel chips. >> there may be something there to help you. >> >> Don... >> >> >> > do you have a link perhaps ? > > I'm building a TCP/IP stack for 16F877 in JAL, > and have some weird problems, (see also weird tricks in uChip's TCP/IP > stack) > so I'm interested in every solution to get the ENC28J60 working correctly. > > cheers, > Stef Mientki
apologies Stef, didn't post the link, did I? :-) here tis: http://tuxgraphics.org/electronics/200606/article06061.shtml Don... -- Don McKenzie E-Mail Contact Page: http://www.dontronics.com/e-mail.html USB-AVR-ISP Programmer http://www.dontronics-shop.com/product.php?productid=16488 Micro,TTL,USB to 1.5" color LCD http://www.dontronics.com/micro-lcd.html USB,RS232 or TTL to VGA Monitor http://www.dontronics.com/micro-vga.html
I download these file from
http://tuxgraphics.org/electronics/200606/article06061.shtml, and
compile them with Imagecraft in widows XP environment.

In compiling I encounter with some errors, because it can't find some
header files. for example <avr/io.h>, <avr/interrupt.h>..

I think these files shall be compiled in Linux environment. Is it true?
can you suggest me a source code that can be compiled with Imagecraft?

I am eagrly waiting for your answer.

In article <1154602218.817720.17610@i3g2000cwc.googlegroups.com>,
 "xport_google" <mona.fathollahi@gmail.com> wrote:

> I download these file from > http://tuxgraphics.org/electronics/200606/article06061.shtml, and > compile them with Imagecraft in widows XP environment. > > In compiling I encounter with some errors, because it can't find some > header files. for example <avr/io.h>, <avr/interrupt.h>.. > > I think these files shall be compiled in Linux environment. Is it true? > can you suggest me a source code that can be compiled with Imagecraft?
Considering you started with a Linux-oriented project, that Imagecraft AVR tools are not available for Linux, maybe you ought to use the tools the project was developed under? Not talking about Linux but avr-gcc. http://winavr.sourceforge.net/ is about as painless as it gets.
I am wondering if you still have questions about the ENC28J60? If so you
can ask me, I am the designer of that device, every gate inside that IC was
made by me, even the addidition of the "Elvis" on the silicon wafer.

I would love to help anyone using this device, you can email me now at
adam.white32@gmail.com as I am no longer working at Microchip.

-Adam

> >Hi, > >I have a ATMega128 and I want to connect it to internet. > >I want to use ENC28j60 as ethernet controller( MAC&PHY ethernet) because >it has SPI. > >I have bought a evaluation board (AT90EIT1) from Atmel and it is really
a
>webserver and is contained ATMega103 and CS8900(an Ethernet >controller)... > >Modular TCP/IP source code for AVR family is on CD of this evaluation >board . But its ethernet.c file is written to interface with CS8900. > >Can any body help me to change this file to interface with ENC28j60? > >As I am in hurry, I will be so thankful if you reply me as soon as >possible. > >-thanks. > >

Memfault Beyond the Launch