Ethernet ATmega32/644 Experimentierboard

9
Ethernet ATmega32/644 Experimentierboard © 2007 Ulrich Radig Contents: Foreword ………………………………3 Parts list ………………………………..4 Assembly Schedule …………………..5 Switching Plan ………………………...6 RS232 interface ……………………….7 Preface This is a circuit module for the web need not be expensive to show this little project. A complete mini web server for about 35 €. In the microchip ENC28J60 Ethernet Controller comes in conjunction with an ATmega32 or ATmega644 used. It comes from the circuit without SMD components. This ensures that the mini web server can be reproduced by any hobbyist without further ado. As a replacement for a current PC or Network Attached Storage (NAS), this server is not thought of. In principle, this would be possible, but it is not here faster than ISDN speed on the road. To view a 2-4-KB website / homepage for shift and sway, but it goes forever. The software now supports ARP, ICMP, UDP, TCP, NTP (client) and HTTP. Via the serial port you have access to the processor. This takes to receive commands for example ARP, TCP, and RESET are available here. ARP is e.g. the current ARP table. Here, the current connection state can be observed. A more detailed overview of the available commands is the command Help. The web server is able to establish a connection via telnet to the RS232 interface of the AVR. Incoming signal to the serial port of the Web server are sent to the Telnet application started. This can also be reversed, ie from the Tellnetapplikation to the RS232 interface of the web server. Mithilfenahme the tools "com0com" and "com2tcp" is now a virtual COM port to be established.

Transcript of Ethernet ATmega32/644 Experimentierboard

Page 1: Ethernet ATmega32/644 Experimentierboard

Ethernet ATmega32/644 Experimentierboard

© 2007 Ulrich Radig

Contents:

Foreword ………………………………3Parts list ………………………………..4Assembly Schedule …………………..5Switching Plan ………………………...6RS232 interface ……………………….7

Preface

This is a circuit module for the web need not be expensive to show this little project. A complete mini web server for about 35 €. In the microchipENC28J60 Ethernet Controller comes in conjunction with an ATmega32 or ATmega644 used. It comes from the circuit without SMD components. Thisensures that the mini web server can be reproduced by any hobbyist without further ado. As a replacement for a current PC or Network AttachedStorage (NAS), this server is not thought of. In principle, this would be possible, but it is not here faster than ISDN speed on the road. To view a 2-4-KBwebsite / homepage for shift and sway, but it goes forever. The software now supports ARP, ICMP, UDP, TCP, NTP (client) and HTTP. Via the serialport you have access to the processor. This takes to receive commands for example ARP, TCP, and RESET are available here. ARP is e.g. thecurrent ARP table. Here, the current connection state can be observed. A more detailed overview of the available commands is the commandHelp. The web server is able to establish a connection via telnet to the RS232 interface of the AVR. Incoming signal to the serial port of the Web serverare sent to the Telnet application started. This can also be reversed, ie from the Tellnetapplikation to the RS232 interface of the webserver. Mithilfenahme the tools "com0com" and "com2tcp" is now a virtual COM port to be established.

Page 2: Ethernet ATmega32/644 Experimentierboard

Parts ListNumber Part Value Order no.Reichelt Prices

p.S.12/074 C1, C2, C17, C18 22p KERKO 22P 0.041 €11 C3, C4, C5, C14, C15, C16,

C10, C24, C25, C26, C27100n Z5U-5 100N € 0.07

4 C6, C7, C8, C9 470n Z5U-5 470N € 0.253 C11, C12, C13 220μF 16V RAD 105 220/16 € 0.0721 C21 10μF 16V RAD 105 10/63 0.041 €2 C19, C20 1n KERKO 1n 0.041 €2 C22, C23 10n KERKO 10n 0.041 €3 D1, D2, D3 1N4004 1N4004 0.020 €1 D4 Z-Diode 12V ZF12 0.031 €1 F1 PICOFUSE 0.5

APICO 0.5 A € 0.45

