iw2nzm
Joined: 23 Feb 2007 Posts: 55
|
ENC28J60 doesn't answer |
Posted: Tue Apr 03, 2007 6:08 am |
|
|
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 |
|