ENC28J60 Schematic help

Status
Not open for further replies.

hemnath

Advanced Member level 3
Joined
Jun 24, 2012
Messages
702
Helped
61
Reputation
120
Reaction score
57
Trophy points
1,308
Location
Chennai
Visit site
Activity points
6,589
Hi all,
I've bought ENC28J60 module from ebay.

**broken link removed**

I want to connect this module with PIC18F4620.

I searched in the net and found a circuit to connect the module with pic?

I have some doubts. Please clarify?
1. Why 180E resistors are used in SI, SCK, CS lines?
2. Do i have to use +5V for IC 74ACT125 supply pin?
3. Do i have to connect INT, WOL to microcontroller?

Thanks in advance.
 

Attachments

  • pic10t-2.0.pdf
    256.2 KB · Views: 97

The ENC28J60 is a 3.3v device, if you intend on interfacing the ENC28J60 to microcontroller operating at 5v, some method of voltage level translation will be required.

Both the 180Ω resistors and the 74ACT125 tristate buffers act as a method of voltage level translation.

There are numerous ways of achieving safely the required voltage level translation, some ways are preferable over others.

If both the microcontroller and ENC28J60 are operating at 3.3v, then no voltage level translation is required, the devices can be directly connected.

Whether or not the ENC28J60 Interrupt line is required depends largely on your application and the accompanying software/firmware.


An often overlooked resource is utilizing development and PICtail board schematics and example code:

PICtail Ethernet Board

Ethernet PICtail Plus Daughter Board


BigDog
 

Thanks bigdogguru.

Right now i have PIC18LF2520. I have interfaced ENC28J60 with micro-controller. Power supply +3.3V. And I have connected 1 LED to microcontroller pin. I want to control that LED from the internet. How to do that? How to configure microchip application libraries for my purpose?
 

Right now i have PIC18LF2520. I have interfaced ENC28J60 with micro-controller. Power supply +3.3V. And I have connected 1 LED to microcontroller pin.

Good news is voltage level translation is no longer a concern, the bad news the PIC18LF2520 has relatively limited Flash/RAM resources to implement a TCP/IP stack.

I want to control that LED from the internet. How to do that? How to configure microchip application libraries for my purpose?

Well, essentially you have a few choices:

1. You study the datasheet and along with your advanced knowledge of TCP/IP, you write your own ENC28J60 Library/API.

2. Find an existing ENC28J60 Library/API with source code and port it to the PIC18LF2520 if required.

3. You download and install Microchip's TCP/IP stack, modify it to accommodate the relatively limited Flash/RAM resources of the PIC18LF2520.

4. Find examples of the Microchip's TCP/IP stack which has already been modified for a PIC which has similar limited Flash/RAM resources as that of the PIC18LF2520.

Olimex at one time offered a PIC-MINI-WEB development board which utilized the PIC18F25J10 which has 32KB Flash and 1KB RAM, even less RAM than the PIC18LF2520.

They also modified the Microchip's TCP/IP stack to accommodate the limited resources of the PIC18F25J10 and offer it for free download:

Olimex PIC-MINI-WEB


From the above description, you should be able to port the demo code to the PIC18LF2520 and control the LED as desired.

The product also offers the schematics of their PIC-MINI-WEB dev board, which might be handy.


BigDog
 

Thanks bigdogguru for the help.

One of my friend told me, controlling the LED from internet is quite complicated rather than sending adc data to webpage. He told me that i have to configure microchip library according to my purpose. Reading the very big files to configuring is now very difficult for me.

I shall connect the pot to the adc pin of uc and send the data to webpage.

Which portions are to be configured in the microchip demo files.
 

Hi, After a very long time. I'm working on this project again.

the bad news the PIC18LF2520 has relatively limited Flash/RAM resources to implement a TCP/IP stack.

So I thought to use PIC18LF4620.

I am using demo app in TCPIP folder. When i compiled with PIC18F8722, it shows no error. But when I compiled it with 18F4620, it shows lot of error. I manage to solve some of the error by changing some lines in the file "HWP PIC18EX_ENC28.h".

changes done in

Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// ENC28J60 I/O pins
#define ENC_SSPBUF          (SSPBUF)            //*** SSP1BUF
#define ENC_SPISTAT         (SSPSTAT)           //*** SSP1STAT
#define ENC_SPISTATbits     (SSPSTATbits)       //*** SSP1STATbits
#define ENC_SPICON1         (SSPCON1)           //*** SSP1CON1
#define ENC_SPICON1bits     (SSPCON1bits)       //*** SSP1CON1bits
#define ENC_SPICON2         (SSPCON2)           //*** SSP1CON2
 
// ENC28J60 I/O pins
#define ENC_SSPBUF          (SSPBUF)            //*** SSP1BUF
#define ENC_SPISTAT         (SSPSTAT)           //*** SSP1STAT
#define ENC_SPISTATbits     (SSPSTATbits)       //*** SSP1STATbits
#define ENC_SPICON1         (SSPCON1)           //*** SSP1CON1
#define ENC_SPICON1bits     (SSPCON1bits)       //*** SSP1CON1bits
#define ENC_SPICON2         (SSPCON2)           //*** SSP1CON2



But it shows one error.

Please help to solve this error.

Thanks in advance.
 
Last edited by a moderator:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…