---
title: "How to Configure User-Defined PHY Modes on W55RP20"
url: "https://maker.wiznet.io/Hannah/projects/how-to-configure-user-defined-phy-modes-on-w55rp20/"
markdown_url: "https://maker.wiznet.io/Hannah/projects/how-to-configure-user-defined-phy-modes-on-w55rp20/md"
type: "WCC: WIZnet Created Content"
author: "Hannah Lee"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Hannah Lee"
published: "2024-11-29"
language: "en"
hardware: ["WIZnet W55RP20-EVB-Pico"]
likes: 0
views: 541
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# How to Configure User-Defined PHY Modes on W55RP20

> PHY status mode control

Original author: Hannah Lee

## Components

- **WIZnet W55RP20-EVB-Pico** x 1 ([docs](https://wiznet.io/products/powered-by-raspberry-pi/w55rp20-evb-pico))

## Documents and links

- [WIZnet-PICO-PHY_Control-C](https://github.com/wizhannah/WIZnet-PICO-PHY_Control-C) (code)

## Article

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.

![](https://maker.wiznet.io/upload/ckeditor5/19233354%5F1732895194%2Epng)

### **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.

```plaintext
# 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.

```plaintext
/* 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.

![](https://maker.wiznet.io/upload/ckeditor5/19233354%5F1732897284%2Epng)

![](https://maker.wiznet.io/upload/ckeditor5/19233354%5F1732897559%2Epng)

---

Source: https://maker.wiznet.io/Hannah/projects/how-to-configure-user-defined-phy-modes-on-w55rp20/
