ZHCADI5 December 2023 DP83869HM
如果應用中不能輕松訪問寄存器,可從 TI 獲取 USB-2-MDIO GUI,它可與 MSP430? LaunchPad 搭配使用,并可通過 TI 網上商店購買。GUI 支持讀寫寄存器和運行腳本文件,并可與 DP83869HM 和 TI 以太網產品系列中的其他器件搭配使用。USB-2-MDIO 用戶指南和 GUI 可從此位置下載。
圖 4-1 USB-2-MDIO GUI
圖 4-2 MSP430 LaunchPad下面是一個示例腳本,也可以在“Help”菜單的 USB-2-MDIO GUI 中找到:
// This is how you make a comment. All scripts must start with 'begin'
begin
// To read a register, all you need to do is put down the 4 digit
// HEX value of the registers (from 0000 to FFFF)
// Example to read registers 0001, 000A, and 0017
0001
000A
0017
// To write a register, all you need to do is put down the 4 digit
// HEX value of the register (from 0000 to FFFF) followed by the
// HEX you desire to configure the register to (from 0000 to FFFF)
// Example to write 2100 to register 0000 and
// Example to write 0110 to register 0016
0000 2100
0016 0110
// You must end the script by adding 'end' once you are finished
end
由 IEEE 802.3 定義的串行管理接口是單主總線。MDC 時鐘由總線主控(通常是以太網 MAC)生成。要使用 USB-2-MDIO GUI,必須在 MSP430 LaunchPad 與 DP83867 MDIO 和 MDC 引腳之間直接建立連接。 具體而言,如果將引腳 4.1 連接至 MDC、引腳 4.2 連接至 MDIO 并將任何 GND 連接至 PHY 接地,則允許 MSP 通過 USB-2-MDIO 讀取和寫入 PHY 的寄存器。