Data Sheet
© Copyright 2013 WIZnet Co.,Ltd. All rights reserved. 
39
iEthernet 
W5200
Figure 7 Physical Address Calculation 
But this value itself is not the physical address to read. So, the physical address should be 
calculated as follow. 
1.  Socket  n    TX  Base  Address  (hereafter  we'll  call   gSn_TX_BASE)  and  Socket  n    TX 
Mask Address (hereafter we'll call gSn_TX_MASK) are calculated on TMSR value. Refer 
to the psedo code of the Initialization if detail is needed. 
2.  The bitwise-AND operation of two values, Sn_TX_WR and gSn_TX_MASK give result to 
the offset address(hereafter we'll call get_offset) in TX memory range of the socket. 
3.  Two values  get_offset and  gSn_TX_BASE  are  added  together to  give  result  tothe 
physical address(hereafter,  we'll call get_start_address). 
Now, write the transmission data to get_start_address as large as you want. (* There's a case 
that it exceeds the TX  memory upper-bound  of  the socket  while writing.  In this  case,  write 










