Searching \ for '[PIC] PIC IP Apps' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/devices.htm?key=pic
Search entire site for: 'PIC IP Apps'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] PIC IP Apps'
2006\03\02@205901 by Will

flavicon
face
Hi all,

I downloaded the ip stack for the ENC28J60, which for some reason
has the odd name MCHPStackENC8722.

I am interested to try out this software, but it seems I must use a
pic18f8722,
(or the pic18f8722i - is there such a thing?) and I am not so happy that
I am restricted to this pic. Is it possible to use pic18f4550 because I
already
used it and I prefere it (no need to read more new data sheets).
So basically the problem is to reduce the size of the program to fit in the
32k.
I will try to minimise the web pages and see if it helps.
Any ideas? Also, can I remove the entire web server and still test the
software with pings or ftp, are they built it?
Tia.

2006\03\02@224255 by John Temples

flavicon
face
On Fri, 3 Mar 2006, Will wrote:

> I downloaded the ip stack for the ENC28J60, which for some reason
> has the odd name MCHPStackENC8722.
>
> I am interested to try out this software, but it seems I must use a
> pic18f8722,
> (or the pic18f8722i - is there such a thing?) and I am not so happy that
> I am restricted to this pic. Is it possible to use pic18f4550 because I
> already
> used it and I prefere it (no need to read more new data sheets).
> So basically the problem is to reduce the size of the program to fit in the
> 32k.

I've built the stack (TCP, UDP, DHCP, ICMP, no web server) in about
18KB.  The web server isn't going to add more than a few K, plus your
web pages.  This was using the Realtek rather than the ENC, but I
doubt that makes much difference.

--
John W. Temples, III

2006\03\03@070431 by olin piclist

face picon face
Will wrote:
> I downloaded the ip stack for the ENC28J60, which for some reason
> has the odd name MCHPStackENC8722.
>
> I am interested to try out this software, but it seems I must use a
> pic18f8722,

I find that very hard to believe.  Surely you can change the processor type
in the source and the linker file.  I haven't looked at that software, but
I'm guessing it uses SPI hardware, which many PIC 18 have.  Unless they used
the EMA interface of the '8722 why isn't it trivial to move this code a any
PIC 18 with SPI?


******************************************************************
Embed Inc, Littleton Massachusetts, (978) 742-9014.  #1 PIC
consultant in 2004 program year.  http://www.embedinc.com/products

2006\03\03@072920 by Mat Clayton

