background image

 

WIZ810Sio User Manual (WIZnet Co.,Ltd.) 

11 

 

 

 

 

 

 

 

 

int16 data_len;

        // Data length :15bits 

uint8 data_buf[];   

// Array for data

 

 

SpiSendData();     

//Send data from MCU to    W5100S

 

 

ISR_DISABLE();

// Interrupt Service Routine disable 

CSoff();

// CS=0, SPI start   

//OP Write command   

SpiSendData(0xF0); 

 

SpiSendData(((addr+idx) & 0xFF00) >> 8);   

// Address byte 1

 

SpiSendData((addr+idx) & 0x00FF);   

// Address byte 2

 

 

 

// Write data: On data_len> 1, Burst Write Processing Mode. 

 

for(int idx = 0; idx<data_len; idx++) 

SpiSendData(data_buf[idx]); 

 

CSon();   

// CS=1, SPI end

 

 

IINCHIP_ISR_ENABLE();   

// Interrupt Service Routine disable 

Summary of Contents for WIZ810Sio

Page 1: ...WIZ810Sio User Manual WIZnet Co Ltd 1 WIZ810Sio User Manual Version 1 0 2018 WIZnet Co Ltd All Rights Reserved For more information visit our website at http www wiznet io...

Page 2: ...WIZ810Sio User Manual WIZnet Co Ltd 2 Document Revision History Date Revision Changes 2018 12 28 V1 0 Official Release...

Page 3: ...assignment 5 2 2 Pin description 6 3 Device SPI operations 7 3 1 Process of using general SPI Master device 7 3 2 Read processing 8 3 3 Write processing 10 4 Timing diagram 12 4 1 Reset Timing 12 4 2...

Page 4: ...d in W5100S Connector MAG JACK RJ45 with Transformer 1 1 Feature Support Hardwired Internet protocols TCP UDP WOL over UDP ICMP IGMPv1 v2 IPv4 ARP PPPoE Support 4 independent SOCKETs simultaneously Su...

Page 5: ...WIZ810Sio User Manual WIZnet Co Ltd 5 2 Pin assignment description 2 1 Pin assignment TOP side view Pin assignment...

Page 6: ...pin indicates that W5100S requires MCU attention after socket connecting disconnecting data receiving timeout and WOL Wake on LAN The interrupt is cleared by writing IR Register or Sn_IR Socket n th...

Page 7: ...operates as SPI Slave device and supports the most common modes SPI Mode 0 and 3 The only difference between SPI Mode 0 and 3 is the polarity of the SCLK signal at the inactive state With SPI Mode 0 a...

Page 8: ...OP 0x0F the read operation is selected On OP 0xF0 the write operation is selected In W5100S SPI mode the Byte READ processing and the burst READ processing are provided The Byte READ processing takes...

Page 9: ...8 data_buf Array for data SpiSendData Send data from MCU to W5100S SpiRecvData Receive data from W5100S to MCU ISR_DISABLE Interrupt Service Routine disable CSoff CS 0 SPI start OP Read command SpiSen...

Page 10: ...which is consist of the 8 bit OP code 0xF0 the 16 bit Address and 8 bit Data Otherwise The Burst WRITE processing only takes the Data instruction after the setting of the Burst WRITE processing The MO...

Page 11: ...Interrupt Service Routine disable CSoff CS 0 SPI start OP Write command SpiSendData 0xF0 SpiSendData addr idx 0xFF00 8 Address byte 1 SpiSendData addr idx 0x00FF Address byte 2 Write data On data_len...

Page 12: ...WIZ810Sio User Manual WIZnet Co Ltd 12 4 Timing diagram 4 1 Reset Timing...

Page 13: ...WIZ810Sio User Manual WIZnet Co Ltd 13 4 2 SPI Access Read Timing 4 3 SPI Access Write Timing...

Page 14: ...WIZ810Sio User Manual WIZnet Co Ltd 14 5 Dimensions...

Page 15: ...WIZ810Sio User Manual WIZnet Co Ltd 6 15 6 Reference Schematics...

Page 16: ...defects which occur during normal use and does not extend to damage to products or parts which results from alternation repair modification faulty installation or service by anyone other than someone...

Reviews: