Socket Status Register Sn_SR Clarification...

Are the Socket Status Register(s) values exclusive, or can more than one status be set within the register at a time?

I suspect that only one socket status can be set at a time. Though the documentation does explicitly state this.

Kindly,
Graham

Of course there’s only one state at a time, but you must keep in mind that state can change quickly - for example when TCP is connecting - state may progress through 0x14-0x17 quickly. Each status value identifies state the chip is (was) at the time state was read.

Each socket is having its status register, and these statuses are not related to each other, but to the state of their respective socket.

Great! Thanks again Eugeny.

1 Like