Interfacing PIC16F877A with serial Ethernet proto
Posted: 18 Jun 2014 14:44
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!!
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!!