RTL8019 library

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi.

I would like to connect my avr to the ethernet.

Is there any library for avr micricontrollers ?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Google ethernut. I used that chip 15 years ago! I wouldn't bother these days - there's cheaper/easier solutions.
Actually, i just googled rtl8019 avr. And there's plenty of answers.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

WIZ812MJ makes this kind of thing *very* easy. A much higher level interface than a raw Ethernet chip.

 

If you do want to do it at a raw level I think the ENC28J60 is probably the chip of choice these days.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

nta_xyz wrote:
I would like to connect my avr to the ethernet.

Welcome to the party:

 

https://www.avrfreaks.net/forum/e...

 

https://www.avrfreaks.net/forum/i...

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:

Google ethernut. I used that chip 15 years ago! I wouldn't bother these days - there's cheaper/easier solutions.
Actually, i just googled rtl8019 avr. And there's plenty of answers.

 

could you please introduce me  cheaper and easier solutions ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

WIZ812MJ makes this kind of thing *very* easy. A much higher level interface than a raw Ethernet chip.

 

If you do want to do it at a raw level I think the ENC28J60 is probably the chip of choice these days.

 

thank you for your suggestions, but WIZ812MJ is more expensive than RTL.

unfortunately, price is very important in my project:(

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If I can connect to the internet via ENC28J60, please let me know if there is any reliable source code or library for that .

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

:D

thank you for your help but I need to know the reliable source code not anything on the google ;)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I'm surprised you can still buy that chip. Personally, I'd be going for a Cortex M4 or suchlike with the ethernet on chip and lots of ram and flash. I've got a TI TM4C1294 board on my desk at the moment. Free, full toolset and a rtos with tcp/ip  + ethernet stack.

 

When you talk about price - specifiy a range. What we think is low price may be expensive for you and vice-versa.

 

As for Google not being reliable for source code? Where have you been? Ten seconds of Googling answered your question. How do you think we find stuff?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

not anything on the google

But the top code is amongst the hits on google ;-)

 

If you want to get specific add "ethernut" or "tuxgraphics" or "adam dunkels" to your searches. Their ENC28J60 code for AVR are generally considered "the best".

 

When you do use a raw Ethernet chip like RTL8019 or ENC28J60 or whatever bear in mind that to the base cost of the chip you have to add the costs of the magnetics (even the PCB to mount it all on) and the cost for quite a lot of flash in the AVR to hold all the code that such chips require. You may even want to amortise the software development cost as it will be higher when dealing with things at a raw level compared to a high level device like a WIZ812MJ. Now it's true there's going to be a "break even" point in comparing the two. But for 10 or 100 or perhaps even 1,000 I would suggest the WIZ812MJ may still be "competitive". If you are making 10,000 or 100,000 then the additional effort to use the raw chip will probably be worth it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:
Personally, I'd be going for a Cortex M4 or suchlike with the ethernet on chip and lots of ram and flash.

Likewise!

 

Quote:
I've got a TI TM4C1294 board on my desk at the moment.

 

http://www.ti.com/tool/ek-tm4c12...

 

Unlike most (all?) other chips, this has both MAC and PHY on the chip - so you literally just add the RJ45 socket (with magnetics).

 

So make sure you compare the full cost!

 

Last time I looked (which is, admittedly, quite a while ago) the Wiznet chip alone was more expensive than the TI part which gave you all-in-one MAC and PHY and processor! But that was back in the days of the Stellaris Cortex-M3...

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...