ZHCADI8 December 2023 DP83822H , DP83822HF , DP83822I , DP83822IF
如果應(yīng)用中不能輕松訪問寄存器,可從 TI 獲取 USB-2-MDIO GUI,它可與 MSP430 LaunchPad 搭配使用,并可通過 TI 網(wǎng)上商店購買。GUI 支持讀取和寫入寄存器以及運(yùn)行腳本文件。它可與 DP83822 和 TI 以太網(wǎng)產(chǎn)品系列中的其他器件搭配使用。USB-2-MDIO 用戶指南和 GUI 可從以下位置下載:http://www.cqwzaes.cn/tool/cn/usb-2-mdio。
圖 2-21 USB-2-MDIO GUI
圖 2-22 MSP430 LaunchPad下面是一個(gè)示例腳本,也可以在“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 時(shí)鐘由總線主控(通常是以太網(wǎng) MAC)生成。要使用 USB-2-MDIO GUI,必須在 MSP430 LaunchPad 與 DP83822 MDIO 和 MDC 引腳之間直接建立連接。