Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 21st January 2008, 06:39 AM   (permalink)
Default Ethernet controller interface with microcontroller

Hello Sir,
I want to interface Ethernet controller with microcontroller. I see some Ethernet controller in which SPI interface there. I have doubt, Is there different microcontroller have different Ethernet controller. Currently I have 89s52 microcontroller.
Can you suggest me which Ethernet controller is useful for me ?..

Thanking you...

With Regards,
Ankur
diyora is offline  
Old 21st January 2008, 07:10 AM   (permalink)
Default

The Microchip ENC28J60 has an SPI port.
But if you want to get into Ethernet drop the old 89S52.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 21st January 2008, 07:38 AM   (permalink)
Default

Hi blueroomelectronics,
Thanks for reply & suggestion.I see the ENC28J60 & also ethernet controller in which this ic used.But i want to know how i interface this ethernet controller & microcontroller 89s52.
Can you give me any useful link for that which i understand practically.

Thank you for help me...
diyora is offline  
Old 21st January 2008, 07:46 AM   (permalink)
Default

No links for the 89S52, it'll be extremely difficult with that controller. Get a PIC18F4620 and it's not that difficult. You'll need to be able read C18.
http://www.ljcv.net/home.html
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 21st January 2008, 12:45 PM   (permalink)
Default

Hi blueroomelectronics,
Thanks for reply.Actually currently i have microcontroller 89s52 and also i face problem is unavailibility of PIC18F in my town.
Can i interface SPI of ENC28J60 with 89s52 ?..

Thank you for help me...
diyora is offline  
Old 21st January 2008, 04:32 PM   (permalink)
Default

Quote:
Originally Posted by diyora
Hi blueroomelectronics,
Thanks for reply.Actually currently i have microcontroller 89s52 and also i face problem is unavailibility of PIC18F in my town.
Can i interface SPI of ENC28J60 with 89s52 ?..

Thank you for help me...
If you can't get the 18F4620 then how can you get the ENC28J60? Microchip makes them both.

For an antique like the 89s52 try to connect it to an old ISA network card. Lots of I/O need though. As for hooking up just follow the examples on the site I posted earlier, just change the 18F4620 to the pins on your 89s52. I take it you're an excellent programmer because this is not a trivial task writing an Ethernet stack pretty much from scratch.

PS the 89s52 doesn't have a hardware SPI port. It's way to slow to keep up with the ENC28J60 using a software SPI.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 21st January 2008 at 04:37 PM.
blueroomelectronics is online now  
Old 22nd January 2008, 12:53 PM   (permalink)
Default

I agree with Bill. What is an 8051 supposed to do with a 1500 byte incoming packet when it has only 1K of RAM. OK So it has 2K of RAM you say, and I say "don't you want to be double buffered on both the transmitter and the receiver"? Can you see where this is going. Drop the 8051 if you want to do ethernet. Stop wasting your time on silly projects.
__________________
We never have time to do it right; but we always have time to do it over.
Papabravo is offline  
Old 22nd January 2008, 10:56 PM   (permalink)
Default

probably it is not used for receiving, but transmitting.
__________________
F.N.
Funny NYPD is offline  
Old 23rd January 2008, 07:17 AM   (permalink)
Default

Quote:
Originally Posted by Funny NYPD
probably it is not used for receiving, but transmitting.
Ethernet on an 8051 is still a silly project. There is no reason for it architecturally or economically.
__________________
We never have time to do it right; but we always have time to do it over.
Papabravo is offline  
Old 23rd January 2008, 12:15 PM   (permalink)
Default

Hi,
I see another atmel ic atmega88 or atmega168 which is used with ethernet controller ENC28J60.but here atmega 88/168 is not available.Instead of that atmega8 is available.I see both datasheet but not too much difference i find.
Can i used it for my application ?..

Thank you....
diyora is offline  
Old 23rd January 2008, 02:53 PM   (permalink)
Default

Quote:
Originally Posted by diyora
Hi,
I see another atmel ic atmega88 or atmega168 which is used with ethernet controller ENC28J60.but here atmega 88/168 is not available.Instead of that atmega8 is available.I see both datasheet but not too much difference i find.
Can i used it for my application ?..

Thank you....
I doubted it will be suitable. Mega88 has more features than Mega8 and along with changed register names, individual bits names and physical address. Some work is required when potting codes from M8 to M88. If the additional features new in M88 is used in the design, it will not be possible to use an M8 instead.

ATMEL has a document detailing what to change when going from M8 to M88. No such document exists go the other way round.
__________________
L.Chung
eblc1388 is offline  
Old 23rd January 2008, 04:02 PM   (permalink)
Default

Some of the 51 family has a 20MIPS-100MIPS performance, that is faster than most of the PICs. And 1-128Kbyte of flash is almost identical as the PICs. So it should be reasonable to exist.
__________________
F.N.
Funny NYPD is offline  
Old 24th January 2008, 04:58 AM   (permalink)
Default

Quote:
Originally Posted by Funny NYPD
Some of the 51 family has a 20MIPS-100MIPS performance, that is faster than most of the PICs. And 1-128Kbyte of flash is almost identical as the PICs. So it should be reasonable to exist.
None of the features you mentioned are the issue.
The issue is RAM - 8051s are notriously short on this commodity
No DMA - it is not possible to request access to the bus and the CPU cannot be stopped. If there was an ethernet controller with RAM buffers and a convenient interface maybe it would make sense, but the overhead is so large there would not be much in the way of CPU cycles left after you got through with the TCP/IP stack.

If I told you there was a 32 bit embedded controller with an ethernet MAC onboard for the same or lower price as your 8051 would you be interested? Oh...did I mention free development tools? No 30 day evaluations, no crippled code generation -- just...well...FREE!
__________________
We never have time to do it right; but we always have time to do it over.

Last edited by Papabravo; 24th January 2008 at 05:02 AM.
Papabravo is offline  
Old 24th January 2008, 05:10 AM   (permalink)
Default

Well "you can't make a silk purse out of a pigs ear" the 8051 is old old.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 24th January 2008, 06:12 AM   (permalink)
Default

As a matter of fact, the high performance 51s isn't cheap at all. They are about twice the price of PICs and AVRs.
__________________
F.N.
Funny NYPD is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
monitor for controller - what is interface stevez General Electronics Chat 3 25th October 2008 01:57 AM
how to interface a ADC 0809 TO MICROCONTROLLER AND THEN MICROCONTROLLER TO DECODER praneeth22 Micro Controllers 1 9th March 2007 07:20 PM
Ethernet controller vs. Ethernet transceiver pterom Micro Controllers 1 31st December 2003 11:48 PM
microController vs. ethernet controller janetsmith2000@yahoo.com Micro Controllers 3 10th December 2003 02:30 PM
Low-clocked microcontroller with a high-speed interface?? electronicjo General Electronics Chat 1 18th August 2003 07:01 PM



All times are GMT. The time now is 03:17 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker