Skip to content

Implement DHCP automatic IP address acquisition function based on W5500 chip

Implement DHCP automatic IP address acquisition function based on W5500 chip

ronpang

Published January 06, 2026

Original author: alloutlove · ChinaOriginal source (new tab)

Implement DHCP automatic IP address acquisition function based on W5500 chip

Project description

Implement DHCP automatic IP address acquisition function based on W5500 chip I. Hardware 1. Circuit connection W5500 pin STM32 pin Function Description SCLK PA5 SPI clock MOSI PA7 The main one goes out, the secondary one comes in. MISO PA6 The main enters, the secondary exits CS PA4 Chip select signal INT PA3 Interrupt pin RESET PA2 Reset pin 3.3V 3.3V power supply GND GND ground wire 2. Network Topology [STM32] --SPI--> [W5500] --RJ45--> 局域网交换机 ↑ DHCP服务器 II. Software Implementation Steps 1. Register initialization // W5500复位配置 void W5500_Reset() { GPIO_ResetBits(GPIOA, GPIO_Pin_2); //…

Keep reading with a free account

Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.

Similar projects you might like