We are in the process of evaluating the W5200 using the W5200 pictail plus module + hardware stack + dspic33e mcu.
In the provided sample code for the HW stack we found the ‘stable mode’ fragment.
WORD getSn_RX_RSR(BYTE s)
#if defined (__W5200_STABLE_MODE__)
WORD Temp1, Temp2;
Temp1 = ReadReg16(Sn_RX_RSR0(s)).Val;
Temp2 = ReadReg16(Sn_RX_RSR0(s)).Val;
}while(Temp1 != Temp2);
We observed that Sn_RX_RSR0 is read twice. Apparently it is risky to read Sn_RX_RSR0 only once. In the Datasheet we cannot find anything on this.
Can you clarify the double reading of Sn_RX_RSR0?
What are the risks of reading Sn_RX_RSR0 only once?