Skip to content

Wiznet_stm8

STM8 with WIZ550io This project add STM8 with WIZ550io for Ethernet connection.

mayuri

Published December 29, 2022

Original author: MichaelTien8901 · CanadaOriginal source (new tab)

Wiznet_stm8

Components

Hardware components

Project description

Wiznet_stm8

STM8 with WIZ550io This project add STM8 with WIZ550io for Ethernet connection.

Hardware

STM8S Discovery board and WIZ550io. An optional RS232 adapter is used for debugging purpose.

Referred Project

The main program and settings of SPI is from this project using STM32 to connect WIZ500

C compiler

Use the free version of COSMIC C compiler for STM8.

IO Library

The IO libray used is from https://github.com/Wiznet/ioLibrary_Driver

Some changes are necessary because of name conflicts.

Tests

Test 1 Basic Socket

Use telnet to connect to defined IP and port. In this example, connect to 192.168.1.192 port 5000. The telnet client will receive a message and port closed.

Test 2 TCP Server

Test 3 TCP Client

Test 4 Ping Client

For porting to other MCU, Ping.c need define Endian correctly for the function htons. STM8 is Big Endian, so nothing is needed to do. For STM32, ATMEGA, you will need to define LITTLE_ENDIAN.

PINs Used

STM8S Discovery Board, switch power to 3.3V(JP1 to 1)

SignalSTM8CPU PinWIZNETDISCOVERY BOARD
SPI-SCKPC530J1-5CN2-6
SPI-MISOPC734J1-4CN2-10
SPI_MOSIPC633J1-3CN2-9
SCSnPG136J1-6CN2-12
WIZNET_RESETPG035J2-3CN2-11
INTn(*not Used)PC429J2-5CN2-5
GND  J1-1, J1-2, J2-6CN2-7
3V3  J1-7,J1-8,J2-1CN2-8,CN1-7

STM8S207C8 Board used for private project.

SignalSTM8CPU PinWIZNETIC-PIN
SPI-SCKPC530J1-5U5-5
SPI-MISOPC734J1-4U5-13
SPI_MOSIPC633J1-3U4-5
SCSnPE525J1-6U5-4*
WIZNET_RESETPE723J2-3U4-11
INTnPC429J2-5U4-3
GND  J1-1, J1-2, J2-6U4-7, U5-7
3V3  J1-7,J1-8,J2-1 
5V   U4-14,U5-14
  • SSR connect to H. U5-3 if SSR connect to L

Comments

Similar projects you might like

Comments