cancel
Showing results for 
Search instead for 
Did you mean: 

HAL Ethernet SMI - read more than 31 registers?

John Doe1
Associate III

How can I read more than 31 registers using SMI/ethernet? Microchip(.com) LAN ic allows read many more register (at custom address, like 1BCh).

I tried to use HAL_ETH_ReadPHYRegister(), but

• PADDR: the PHY address is 5 bits, allowing 32 unique PHY addresses. The MSB bit of
the address is the first transmitted and received.
• RADDR: the register address is 5 bits, allowing 32 individual registers to be addressed
within the selected PHY device. The MSB bit of the address is the first transmitted and
received.

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
waclawek.jan
Super User

Registers beyond the standard 0x1F are accessed through some extended mechanism, usually either indirect access using one standard register as address register and one other as the indirect data register; or through paging. MCHP now has through acquisitions 3 different ETH PHY lines at hand, so specifics depend on the particular chip and are detailed in that chip's datasheet or other accompanying documentation.

I don't Cube, but this is more about understanding the underlying mechanism.

JW