Data Sheet
© Copyright 2013 WIZnet Co.,Ltd. All rights reserved. 
76
iEthernet 
W5200
CSoff();    // CS=0, SPI start   
// SpiSendData 
SpiSendData(((addr+idx) & 0xFF00) >> 8);      // Address byte 1 
SpiSendData((addr+idx) & 0x00FF);        // Address byte 2 
// Data write command + Data length upper 7bits 
SpiSendData((data_read_command| ((data_len& 0x7F00) >> 8))); 
// Data length bottom 8bits 
SpiSendData((data_len& 0x00FF));   
// Read data:On data_len> 1, Burst Read Processing Mode. 
for(int idx = 0; idx<data_len; idx++) 
{ 
SpiSendData(0);    // Dummy data 
data_buf[idx] = SpiRecvData(idx);    // Read data 
} 
CSon();    // CS=1, SPI end 
ISR_ENABLE();    // Interrupt Service Routine disable 
} 