1 FERIT 10μH L-11P 10μ € 0.351 IC1 ATmega644 ATMEGA 644-20 PU € 7.201 IC2 LM 78S05 uA 78S05 0.357 €1 IC3 LM 317 LM317-220 0.226 €1 IC4 MAX232 / MAX

202MAX 202 CPE € 1.10

1 IC5 ENC28J60-DIL -----------------------------1 J1 MEB 8P MEBP 8-8G € 0.621 JP1 2x02 SL 2X10G 2.54 € 0.511 JP2, JP3 1 X 06 SL 1X36G 2.54 € 0.311 L1 10μH SMCC 10 € 0.161 LED1, LED2, LED3 LED3MM LED 3MM GN 0.051 €1 PROG ML10 WSL 10G € 0.0721 Q1 16Mhz 16.0000-HC49U-S € 0.241 Q2 25Mhz 25.0000-HC49U-S € 0.241 R1 10k 1/4W 10K € 0.101 R2 470 Ohm 1/4W 470 € 0.101 R3 270 Ohm 1/4W 270 € 0.101 R4 1.5 k ohms 1/4W 1,5 K € 0.101 R5 33k Ohms 1/4W 33K € 0.102 R6, R7 180 ohms 1/4W 180 € 0.101 R8 2,7 k Ohm 1/4W 2,7 K € 0.104 R9, R10, R11, R12 50 ohms METAL 49.9 € 0.0251 S1 SWITCH 3301B SWITCH 3301B € 0.121 SV1 ML16 WSL 16G € 0.0721 SV2 ML10 WSL 10G € 0.0721 TR FB2201 -----------------------------

Page 3: Ethernet ATmega32/644 Experimentierboard

1 X1 2.1 mm jacksocket

HEBW 21 € 0.27

1 X2 SUB-D09F D-SUB BU 09EU € 0.28

Miscellaneous2 Jumper JUMPER 2.54 BL 0.041 €1 40-pin version GS 40P € 0.461 16-pin version GS 16P € 0.181 Text 28WAY GS 28P-S € 0.361 Heatsink V PR5/25-M3 € 0.53

€ 17.99

In version 1.0, only the fuse board assembly is missing otherwise in compliance as ofversion 1.1!

Page 4: Ethernet ATmega32/644 Experimentierboard

Schematic

Page 5: Ethernet ATmega32/644 Experimentierboard
Page 6: Ethernet ATmega32/644 Experimentierboard

RS232 interface

The serial interface has the following settings (HyperTerminal):

On the board is a 9-pin connector that can not be replaced by a 9-pin connector. By default, Irecommend a 1:1 RS232 extension.

1:1 RS232 cable connector /

Page 7: Ethernet ATmega32/644 Experimentierboard

male null modem cable x TXD RXD

Create from the Web server source code Hexfile

With the installation of WinAVR a useful tool Programmers Notepad 2 is installed shortlyPN2. This program will open it on the taskbar.

Next, the project file of the project will open in PN2, the project files) have the fileextension (*. pnproj. Now we find the project under the Open Content (Standardinstallation) Mark on the left side in column (1) again. Now you should still a file from theproject which is tabulated in (1) appears to be opened. It is to be the best filemain.c. Double-clicking in the project overview (1) is sufficient to do so. The file will nowappear in a new window (2). Only now can be accessed 3) on the control bar on Tool /[WinAVR] Make All (. Make All created now a Hex file that can be flashed into the AVR.Flashing the Hexfiles may also be from the PN2.

Page 8: Ethernet ATmega32/644 Experimentierboard

In MAKEFILE CPU type and details are available for programming hardware. I use as aprogrammer always the STK200 to the LPT1, this is my cable which I have described underBaseKit (minimal solution for use with four resistors). In another programmer that has to bespecified in the makefile, should be programmed from the PN2. If the programming via anexternal tool such as PonyProg the definition of the programmer in makefife deleted.

Page 9: Ethernet ATmega32/644 Experimentierboard