picon face
Hey, I just started a new PIC website (http://www.piccoder.co.uk) where people can
share and upload code/ideas. Someone recently uploaded an article to the
site about setting up the microchip stack on a PIC18LF4620 using an
ENC28J60, You might find it a useful read. If anyone else has any articles
or would be willing to write one, then please feel free to upload them to
the site for us all to share.

Mat

----------------------------------------
http://www.piccoder.co.uk


{Original Message removed}

2006\03\03@085921 by andrew kelley

picon face
There was a link which turns up on google if you search for enc28j60
and pic and webserver..  it links to the official enc 28j60 stack on a
4520 IIRC.. May not be the right processor but all of the code is
there.. including demo for embedded HTTP/FTP server

--
andrew kelley

2006\03\03@092734 by Will

flavicon
face

> > I downloaded the ip stack for the ENC28J60, which for some reason
> > has the odd name MCHPStackENC8722.
> >
> > I am interested to try out this software, but it seems I must use a
> > pic18f8722,
>
> I find that very hard to believe.  Surely you can change the processor
type
> in the source and the linker file.  I haven't looked at that software, but
> I'm guessing it uses SPI hardware, which many PIC 18 have.  Unless they
used
> the EMA interface of the '8722 why isn't it trivial to move this code a
any
> PIC 18 with SPI?

The problem is memory. The stack software is 64K and many 18f devices
do not have 64K. I prefere '4550 because I used it before, but it has
32K.

2006\03\03@102022 by olin piclist

face picon face
Will wrote:
> The problem is memory. The stack software is 64K and many 18f devices
> do not have 64K. I prefere '4550 because I used it before, but it has
> 32K.

I don't know where you got this from, but the "stack" software doesn't need
anywhere near that.  I used the AN8ss (?) stack with the ENC28J60 MAC module
modified to use software SPI on a 30F4012.  It included DHCP, ICMP, and TCP.
This stack along with my app took about half the program memory space.  This
means the whole stack (with software SPI) required under 8K instructions.

Even accounting for some expansion due to the less capable instruction set
of a PIC 18, it doesn't require anywhere near 32K instructions (64K bytes).
If I remember right, the app note gave some figures for instruction and RAM
usage of the various modules.


******************************************************************
Embed Inc, Littleton Massachusetts, (978) 742-9014.  #1 PIC
consultant in 2004 program year.  http://www.embedinc.com/products

2006\03\03@103122 by olin piclist

face picon face
Olin Lathrop wrote:
> I used the AN8ss (?) stack

I meant to say AN833, don't know how the ss got in there.  However, I'm not
totally sure about the number.  It's still your job to verify it before
using.


******************************************************************
Embed Inc, Littleton Massachusetts, (978) 742-9014.  #1 PIC
consultant in 2004 program year.  http://www.embedinc.com/products

2006\03\03@103449 by Will

flavicon
face
> > The problem is memory. The stack software is 64K and many 18f devices
> > do not have 64K. I prefere '4550 because I used it before, but it has
> > 32K.
>
> I don't know where you got this from, but the "stack" software doesn't
need
> anywhere near that.  I used the AN8ss (?) stack with the ENC28J60 MAC
module
> modified to use software SPI on a 30F4012.  It included DHCP, ICMP, and
TCP.
> This stack along with my app took about half the program memory space.
This
> means the whole stack (with software SPI) required under 8K instructions.
>
> Even accounting for some expansion due to the less capable instruction set
> of a PIC 18, it doesn't require anywhere near 32K instructions (64K
bytes).
> If I remember right, the app note gave some figures for instruction and
RAM
> usage of the various modules.

Hi,
So, did you use MCHPStackv2.20.04.01.exe?
I wasn't sure which one I should use, but I thought it should be
MCHPStackENC8722v301.exe because it has 'ENC' in the
name, so I assumed it is designed for the ENC28J60 (as I don't
know of any other ENC's) If you then look at the project hex
file (mpnicpg.hex) you will find the addresses go up to B6E3,
which is 46819, which is more than 32K, do you see?

2006\03\03@104759 by olin piclist

face picon face
Will wrote:
> So, did you use MCHPStackv2.20.04.01.exe?
> I wasn't sure which one I should use, but I thought it should be
> MCHPStackENC8722v301.exe because it has 'ENC' in the
> name,

I have no idea.  I got that code a while ago sent to me from Microchip long
before it was publicly available.  What I used was a collection of C module
that I modified a bit, added a bit to, then linked with my app.  The result
required about 8K instructions on a dsPIC.

> If you then look at the project hex
> file (mpnicpg.hex) you will find the addresses go up to B6E3,
> which is 46819, which is more than 32K, do you see?

But that is irrelevant.  If it's a complete HEX file, you're not measuring
the size of the stack, but some demo app built on top of the stack.  It
probably drags in every possible module and who knows (and who cares!?) what
other bloat there may be in memory, like web pages, a file system, and the
like.  If there was a demo app in the stuff I got, I never looked at it or
built it.  Microchip examples generally suck, and besides having their
software run on their hardware and target circuit isn't terribly relevant to
my hardware and my target circuit.


******************************************************************
Embed Inc, Littleton Massachusetts, (978) 742-9014.  #1 PIC
consultant in 2004 program year.  http://www.embedinc.com/products

More... (looser matching)
- Last day of these posts
- In 2006 , 2007 only
- Today
- New search...