Home arrow Support arrow Forums

Luminary Micro Forums

jonloveslou

Fresh Boarder
Click here to see the profile of this user

2007/12/03 10:40

LM3S8962

Hi,

I'm currently creating a LM3S8962 header file so I don't have to incorporate the Luminary library or loads of source files (don't want to include lots of unused APIs).

I'm stuck, however, at defining the register map for the Ethernet controller.

It's my understanding that MACRIS is at location 0x40048000, MACIM at 0x40048004, etc, as stated by Base Address and Offset in the datasheet.

My problem is when I come to define the MII addresses.

The first register(?) in this section is MR0, the Ethernet PHY Management Register 0.
The datasheet states that this is at Base 0x40048000, Address 0x00 and MR1 is at Address 0x01 and so forth. To me, that means 0x40048000 and 0x40048001, respectively, which can't be correct.
Does anybody know the exact locations of this group of registers or know how to interpret what is given?

Many thanks,
Jon

login or register to reply

magnuslundinse

Gold Boarder
Click here to see the profile of this user

2007/12/03 11:54

Re:LM3S8962

The MII registers are not in the microprocessor address range. The are addressed through the REGADDR field of the MACMCTL register.

The data is for the MII registers is transmitted through the MACMTXD and MACMRXD registers. See fig 17.1 in the datasheet.

/Magnus

login or register to reply

jonloveslou

Fresh Boarder
Click here to see the profile of this user

2007/12/04 03:33

Re:LM3S8962

Ah, I see. That makes much more sense now, thank you.

login or register to reply