Wiznet makers

Hannah

Published November 29, 2024 ©

33 UCC

10 WCC

1 VAR

0 Contests

0 Followers

0 Following

How to Configure User-Defined PHY Modes on W55RP20

PHY status mode control

COMPONENTS Hardware components

WIZnet - W55RP20-EVB-Pico

x 1


PROJECT DESCRIPTION

W55RP20 not only supports automatic PHY auto-negotiation, but also supports user-defined PHY modes, including 10M/100M, half-duplex/full-duplex, power-down mode, etc.

 

PHYCFGR (W5500 PHY Configuration Register) [R/W] [0x002E] [0b10111XXX] 

PHYCFGR configures PHY operation mode and resets PHY. In addition, PHYCFGR indicates the status of PHY such as duplex, Speed, Link. 

 

Advantages & Applications of Low-Power PHY Chips

Low-power PHY chips offer significant benefits, including:

  1. Energy Efficiency: They reduce power consumption, extending the working time of battery-powered devices.
  2. Improved Thermal Performance: Designed for optimal heat dissipation, they maintain stable operation even under high loads.
  3. Extended Device Lifespan: Lower power consumption reduces heat buildup, minimizing wear and prolonging device life.
  4. Environmental Friendliness: They align with green initiatives by enhancing energy efficiency and supporting sustainable development.
  5. Versatility: Ideal for applications requiring long-term, efficient operation, such as IoT, smart homes, and medical devices.

These advantages make low-power PHY chips essential for modern, energy-efficient, and sustainable technology solutions.

1 Setup board configuration

Setup board to W55RP20_EVB_PICO in CMakeLists.txt in WIZnet-PICO-PHY_Control-C/ directory.

# Set board
#set(BOARD_NAME WIZnet_Ethernet_HAT)
#set(BOARD_NAME W5100S_EVB_PICO)
#set(BOARD_NAME W5500_EVB_PICO)
set(BOARD_NAME W55RP20_EVB_PICO)
#set(BOARD_NAME W5100S_EVB_PICO2)
#set(BOARD_NAME W5500_EVB_PICO2)

2 Setup board configuration

Setup network configuration such as IP in 'low_power.c' which is the Web I/O example in 'WIZnet-PICO-PHY_Control-C/examples/low_power/' directory.

Setup IP and other network settings to suit your network environment.

/* Network */
static wiz_NetInfo g_net_info =
    {
        .mac = {0x00, 0x08, 0xDC, 0x12, 0x34, 0x56}, // MAC address
        .ip = {192, 168, 11, 2},                     // IP address
        .sn = {255, 255, 255, 0},                    // Subnet Mask
        .gw = {192, 168, 11, 1},                     // Gateway
        .dns = {8, 8, 8, 8},                         // DNS server
        .dhcp = NETINFO_STATIC                       // DHCP enable/disable
};

 

3  Build & Run

You can configure the PHY to 100M full-duplex mode, 10M half-duplex mode, and low-power mode.

 

Documents
  • WIZnet-PICO-PHY_Control-C

Comments Write