m_pourfathi
Full Member level 4
enc28j60 avr
Hi all,
I am using an AVR ATmega32 Microcontroller with a MicroChip ENC28J60 Ethernet MAC and PHY layer device for implementing a mini web server. ENC28J60 uses spi interface to communicate with the microchip. Also I am using codevision compiler. I am checking my hardware first to see if AVR can communicate with ENC28J60 properly. But there's been this problem that AVR can't read data from ENC. for checking I am using this syntax:
SPDR = 0x15;
get_data = SPDR;
PORTA = get_data;
// Data read appears on PORTA for checking.
0x15 means read data from address 15 hex. what might be the problem? please help! thanks
Hi all,
I am using an AVR ATmega32 Microcontroller with a MicroChip ENC28J60 Ethernet MAC and PHY layer device for implementing a mini web server. ENC28J60 uses spi interface to communicate with the microchip. Also I am using codevision compiler. I am checking my hardware first to see if AVR can communicate with ENC28J60 properly. But there's been this problem that AVR can't read data from ENC. for checking I am using this syntax:
SPDR = 0x15;
get_data = SPDR;
PORTA = get_data;
// Data read appears on PORTA for checking.
0x15 means read data from address 15 hex. what might be the problem? please help! thanks