Re: eth400 driver, write MII.
Robert Muchsel <robert.muchsel-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
You're right. Coincidentally, the Ethernet driver code on our ftp site was updated a few days ago and fixes this problem. TINI 1.13 will also contain the updated code. Robert On Wed, 2004-01-07 at 14:15, Arnaud Goblet wrote: > The function ETH_WriteMII (application note 712), first writes address > and command (write) to CSR_MII_ADDR register, then waits until MII is not busy > and writes the data to be sent in CSR_MII_DATA. > > Wouldn't it be better to : > - wait MII not busy > - write data to CSR_MII_DATA > - write address to CSR_MII_ADDR > > I guess that the same code is used in > com.dalsemi.tininet.TININet.read/writeMII(). It explains why you have > to write twice. (first time to load value in CSR_MII_DATA, second time to send it to PHY) -- Robert Muchsel - Dallas Semiconductor - http://www.maxim-ic.com/TINI/ _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini