Telecomunicações E Electronica

Páginas: 4 (985 palabras) Publicado: 8 de enero de 2013
ETHERNET CHaT CliENT TuToRial
WHAT YOU NEED
Enc28j60 is an ethernet IC which transmits and receives the data over ethernet. You need just a microcontroller (the one we used is ATMEGA 16), enc28j60ic, a Magjack (the one we have used is DRRJ45IM from embedded market).

HOW TO DO IT
You have just to do the following connections. In our original circuit we have used PS/2 keyboard take the inputfrom the user and the lcd to display it. Connecting Enc28j60 First of all, you will need to make all the connections of the enc28j60 ic leaving out the atmega. And then when you’ll put the lan cablein the magjack you’ll see that the yellow led is continuously on and the green led will glow at times. If it is so, then your connections are all right and you can make the connections of atmega. Ifnot double check your connections to get the desired result. Connecting Atmega Now proceed to make all the connections of the Atmega with ENC28J60. Now run the code “ledconfig” in the atmega. Youshould

see the leds blinking, one with a frequency of 1 Hz and other with that of 2 Hz. Connecting LCD and PS/2 Keyboard You can now complete the entire circuit. Load the code “main” in the Atmega andget chatting with our friends. Note: For the first circuit you make, you need not change the contents of mac[](MAC address are a unique identification id for your module) But for the second circuityou will made( if you make any) change it to something else Running the Code When you run the code, it will ask you for your IP address. So , if your IP address is 172.24.9.41 , you should enter172024009041.. Also the keyboard keys F4 and F5 have special functions. F5 is used to clear all that you have written that you wish not to send and F4 is used to display the message you received( Wheneveryou will have any unread message, the LED marked LEDN will be on, so youknow when to press F4)..

CIRCUIT DIAGRAM

BASIC FUNCTIONS
There are some basic functions to control this ethernet IC you...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Telecomunicações
  • Electronica
  • Electronica
  • Electronica
  • Electronica
  • Electronica
  • Electronica
  • Electronica

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS