Page 1 of 1

Interfacing PIC16F877A with serial Ethernet proto

Posted: 18 Jun 2014 14:44
by Sel12
Hi
I am connecting the p16f877a with the ethernet board (containing ENC28J60) via SPI interface, and then to the PC via an rj45 cable. I have found some C code on the internet but I am not sure how to send data ( in my project i have to send one byte according to the pressed button). The attached photo shows the microcontroller interfaced with a connecter but in real I am directly connecting it with the Ethernet board.
The example in mikroC Compiler for PIC about the SPI includes a MAX chip which I am not using.
Should I configure the SPI pins if the main in my code includes " SPI_init()"?
What else do I have to add or modify about the code?
I am TOTALLY new to this and it seems I am lost after so much research!!
Capture.JPG
Capture.JPG (40.71 KiB) Viewed 2067 times
Capture.JPG
Capture.JPG (40.71 KiB) Viewed 2067 times

Re: Interfacing PIC16F877A with serial Ethernet proto

Posted: 20 Jun 2014 05:00
by petar.timotijevic
Hi,

Please see

ETH click - Example
http://www.libstock.com/projects/view/2 ... ck-example

Also please check other source code examples on Libstock web site http://www.libstock.com

Please keep in mind that PIC16F877A has 14KB flash and 368bytes of RAM!. Try to use PIC18F45K22,...


Best regards,
Peter