Things are going very well. After going over the datasheet for the ENC28J60 I am able to read and write to the control registers with SPI. Have still some questions about the Atmega168 External clock and Divide by 8 settings. But with a working piece of code and an osciloscope I can do some optimalisation.
Archive for May, 2007
uIP is working, but I like to get the ENC28J60 working with Bascom-AVR. Before, while testing, I removed the Atmega168 to be programmed in the STK500-board, but now I have made a small converter to work on my standard Kanda ICSP-programmer. And while programming it is also usefull to send information to the serial port. Used a Olimex-board just for the serial port. Programmer is on the SPI-MOSI, MISO, SCK, but no problems seen in combination with the ENC28J60.
It is running, uIP on the tuxgraphics board. With some minor software-adjustments (like the connection of CS to the ENC28J60).
The open-source uIP TCP/IP stack provide TCP/IP connectivity to tiny embedded 8-bit microcontrollers, with maintained interoperability and RFC standards compliance. Written by Adam Dunkels.
It is running, an ENC28J60 ethernetcontroller with an Atmega168. Have first tried things on breadboard using wire wrap, but after I have seen things working I decided to buy the cheap set at http://www.tuxgraphics.org Now it is running with C with a single packet HTML page, I would like to get it running with Bascom-AVR and hardware SPI. Have left the fuse bits untouched, but read somewhere in the documentation I have to change one bit (low fuse byte from 0×62 to 0×60). The CLKOUT of the ENC28J60 is feeding the clock of the Atmega168. The Atmega168 has been programmed with my STK500 kit, have to make an adapter from my AVRISP 10-pins connector to the 5-pins connector used on the tuxgraphics board.