PIC18F2550 + ENC28J60

General discussion on mikroC.
Post Reply
Author
Message
mastergoong
Posts: 10
Joined: 30 Sep 2010 08:42

PIC18F2550 + ENC28J60

#1 Post by mastergoong » 01 Oct 2010 05:19

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

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: PIC18F2550 + ENC28J60

#2 Post by tihomir.losic » 01 Oct 2010 13:34

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
mikroElektronika [Support team]

mastergoong
Posts: 10
Joined: 30 Sep 2010 08:42

Re: PIC18F2550 + ENC28J60

#3 Post by mastergoong » 04 Oct 2010 03:45

my folder no file Example Ethernet for PIC18F4550

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: PIC18F2550 + ENC28J60

#4 Post by tihomir.losic » 04 Oct 2010 10:03

Hello,

I attached you our example for SPI Ethernet board.

Best regards,

Losic Tihomir
Attachments
SPI Ethernet.rar
(133.06 KiB) Downloaded 675 times
mikroElektronika [Support team]

mastergoong
Posts: 10
Joined: 30 Sep 2010 08:42

Re: PIC18F2550 + ENC28J60

#5 Post by mastergoong » 04 Oct 2010 10:26

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

mastergoong
Posts: 10
Joined: 30 Sep 2010 08:42

Re: PIC18F2550 + ENC28J60

#6 Post by mastergoong » 05 Oct 2010 04:39

Image


picture it error!

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: PIC18F2550 + ENC28J60

#7 Post by zristic » 09 Oct 2010 08:22

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/

mastergoong
Posts: 10
Joined: 30 Sep 2010 08:42

Re: PIC18F2550 + ENC28J60

#8 Post by mastergoong » 11 Oct 2010 09:16

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 "

Post Reply

Return to “mikroC General”