A couple of things ....
Don't REV (reverse) the bit order, both the MSSP and MCP23S08 use MSB first transfers.
And, the CS (chip select) should be taken low before each command, then made high again when the command is complete. Otherwise it thinks you're next command is consecutive bytes to the first one.
<br>
Bookmarks