Page 1 of 1

PIC18F2550 + ENC28J60

Posted: 01 Oct 2010 05:19
by mastergoong
To send data via ENC28J60 sent by pic18f2550.
The data is sent to the sever.

data is TEMp and HUMI

Have also begun Onge network.

RESET > RA2
CS > RC0
INT > RB2
SCk > RB1
SDI > RB0
SDO > RC7

Re: PIC18F2550 + ENC28J60

Posted: 01 Oct 2010 13:34
by tihomir.losic
Hello,

please, look at our HTTP_Demo example for SPI Ethernet board.
There you have example for PIC18F4550. Try to implement them for your microcontroller.
If you stuck with some of problem, feel free to contact me.

Thanks.

Best regards,

Losic Tihomir

Re: PIC18F2550 + ENC28J60

Posted: 04 Oct 2010 03:45
by mastergoong
my folder no file Example Ethernet for PIC18F4550

Re: PIC18F2550 + ENC28J60

Posted: 04 Oct 2010 10:03
by tihomir.losic
Hello,

I attached you our example for SPI Ethernet board.

Best regards,

Losic Tihomir

Re: PIC18F2550 + ENC28J60

Posted: 04 Oct 2010 10:26
by mastergoong
code error

Code: Select all

// mE ehternet NIC pinout
sfr sbit SPI_Ethernet_Rst at LATC0_bit;  // for writing to output pin always use latch (PIC18 family)
sfr sbit SPI_Ethernet_CS  at LATC1_bit;  // for writing to output pin always use latch (PIC18 family)
sfr sbit SPI_Ethernet_Rst_Direction at TRISC0_bit;
sfr sbit SPI_Ethernet_CS_Direction  at TRISC1_bit;
// end ethernet NIC definitions
Message Text is

';' expected but sbit found

Re: PIC18F2550 + ENC28J60

Posted: 05 Oct 2010 04:39
by mastergoong
Image


picture it error!

Re: PIC18F2550 + ENC28J60

Posted: 09 Oct 2010 08:22
by zristic
Hi,
You are probably using a very old version of the compiler when sbit was not supported yet.
Please upgrade to the latest release:
http://www.mikroe.com/eng/products/view ... o-for-pic/

Re: PIC18F2550 + ENC28J60

Posted: 11 Oct 2010 09:16
by mastergoong
zristic wrote:Hi,
You are probably using a very old version of the compiler when sbit was not supported yet.
Please upgrade to the latest release:
http://www.mikroe.com/eng/products/view ... o-for-pic/
thank " zristic "