ZHCADO3 January 2024 DP83TC812R-Q1 , DP83TC812S-Q1
如果應(yīng)用中不能輕松訪問寄存器,可從 TI 獲取 USB-2-MDIO GUI,并可與 MSP430 LaunchPad 搭配使用。GUI 支持讀取和寫入寄存器以及運行腳本文件。GUI 可與 DP83TC812 和所有其他 TI 以太網(wǎng) PHY 配合使用。USB-2-MDIO 用戶指南和 GUI 可從此處下載。
圖 4-14 USB-2-MDIO GUI
圖 4-15 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 時鐘由總線主控(常是以太網(wǎng) MAC)生成。要使用 USB-2-MDIO GUI,必須在 MSP430? LaunchPad 與 DP83TC812 MDIO 和 MDC 引腳之間直接建立連接。
LaunchPad 引腳 4.1 → PHY 的 MDC 引腳