View previous topic :: View next topic |
Author |
Message |
a3ka2000
Joined: 26 Feb 2010 Posts: 11
|
application of ENC28J60 with dsPIC3xx |
Posted: Sat Feb 27, 2010 7:37 pm |
|
|
Dear all,
Have anybody here used ENC28J60 with dsPIC3xx before? I think it's meant for communication with ethernet.
May I know where to start with?
thank you
warm wishes |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Sat Feb 27, 2010 10:08 pm |
|
|
I have worked with these however I did not use the CCS compiler for this specific processor. I have worked with the ENC28J60 with a PIC18F with the CCS TCP/IP stack for proof of concept but my production products worked with my own stack. I do not know if the CCS examples work with the dsPIC processor (more below).
I have used both the processor and the ENC28J60 using the Microchip C30 compiler but again using my own stack.
If you have a PIC18F8722 or similar class processor then you might want to start with the CCS stack. Once you have this working you could move the the dsPIC. The main challenges you will need to deal with is the low level I/O initialization - this was not handled well with earlier implementation of the PCD compiler however the most current version 4.105 has supposedly addressed some the the SPI related issues. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
a3ka2000
Joined: 26 Feb 2010 Posts: 11
|
|
Posted: Sun Feb 28, 2010 5:18 am |
|
|
Hi, thanks for your reply. I visited the website at the bottom of your post :P.
Btw, is it true to say that ENC28J60 by itself is standalone and do not need any firmware? So, it is the PIC18F that we should spend sweating to do coding?
thanks!
asmallri wrote: | I have worked with these however I did not use the CCS compiler for this specific processor. I have worked with the ENC28J60 with a PIC18F with the CCS TCP/IP stack for proof of concept but my production products worked with my own stack. I do not know if the CCS examples work with the dsPIC processor (more below).
I have used both the processor and the ENC28J60 using the Microchip C30 compiler but again using my own stack.
If you have a PIC18F8722 or similar class processor then you might want to start with the CCS stack. Once you have this working you could move the the dsPIC. The main challenges you will need to deal with is the low level I/O initialization - this was not handled well with earlier implementation of the PCD compiler however the most current version 4.105 has supposedly addressed some the the SPI related issues. |
|
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Sun Feb 28, 2010 6:29 pm |
|
|
a3ka2000 wrote: |
Btw, is it true to say that ENC28J60 by itself is standalone and do not need any firmware? So, it is the PIC18F that we should spend sweating to do coding?
|
No. The ENC28J60 is a low level Ethernet controller responsible for moving frames between on board packet memory and the Ethernet interface. You instruct the controller what frames to accept off the wire to the packet buffer based on MAC address configuration and filters. It is up to you to send commands to the controller to add packets to the packet buffer from the PIC, extract packets from the packet buffer to the PIC, perform the packet encoding.
From the PICs perspective you need a TCP/IP stack which incorporates the ENC28J60 driver. The TCP/IP stack runs on the PIC and you incorporate your end application with this stack. When you make calls to the TCP/IP stack, the stack drives the ENC28J60. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|