Interfacing enc28j60 with Atmel STK600 Board

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I want to interface enc28j60 chip with Atmega128 on STK600 development kit. As for datasheet, VCC for enc28j60 is 3.3 volt. STK600 datasheet also says that VCC can be varied upto 5.5V.

Can someone tell me how to vary VCC of the STK600 board.

Thanks in advance.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Google "stk600 vary vcc" and 5th hit is "quick start guide".

1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If its a 128 that can run on 3V3 great! just turn the voltage down and go.

If its a 5V part and you want to use it, not so great ...
ENC is 5V tolerant(ie. it can accept 5V signals, NOT run on 5V), but the output is not within 5V high safe zone, it _may_ work in a test setup, but its a bit outside spec.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Indianajones11.
I had figured it out to vary VCC with the help of Studio.

But the problem now is: "STK600 doesn't have a separate SPI interface. ENC28j60 uses SPI peripheral. I tried to connect enc28j60 to PORTB of Atmega128rfa1 (MOSI(PB2)->MOSI, MISO(PB3)->MISO, SCK(PB1)->SCK, SS(PB0)->SS and correspondingly VCC and Ground). But this doesn't worked out. Any clue what i did wrong."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You need to be specific about WHAT'S not working. How many spi slaves are connected to the MCU SPI ? Make SURE you've connected everything right. Do you know how to do SPI code ? Show a SMALL app. of trying to init(), access this chip .

1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have been using a locally made PCB with Atmega128 on it. I was running a web server on (after making few changes to Tuxgraphics code). It was working fine. now i wanted to migrate on STK600 board with Atmega128rfa1 MCU. I programmed the same code on it. But i was not able to access the server. It was even not able to respond to the PING. I used some TCP/IP terminal. The board was not able the respond to the ARP call.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sounds like there is a problem then. From experience, certain revisions of the ENC28J60 chip are sensitive to the spi clock speed. Time for some debugging methinks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You could start by printing the ENC28J60 revision number to a terminal.
If its 0/255 something is not working, if you get the real revision like 5-7 at least spi comm is working.

Does the magjack light green and flashes yellow when broadcast traffic is present ?