Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: MDD (MDIO/MDC) library for Teensy

  1. #1
    Senior Member
    Join Date
    Dec 2016
    Location
    Wales
    Posts
    122

    MDD (MDIO/MDC) library for Teensy

    Hi All,

    I'm designing an ethernet repeater, and I was looking at ways to debug it. I'm not planning on having anything manage the link, it's just going to be two phy's back to back with the RMII interface. It does occur to me, that having some way to access the MDIO/MDC bus externally would be nice, in case I need to fiddle with any registers. Ideally, I'll get all my straps right the first time, but that's not always the case is it?

    Is there a library available/has anyone done this, so I can connect a teensy to the bus and use it for this purpose?

    Ed

  2. #2
    Senior Member
    Join Date
    Dec 2016
    Location
    Wales
    Posts
    122
    Further to this, I've not found any such library and I'm definitely going to need something to do the job as I actually need to drop in a micro to change a single register at power on. The MDIO interface is pretty similar to I2C, with a data line and a clock line, with one master controlling the clock, and slaves that have unique addresses. There's no minimum speed requirement for the bus, and I only really need to write one register on one slave, so I think this calls for a spot of bit-banging. Does anyone have a good starting point for an efficient way to code sending data out with a clock?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •