Skip to main content

W5500 - Initialization

This page provides a simple example of how to initialize and use the W5500 module with Dasduino CONNECTPLUS.

Initialization

To use the W5500 module with an Arduino, you need to include the appropriate libraries, define the CS pin, create an instance of the EthernetClient object, and initialize it within the setup() function.

Here's an example of how to initialize the W5500 module:

#include <SPI.h>
#include <Ethernet.h>

#define CS_PIN 5 //Define the connected Chip Select pin

// Enter a MAC address for your controller below.
// It can be any free address in your network
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

EthernetClient client;

void setup(){
Ethernet.init(CS_PIN);
}
//...

Ethernet.init()

Used to configure the CS (chip select) pin for the Ethernet controller chip.

Returns type: None

Function parameters:

TypeNameDescription
intsspinThe pin number to use for CS.