---
title: "W5500 spi switching inside while loop during of main loop"
url: "https://maker.wiznet.io/forum/15640"
markdown_url: "https://maker.wiznet.io/forum/15640/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "bahmanroshan"
created: "2025-03-12T15:32:57+09:00"
last_activity: "2025-03-12T15:32:57+09:00"
language: "en"
views: 2
replies: 0
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# W5500 spi switching inside while loop during of main loop

## Question

Asked by bahmanroshan on 2025-03-12 in Ethernet Chips.

Please give me a standard c code for multiple w5500 whit seperated in which we need to spi switching between spi1 and spi2 inside of while main loop.

---

Source: https://maker.wiznet.io/forum/15640
