View previous topic :: View next topic |
Author |
Message |
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Fri Nov 04, 2011 9:42 am Post subject: ENC28J60 with 5V AVR |
|
|
Has anybody used the ENC28J60 with a 5volt AVR in the data sheet I see 5V Tolerant Inputs so as long as its supply is 3.3volt you should be able to connect directly to an AVR running at 5volts? |
|
Back to top |
|
|
maxspeed
Joined: 23 Sep 2005 Posts: 68
|
Posted: Sat Nov 05, 2011 6:20 pm Post subject: |
|
|
Hi Paulvk,
Some inputs are 5v tolerant, no choice for a level converter, I have many project with this nic, but now I used enc424j600, do a research on youtube with this card you will see the new board, working fine for me.
You can used a avr @ 3.3v but you will have de same problem with the inputs avr ... it's up to you.
By the way, just a hint, enc28j60 have many hardware bugs and the biggest is with a heavy traffic the IC will become unstable ... the new generation is ok (packet filter).
Maxspeed |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Sun Nov 06, 2011 2:21 am Post subject: |
|
|
Hi Maxspeed
I have a number of ENC28J60 so I am using what I have at hand, also Ben Zijlstra http://members.home.nl/bzijlstra/ has done all the work with Bascom to get things going. I have another project (Webserver) that uses a DSPIC33FJ128 with ENC28J60 which I did not write the code for but I have the source code which is in C , it does not seem to have stability problems like you describe but in the notes in the source it does refer to the faults and the work arounds it is a fully working server with CGI and authentication but needs some polishing that I can not do as I do not know C . I wrote to Ben and he pointed out the EtherRape board which has a 5V AVR with ENC28J60 no level converters so I to day have made a PCB which is half the webserver board with the DSPIC replaced by a 40 pin AVR I will use an mega1284p (also at hand) with 16K of ram this is in many ways similar to the DSPIC just the clock speed is 1/3. My first steps wil to just get it working with Bens code and try to build on that.
Thankyou for your reply I will list my progress in the blog section alongside the present one as they are related.
Regards Paul |
|
Back to top |
|
|
maxspeed
Joined: 23 Sep 2005 Posts: 68
|
Posted: Sun Nov 06, 2011 4:25 am Post subject: |
|
|
Hi Paulvk,
Actually I have 3 controler 1284p with enc28j60 working with a very big network (more 14000 mac address) with this kind of traffic and the "Pattern Match receive filter" not working imagine the how many packets the ic received per second and try with your software to remove unwanted packet @16 mhz, not very easy to do ! with a little network you will never see that bug! the ic working fine but the RX is overloaded (not very usefull).
For the EtherRape board, i dont know that board and I dont see the schematic, sorry I can't talk, see the datasheet page 8 - 2.5 i/o levels.
It's a good chip, lot of fun with ethernet project, I hope you will have fun too with the tcpip protocol
Regards maxspeed
from errata data sheet :
18. Module: Receive Filter If using the Pattern Match receive filter, some packets may be accepted that should be rejected. Specifically, if ERXFCON.ANDOR = 0, ERXFCON.PMEN = 1 and at least one of the Hash Table, Magic PacketTM, Broadcast, Multicast or Unicast receive filters are enabled, then packets can be accepted that do not meet any of the enabled filter criteria. This will occur if the receive packet is less than or equal to 64+EPMO bytes long. For typical applications using the Pattern Match and Unicast receive filters simultaneously with a zero Pattern Match offset, this will result in the reception of unwanted 64-byte Address Resolution Protocol (ARP) broadcast frames, among possible others.
Work around: When using the pattern match receive filter, discard any unwanted packets in software |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|