Write Processing - Wiznet WIZ810Sio User Manual

Table of Contents

Advertisement

{
SpiSendData(0);
data_buf[idx] = SpiRecvData(idx);
}
CSon();
// CS=1, SPI end
ISR_ENABLE();
// Interrupt Service Routine disable
}

3.3. Write processing

The WRITE processing is entered by driving SCSn low, followed by the Address,
the OP code, the Data Length, and the Data byte on MISO.
In W5100S SPI mode, the Byte WRITE processing and the Burst WRITE processing
are provided. The Byte WRITE processing takes 3 instructions 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 MOSI pin should be selected by driving MOSI low after the
falling edge of the SCSn.
/* Pseudo Code for Write data of 8bit per packet */
#define
data_write_command
uint16 addr;
// Address : 16bits
WIZ810Sio User Manual (WIZnet Co.,Ltd.)
// Dummy data
// Read data
< Write Sequence >
0x80
10

Advertisement

Table of Contents
loading

Table of Contents