ENC28J60 Ethernet Library V3.3

General discussion on mikroPascal.
Author
Message
yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#46 Post by yo2lio » 13 Dec 2008 10:06

Maybe this help you :

http://www.microelemente.ro/MikroPascal ... 201401.pdf

6 pins transformer.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Loki1_11
Posts: 32
Joined: 11 Dec 2008 00:20

#47 Post by Loki1_11 » 13 Dec 2008 11:09

Yo2lio do you have an sample on how to connect it to the enc28j50 and RJ45?

Thanks ;)

Regards,
Diego

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#48 Post by Dany » 13 Dec 2008 11:17

Hi,
Also interesting: MikroElektronika sells a small board called "Ethernet Connector Board", which has an Ethernet connector with built in transformer and the complete interface between it and the ENC. :D
See http://www.mikroe.com/en/tools/ethconn/
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Loki1_11
Posts: 32
Joined: 11 Dec 2008 00:20

#49 Post by Loki1_11 » 13 Dec 2008 13:26

Ok I buyed ...
But I wanted to do it work before it arrive :/

I'm in Brasil so I think it will delay some time to get it here ...

Thanks guys,
Regards,
Diego.

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#50 Post by yo2lio » 13 Dec 2008 14:36

Search on the Google about the schematic connection.

http://www.skpang.co.uk/catalog/images/ ... C28J60.pdf
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#51 Post by Dany » 14 Dec 2008 18:06

Hi Florin,
If I want to see some usage examples of the library,
- do I still have to look to MikroBasic_ENC_V3_4_Examples.zip or
- can I use also the examples Eth_V3_4_Examples.zip in your Pascal directory (of coure taking the different libraries into account)?
Is the interface of both Pascal ENC_3_4 and Pascal Eth_3_4 libraries the same?

- What are the documents that I should read to be able to work smoothly with your library (next to the library's interface prototypes)? I am rather a novice to Ethernet/Internet. :oops:

Thanks in advance. Keep up the excellent work! :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#52 Post by yo2lio » 14 Dec 2008 19:35

Well, unfortunately I don't have example in MikroPascal for ENC28J60.

Use examples from MikroBasic or examples for PIC18F97J60.

I will write a lot's of examples for my new ENC library with TCP/IP stack, but not now, I waiting for the new compiler.

Till then, the new ENC28J60 library with TCP/IP stack will be available for AVR MCU.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#53 Post by Dany » 14 Dec 2008 21:08

yo2lio wrote:Well, unfortunately I don't have example in MikroPascal for ENC28J60.

Use examples from MikroBasic or examples for PIC18F97J60.

I will write a lot's of examples for my new ENC library with TCP/IP stack, but not now, I waiting for the new compiler.

Till then, the new ENC28J60 library with TCP/IP stack will be available for AVR MCU.
Thanks Florin. :D

Still open:
- Is the interface of both Pascal ENC_3_4 and Pascal Eth_3_4 libraries the same?

- What are the documents that I should read to be able to work smoothly with your library (next to the library's interface prototypes)? I am rather a novice to Ethernet/Internet. :oops:
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#54 Post by yo2lio » 14 Dec 2008 21:20

Dany wrote:- Is the interface of both Pascal ENC_3_4 and Pascal Eth_3_4 libraries the same?
Yes the interface it's the same ! Also libraries are almost the same for both ENC and J60.
Dany wrote: What are the documents that I should read to be able to work smoothly with your library (next to the library's interface prototypes)? I am rather a novice to Ethernet/Internet. :oops:
Try to understand my example for PIC18F97J60 family and Mikroe example.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#55 Post by Dany » 15 Dec 2008 10:46

yo2lio wrote:
Dany wrote:- Is the interface of both Pascal ENC_3_4 and Pascal Eth_3_4 libraries the same?
Yes the interface it's the same ! Also libraries are almost the same for both ENC and J60.
Dany wrote: What are the documents that I should read to be able to work smoothly with your library (next to the library's interface prototypes)? I am rather a novice to Ethernet/Internet. :oops:
Try to understand my example for PIC18F97J60 family and Mikroe example.
I will do so. Thanks! Keep up the good work! :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Loki1_11
Posts: 32
Joined: 11 Dec 2008 00:20

#56 Post by Loki1_11 » 20 Dec 2008 00:53

Hi guys can you help me ?
I'm going nuts ... LOL !

The thing is, I finally founded the rj45 with transformer and buyed, but I dont know why it didnt work ... all the leds of enc28j60 lighted up, its flashing fine but I cannot access typing the ip ...
In the pic program I've maded the pic to get an valid IP of my netowork, in the same range and everything ...

How should I set the tris of the ports ?

Please any help will help ;)

Here is my rj45 datasheet http://www.unitone.com.br/arquivos/rj45.jpg

I made the follow connections

TPIN- PIN1
TPIN+PIN2
CT PIN3
CT PIN6
TPOUT- PIN7
TPOU+PIN8

That was what I could see in this datasheet, maybe I saw something wrong ...

Regards,
Diego.

Loki1_11
Posts: 32
Joined: 11 Dec 2008 00:20

#57 Post by Loki1_11 » 20 Dec 2008 05:03

Its a litle stranger, I try to ping my device and sometimes it get the response for a litle bit the I get Time limit ...

What should be causing that ?

Regards,
Diego

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

#58 Post by Dany » 20 Dec 2008 10:27

Loki1_11 wrote:I finally founded the rj45 with transformer and buyed, but I dont know why it didnt work ... all the leds of enc28j60 lighted up, its flashing fine but I cannot access typing the ip ...
In the pic program I've maded the pic to get an valid IP of my netowork, in the same range and everything ...
I made the follow connections
TPIN- PIN1
TPIN+PIN2
CT PIN3
CT PIN6
TPOUT- PIN7
TPOU+PIN8
Hi,
The diagram of your connector is a rather blurry, it is hard to tell how the connections are. I assume you have placed the necessary electronic parts between your connector and the ENC as shown in http://www.unitone.com.br/arquivos/mikroeSch.jpg ?
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Loki1_11
Posts: 32
Joined: 11 Dec 2008 00:20

#59 Post by Loki1_11 » 20 Dec 2008 10:45

Yap the resistors, capacitors and the litle bead.

I dont know more wath to do ...

Thanks in advance ;)

Regards,
Diego

Loki1_11
Posts: 32
Joined: 11 Dec 2008 00:20

#60 Post by Loki1_11 » 23 Dec 2008 00:29

Ok after I tryed some combinations using the new rj45 with transformer, It finally worked ;)

Thanks for the help guys ;)

Kindly Regards,
Diego.

Post Reply

Return to “mikroPascal General”