CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

ENC28J60 doesn't answer

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
iw2nzm



Joined: 23 Feb 2007
Posts: 55

View user's profile Send private message

ENC28J60 doesn't answer
PostPosted: Tue Apr 03, 2007 6:08 am     Reply with quote

Hi!

I'm using the CCS driver for ENC28J60. I ask them a sample code but I never received anything.

I wrote this small program to test the communication between ENC and a PIC18F4520:

Code:

#define ENC_MAC_USE_SPI TRUE
#include "enc28j60.c"
.
.
.
mac_spi_init();
mac_reg_init();
printf("%u\r\n", enc_mac_read_control_byte(ENC_MAC_MAADR1, TRUE));


I get "0" as first mac address value instead 0x11 (sample value).
I defined into enc28j60.c the CS pin, but not the RST one because I tied high the reset pin of ENC like some schematic out there.

May you help me to find out the problem?

Thank you
Marco / iw2nzm
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Apr 03, 2007 2:03 pm     Reply with quote

Do a web search for: MACInit enc28j60

This will get some posts in the microchip forum with useful tips:
http://forum.microchip.com/tm.aspx?m=219141&mpage=1&key=&#228937
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group