Homepage

  • Projekte
  • Shop
  • Forum
Erweiterte Suche
  • Schnellzugriff
    • Unbeantwortete Themen
    • Aktive Themen
    • Suche
  • FAQ
  • Anmelden
  • Registrieren
  • Foren-Übersicht
  • Suche

UM9008F based NIC

Projekt aus Elektor 2007
Antworten
  • Druckansicht
Erweiterte Suche
10 Beiträge • Seite 1 von 1
tRIGGER

UM9008F based NIC

  • Zitieren

Beitrag von tRIGGER » 18.04.2006, 20:46:45

Hey all!,

I read here that some of you got a webserver running with a UM9008 based nic.

Now i'm hoping that someone still have there code (polling mode), and willing to share this with the rest of the world :)

Hope to hear from you soon.
Nach oben

A.K.

  • Zitieren

Beitrag von A.K. » 18.04.2006, 21:25:44

To use other NE2000 ethernet boards like those based on the UM9008 or BC912 chips, connect the ISA bus signal IOCHRDY to the controller. Then poll IOCHRDY in the byte i/o functions.

I recommend to add similar code to the block transfer functions, although you could probably get away without.

Code: Alles auswählen

void WriteRTL (unsigned char rtl_addr,unsigned char rtl_data)
{
    AddrRTL(rtl_addr);
    RTL_WR_OFF();
    DATA_PORT_RLT_WRITE = rtl_data;
    DATA_DIR_RLT = OUTPUT;
    while (!RTL_READY())
    	;
    RTL_WR_ON();
    DATA_DIR_RLT = INPUT;
}

uint8_t ReadRTL (unsigned char rtl_addr)
{
    AddrRTL(rtl_addr);
    DATA_DIR_RLT = INPUT;
    RTL_RD_OFF();
    nop(); nop();
    while (!RTL_READY())
    	;
    rtl_addr = DATA_PORT_RLT_READ;	
    RTL_RD_ON();	
    return (rtl_addr);
}
Nach oben

A.K.

  • Zitieren

Beitrag von A.K. » 18.04.2006, 21:30:08

Oh, I forgot: The respective controller pin is best configured with internal pullup enabled, to have a properly defined "ready" state in case the ethernet board is not found.
Nach oben

tRIGGER

  • Zitieren

Beitrag von tRIGGER » 18.04.2006, 21:32:13

nice!,

thanks for the help, i'll give it a try :)
Nach oben

A.K.

  • Zitieren

Beitrag von A.K. » 18.04.2006, 21:51:39

Source code is available at http://www.mikrocontroller.net/forum/re ... tml#320119
Nach oben

tRIGGER

  • Zitieren

Beitrag von tRIGGER » 20.04.2006, 00:10:02

jeej!, got it working now.

thank you!
Nach oben

ExpertProfi

  • Zitieren

Beitrag von ExpertProfi » 02.04.2007, 22:18:52

PIN 70 at DM9008. The signal is SLOT.
On my card the pin was pulled high. (= 16 bit mode)
After removing the resistor SLOT is now LOW (= 8 bit bode) and now the ping works! (Essential to consider "Ethernet.zip" from A.K. !)
Nach oben

A.K.

  • Zitieren

Beitrag von A.K. » 02.04.2007, 23:07:33

The NE2000 8bit mode was designed to allow use in short XT slots - which however cannot control the mode pin. So it could be considered a design fault to run it 16bit by default. But maybe XT slots were already somewhat rare at design time ;-).
Nach oben

Der verzweifelte

AVR WebServer mit ATMega32 und UM9008

  • Zitieren

Beitrag von Der verzweifelte » 01.07.2007, 22:16:28

Hi, habe da ein Problem:
AVR WebServer nach dem Schaltplan des Herrn Buss aufgebaut.
Quarz 14.318 MHz, ATMega32, UMC-UM9008F
Änderungen: Pin 10A (ISA (IOCHRDY)) an Pin PB4, Source angepasst (While RTLRDY).
CodeVer. 1.38 (Board noch ohne MMC/SD)
Getestet mit und ohne EEPROM/Widerstand(PIN70 UM9008)
Serielle werden nur 127 rechtecke im abstand von ca 15sec übertragen.
Netzwerkkarte blinkt nicht bei Traffic und der Ping geht logischerweise auch nicht. Netzwerkkarte ist aber iO...
Weiß jemand Rat??? Ich weiß nix mehr... sone kacka...

vielen Dank im vorraus...

MFG Timo
Nach oben

Der verzweifelte

UM9008

  • Zitieren

Beitrag von Der verzweifelte » 03.07.2007, 16:50:02

Nachdem mit einem anderen Programm die FuseBits (überhauptmal) richtig gebrand wurden, klappt die Kommunikation mit Seriell schon mal.
Jetzt erscheint aber Init: Error(255) ???
Hat jemand eine Idee bzw es einmal mit der UM9008 hinbekommen auf dem ATMega32???
Nach oben

Antworten
  • Druckansicht

10 Beiträge • Seite 1 von 1

Zurück zu „AVR WebServer (alte Version)“



  • Foren-Übersicht
  • Alle Zeiten sind UTC+02:00
  • Alle Cookies löschen

Powered by phpBB® Forum Software © phpBB Limited

Deutsche Übersetzung durch phpBB.de

Datenschutz | Nutzungsbedingungen

 

 

sitemap  |    |  datenschutz   |  impressum