Thanks, I will give that a try.
Now if I could write both bytes at the same SPI communication, that would be an even bigger win!
Thanks, I will give that a try.
Now if I could write both bytes at the same SPI communication, that would be an even bigger win!
"If we knew what we were doing, it wouldn't be called research"
- Albert Einstein
If you have the MCP23S17 IOCON register set to it's default setting of $00 that sets the chip to 16-bit mode (BANK=0) with auto address increment enabled (SEQOP=0).
In that mode you can send register address byte = $14 (OLATA) and then write the two data bytes and they'll go to OLATA and OLATB.
That is exactly what I was looking for!
I thought I had done this before but could have been mistaken.
Will try later this evening.
Thanks!
-Steve
"If we knew what we were doing, it wouldn't be called research"
- Albert Einstein
Bookmarks