---
title: "WIZnet 5200 (Ethernet, UDP) + STM32"
url: "https://maker.wiznet.io/WIZnet/projects/wiznet-5200-ethernet%2C-udp-stm32/"
markdown_url: "https://maker.wiznet.io/WIZnet/projects/wiznet-5200-ethernet%2C-udp-stm32/md"
type: "UCC: User Created Content"
author: "khomin"
author_url: "http://we.easyelectronics.ru/electro-and-pc/wiznet-5200-ethernet-udp-stm32.html"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "khomin"
original_url: "http://we.easyelectronics.ru/electro-and-pc/wiznet-5200-ethernet-udp-stm32.html"
published: "2023-02-14"
language: "en"
hardware: ["WIZnet W5200"]
likes: 3
views: 304
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# WIZnet 5200 (Ethernet, UDP) + STM32

> W5200 UDP Test with STM32

Original author: khomin (source: http://we.easyelectronics.ru/electro-and-pc/wiznet-5200-ethernet-udp-stm32.html)

## Components

- **WIZnet W5200** x 1 ([docs](https://docs.wiznet.io/Product/iEthernet/W5200/))

## Article

The **Wiz5200** has 24 general-purpose registers and 24 socket control registers.
I don’t see the point of reprinting the datasheet.
I’ll just recommend taking mine, with registers already bookmarked (and why didn’t the developers do it?..)
**![](https://maker.wiznet.io/uploads/2022/05/20220524-3-300x153.jpg)**

![](https://maker.wiznet.io/uploads/2022/05/20220524-4-300x90.jpg)
In this part, everything turned out to be simple and understandable.
The addresses of all registers consist of two bytes. First, the eldest is sent, then the younger.
Immediately after the address – there are two bytes of data length (specify how many bytes we want to write or receive).
Attention, in the very first bit, in the highest byte of the length (on the diagram from the signature **OP)** you need to choose the direction of the data – OP in 1 – write, 0 – read.
The recording also occurs (remember about the OP bit))

---

Source: https://maker.wiznet.io/WIZnet/projects/wiznet-5200-ethernet%2C-udp-stm32/
