• AVR Freaks

ENC28J60 MAC Address ???

Author
lallisidhu
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2009/07/16 19:38:20
  • Location: 0
  • Status: offline
2009/07/20 04:46:53 (permalink)
0

ENC28J60 MAC Address ???

How to get the ENC28J60 mac address to configure in config.h file of Microchip Stack3.75


#define DEFAULT_MAC_ADDRESS (????)


IP address I understand is the spare local IP address I assign to the board but MAC is the physical address of Ethernet chip preprogrammed by manufacturer

How to get that and do I need to update in config.h .

Thanks


Jaspreet
#1

9 Replies Related Threads

    asmallri
    Super Member
    • Total Posts : 1864
    • Reward points : 0
    • Joined: 2004/05/26 09:00:05
    • Location: Perth, Australia
    • Status: offline
    RE: ENC28J60 MAC Address ??? 2009/07/20 05:02:29 (permalink)
    0
    The MAC address is something that is pre-programmed by the manufacturer of a NIC card. In the case of the ENC28J60 controller it is up to you to provide the MAC address. The ENCx24J600 controllers however do provide a MAC address.

    If you require the MAC address for development and testing purposes you can use just about any providing you ensure the least significant bit of the most significant byte is 0 (otherwise it would indicate a multicast MAC address). You could use a MAC address from an old Ethernet card - these cards can be bought for a few cents. Other options include
    • buying a MAC address EEPROM from Microchip
    • buying a block of addresses from IEEE
    • using a public MAC address (OUI = 0x10 0x00 0x00)

    Regards, Andrew

    http://www.brushelectronics.com/index.php?page=software
    Home of Ethernet, SD Card, and Encrypted Serial and USB Bootloaders for PICs!!
    #2
    cparris
    Senior Member
    • Total Posts : 144
    • Reward points : 0
    • Joined: 2005/01/16 01:12:21
    • Location: Chandler, AZ
    • Status: offline
    RE: ENC28J60 MAC Address ??? 2009/07/20 12:04:40 (permalink)
    0
    If you're interested in the Microchip MAC address EEPROMs that asmallri mentioned above, you can read about them here:

    http://www.microchip.com/mac
    #3
    lallisidhu
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2009/07/16 19:38:20
    • Location: 0
    • Status: offline
    RE: ENC28J60 MAC Address ??? 2009/07/20 21:45:37 (permalink)
    0
    Thanks for the support ..

    I found some unused NIC cards and am using the their MAC address.




    Best Regards


    Jaspreet
    #4
    agiofelipe
    Starting Member
    • Total Posts : 62
    • Reward points : 0
    • Joined: 2009/06/24 11:57:03
    • Location: 0
    • Status: offline
    Re: RE: ENC28J60 MAC Address ??? 2018/10/06 13:57:21 (permalink)
    0
    asmallri
    The MAC address is something that is pre-programmed by the manufacturer of a NIC card. In the case of the ENC28J60 controller it is up to you to provide the MAC address. The ENCx24J600 controllers however do provide a MAC address.

    If you require the MAC address for development and testing purposes you can use just about any providing you ensure the least significant bit of the most significant byte is 0 (otherwise it would indicate a multicast MAC address). You could use a MAC address from an old Ethernet card - these cards can be bought for a few cents. Other options include
    • buying a MAC address EEPROM from Microchip
    • buying a block of addresses from IEEE
    • using a public MAC address (OUI = 0x10 0x00 0x00)




    Hello, I want to market a board that I developed with PIC18F + ENC28J60, what are my options in regards to mac address?
     
    Thanks
    #5
    NKurzman
    A Guy on the Net
    • Total Posts : 18849
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: RE: ENC28J60 MAC Address ??? 2018/10/06 14:55:17 (permalink)
    0
    The options are there.
    -Buy a block of addresses from IEEE
    -buy memory chips with Mac addresses from microchip or somebody else.
    #6
    crosland
    Super Member
    • Total Posts : 2009
    • Reward points : 0
    • Joined: 2005/05/10 10:55:05
    • Location: Warks, UK
    • Status: offline
    Re: RE: ENC28J60 MAC Address ??? 2018/10/07 03:41:39 (permalink)
    0
    agiofelipe
    asmallri
    Other options include
    • buying a MAC address EEPROM from Microchip
    • buying a block of addresses from IEEE
    • using a public MAC address (OUI = 0x10 0x00 0x00)



    Hello, I want to market a board that I developed with PIC18F + ENC28J60, what are my options in regards to mac address?
     

     
    Try reading the post that you quoted above.
    #7
    agiofelipe
    Starting Member
    • Total Posts : 62
    • Reward points : 0
    • Joined: 2009/06/24 11:57:03
    • Location: 0
    • Status: offline
    Re: RE: ENC28J60 MAC Address ??? 2018/10/07 05:24:45 (permalink)
    0
    crosland
     
    Try reading the post that you quoted above.


    Can I use a public mac address on a system that will be marketed?
     
    NKurzman
     
    The options are there.
    -Buy a block of addresses from IEEE
    -buy memory chips with Mac addresses from microchip or somebody else.



    I want only 100 units, IEEE provides from 4096.
    I do not know if memory chips with mac are easy to insert into my system!
     
    #8
    qhb
    Superb Member
    • Total Posts : 9999
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: RE: ENC28J60 MAC Address ??? 2018/10/07 05:42:56 (permalink)
    5 (1)
    agiofelipe
    Can I use a public mac address on a system that will be marketed?

    No. The whole idea is to ensure that every device has a unique address.
     
    agiofelipe
    I want only 100 units, IEEE provides from 4096.
    I do not know if memory chips with mac are easy to insert into my system!

    You don't have to actually put the chip in your system. Once you purchase the chip, you "own" the address inside it.

    Nearly there...
    #9
    NKurzman
    A Guy on the Net
    • Total Posts : 18849
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: RE: ENC28J60 MAC Address ??? 2018/10/07 08:30:48 (permalink)
    0
    agiofelipe

    I want only 100 units, IEEE provides from 4096.I do not know if memory chips with mac are easy to insert into my system! 

    I do not know anything about your system.
    The are typically I2C or SPI. Does that help?
    #10
    Jump to:
    © 2020 APG vNext Commercial Version 4.5