Thanks sripad.
But please allow me to clarify.
What you said is correct, if register 0x20 defines the "state" or value of GPO upon entering RX or TX state.
However, UG-672 states that register 0x20 defines which GPO "changes state" or toggles upon entering RX or TX state.
In fact, UG-673 even has a specific example which says
For example let Register 0x26 be 0x00 (ENSM control enabled), Register 0x27 be 0xFF (initialize all GPO pins to 1), and Register 0x20 = 0x24(toggle the GPO_1 pin in Rx and GPO_2 in Tx). When the part enters alert state, all GPO pins will become high. When the part enters Tx, only Pin GPO_2 pin will toggle low. When the part enters Rx, GPO_1 pin will toggle low.
So following your explanation and applying it to the example given,
- from alert to RX, GPO will go from 0xF to 0x2 (3 GPOs will toggle)
- from alert to TX, GPO will go from 0xF to 0x4 (3 GPOs will toggle)
which is different from what is stated on UG-673.