electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

How to Interface Ethernet Controller with Microcontroller..


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> How to Interface Ethernet Controller with Microcontroller..
Author Message
H_D_R



Joined: 31 Jan 2008
Posts: 351
Helped: 18
Location: India


Post05 Feb 2008 5:59   

microcontollre ethernet


hello all,

i want to interface Ethernet Controller IC with MCU.
i have searched and got the two most commonly used ICs ENC28J60 and RTL8019AS.
i am working with ATMEL 89SXX MCU.
can any one tell me which MCU I should use for this interfacing. why?
can I do it using 89SXX MCU.?

and after successful interfcaing, want to send the data to PC via LAN.
can it be Possible..??

can any one help me.??

Thanking you all in Advance...
Back to top
Eugen_E



Joined: 29 Nov 2004
Posts: 358
Helped: 31


Post05 Feb 2008 13:05   

how to interface ethernet with microcontroller?


For ENC28J60 you can use any microcontroller that has SPI interface, because ENC28J60 connects through SPI.
The memory requirements vary, depending on the application. For an embedded web server that displays some html pages you may need an external memory on SPI or I2C.
It will work - you should write the program in C - it's a difficult work if you need to implement many protocols. You can find examples with ENC28J60, many of them for AVR microcontrollers, but the souce being in C maybe you can adapt it for you microcontroller.
Back to top
FvM



Joined: 22 Jan 2008
Posts: 5151
Helped: 766
Location: Bochum, Germany


Post05 Feb 2008 13:58   

ethernet controller microcontroller


For a small microcontroller Wiznet W5100 may be more appropriate. ww.wiznet.co.kr It's a controller with a hardware IP stack, thus considerably reducing the software overhead in uC.
Back to top
H_D_R



Joined: 31 Jan 2008
Posts: 351
Helped: 18
Location: India


Post06 Feb 2008 6:20   

ethernet microchip code example


Eugen_E wrote:
For ENC28J60 you can use any microcontroller that has SPI interface, because ENC28J60 connects through SPI.
The memory requirements vary, depending on the application. For an embedded web server that displays some html pages you may need an external memory on SPI or I2C.
It will work - you should write the program in C - it's a difficult work if you need to implement many protocols. You can find examples with ENC28J60, many of them for AVR microcontrollers, but the souce being in C maybe you can adapt it for you microcontroller.


Thank you for replaying...

i would like to prefer ATMEL first if its working because i have much Experience of ATMEL and it will be available easily also near by our town.

we know that coding will be more but before that
can you please give me some more details regarding this communication.

i mean how to interface the Ethenet Controller IC with MCU and which one will be best for easier communication with less possible coding.

and tell me one thing what is the meaning of "TCP/IP Stack"..??
where and how it can be utilize..??
Back to top
FvM



Joined: 22 Jan 2008
Posts: 5151
Helped: 766
Location: Bochum, Germany


Post06 Feb 2008 8:57   

microcontroller bit banging ethernet


TCP/IP stack means the code handling the TCP/IP protocol, anything that is necessary between a send() or receive() function call in your application code and the ethernet controller hardware, may be a few hundred up to thousands lines of code.
Back to top
H_D_R



Joined: 31 Jan 2008
Posts: 351
Helped: 18
Location: India


Post06 Feb 2008 12:16   

ethernet bit bang microcontroller


hi, can any one please tell me which techniquie will be faster as well as easier for this communication.??
Back to top
Eugen_E



Joined: 29 Nov 2004
Posts: 358
Helped: 31


Post06 Feb 2008 13:08   

Re: How to Interface Ethernet Controller with Microcontrolle


Here is a connection and code example for an AVR uC:
http://www.tuxgraphics.org/electronics/200611/article06111.shtml.
The implementation of TCP is simplified to transmit only 1 TCP segment. You can find complete UDP, TCP, HTTP implementations
www.cti.ac.at/rts/2_2_TCPIP.pdf
http://ww1.microchip.com/downloads/en/DeviceDoc/tcpip%20stack%20v3.6.zip
http://ww1.microchip.com/downloads/en/DeviceDoc/01033B%2031.pdf

If the communication is only in LAN, you can simplify it, to transmit only Ethernet frames if you know the corresponding MAC address.
Back to top
H_D_R



