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 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...