Quantcast

Mycal's Experimental Homepage Software

Menu
Home
Login

Jump To
  • My Projects
  • Basic Archive
  • Clearlake
  • Archive
  • Articles
  • Links
  • Sandbox
    Search
  • You are at /Projects/Embedded_Enternet/802.11/

    Parent Directoryand more usenet


    OK, thanks to much assistance from Jeremy, I got past the
    initialization routines. Everything seem to be working. 
    It was a great relief to seen the Link light start blinking!
    
    I can get the card to actually link to my access point. I know this is
    so as it stops as soon as I un-plug the Access Point it is trying to
    talk to. I seem to have writing to the card working, but reading back
    is an issue. ( My Micro is an 8-Bit.. ).
    
    Note:
     "WrPortE16" splits the second value into hi/lo then 
     writes it to the address and the address +1
    
     "RdPortE16" does the same thing for reads.
    
    
    As an example;
       WrPortE16 (0x02,0xFC01)  =  0x01 (Even Byte), 0xFC (Odd Byte)
       0x01 is sent to 0x02
       0xFC is sent to 0x03
    
    
    
    
    Code snip of my reading routine, using BAP 0:
    
    // Read Current MAC Address
    printf ("Read Current MAC Address");
     WrPortE16 (0x02, 0xfc01); //0xfc01 = OwnMACAddress
     WrPortE16 (0x04, 0x0000); //Command Param 1
     WrPortE16 (0x06, 0x0000); //Command Param 2
     WrPortE16 (0x00, 0x0021); //Access Command
     AckEvStat();   //Check EvStat, Ack to EvAck 
     WrPortE16 (0x18, 0xfc01);
     WrPortE16 (0x1c, 0x00);
     Printf ("Current MAC Address is: ");
      for ( i=0; i<0x05; i++ )
      {
      printf ("%x ", RdPortE16 (0x36));
      } 
    printf ("\r\n");
    
    // End of  Code Snip






    Sponsership

    Connect to anyting, anywhere anytime with yoics.







    Last Update at 04-29-2025 1:16 pm
    Copyright 1994-2006 mycal, All Rights Reserved