Joined: 31 Jan 2008
Posts: 351
Helped: 18
Location: India


Post07 Feb 2008 5:20   

How to Interface Ethernet Controller with Microcontroller..


Thanks Eugen_E,

let me get details of AVR and its availibility near by our Town.

i'll be back if i'll found difficulty.

Thnka you all
Back to top
snb7aug



Joined: 30 Jul 2005
Posts: 12
Location: Gaza Strip


Post09 Feb 2008 12:19   

How to Interface Ethernet Controller with Microcontroller..


do you have information about compatability with PIC16F84?
Back to top
H_D_R



Joined: 31 Jan 2008
Posts: 351
Helped: 18
Location: India


Post09 Feb 2008 12:47   

Re: How to Interface Ethernet Controller with Microcontrolle


snb7aug wrote:
do you have information about compatability with PIC16F84?


no.. Sad

sorry i have no exp. about PIC.

i have used ATMEL only till today.
Back to top
H_D_R



Joined: 31 Jan 2008
Posts: 351
Helped: 18
Location: India


Post13 Feb 2008 12:09   

Re: How to Interface Ethernet Controller with Microcontrolle


can anybody say at least some link from wher i can get details and proceed further...???

Nobody knows about such implementation...?? Shocked
Back to top
RossiRPI



Joined: 14 Feb 2007
Posts: 35
Helped: 2
Location: South Africa


Post03 Jul 2008 11:41   

Re: How to Interface Ethernet Controller with Microcontrolle


You can use a PIC16F84 but you will have some trouble. There's two things that are a problem. The first is that it only has 13 IO pins so you can not use the parallel interface with the W5100. The second is that the 16F84 doesn't have SPI either.
There is a way around this though but it requires a bit of software. The way you can do it is write your own SPI port (basicaly bit bang the data out). This might get a bit complicated though because you have to cample the data at specific times in the clock cycle though its simple enugh to implement if you have experience with PICs.
Back to top
Tamasco



Joined: 27 Jun 2006
Posts: 168
Helped: 11


Post23 Jul 2008 14:04   

Re: How to Interface Ethernet Controller with Microcontrolle


Eugen_E wrote:
Here is a connection and code example for an AVR uC:
http://www.tuxgraphics.org/electronics/200611/article06111.shtml.
The implementation of TCP is simplified to transmit only 1 TCP segment. You can find complete UDP, TCP, HTTP implementations
www.cti.ac.at/rts/2_2_TCPIP.pdf
http://ww1.microchip.com/downloads/en/DeviceDoc/tcpip%20stack%20v3.6.zip
http://ww1.microchip.com/downloads/en/DeviceDoc/01033B%2031.pdf

If the communication is only in LAN, you can simplify it, to transmit only Ethernet frames if you know the corresponding MAC address.




This link below is not working.
The implementation of TCP is simplified to transmit only 1 TCP segment. You can find complete UDP, TCP, HTTP implementations
www.cti.ac.at/rts/2_2_TCPIP.pdf
Back to top
Google
AdSense
Google Adsense




Post23 Jul 2008 14:04   

Ads




Back to top
zirtapoz



Joined: 25 Dec 2007
Posts: 167
Helped: 10
Location: finite space


Post23 Jul 2008 14:55   

Re: How to Interface Ethernet Controller with Microcontrolle


snb7aug wrote:
do you have information about compatability with PIC16F84?


use 18F452
Back to top
TekUT



Joined: 17 Jun 2008
Posts: 413
Helped: 23


Post23 Jul 2008 15:59   

Re: How to Interface Ethernet Controller with Microcontrolle


If you like to use embedded module as TIBBO read this:

http://www.edaboard.com/ftopic318684.html

Hope it help.

Bye
Powermos
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> How to Interface Ethernet Controller with Microcontroller..
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Ethernet controller interface with microcontroller (26)
microcontroller with ethernet controller (2)
microcontroller with ethernet controller (21)
How to Interface IR with microcontroller ? (6)
How to interface 89c51 microcontroller with PC (15)
how to interface a bluetooth with microcontroller (4)
how to interface bluetooth with microcontroller, (1)
How to interface OLED with microcontroller???? (1)
How to interface the RTC HT1380 with µ Controller 89C51 (9)
How to interface true color dotmatrix with microcontroller (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS