KurtE
Senior Member+
I pushed up a version of my all in one SPI library: https://github.com/KurtE/SPI/tree/SPI-Multi-one-class
That appears to fix it. Ran the test program shows the right order. Changed the test program to MSBFirst and ran again and shows up correct order
Note could test CTAR1... But it is also initialized to CTAR0 + the 8 bit on the count to make it 16 bit transfers...
Could also maybe test CTAR0 vs CTAR1 and if LSFBE is set or CTAR0 not equal to CTAR1 + 8 bit, then have the new second part I put in do 8 bit mode only...
That appears to fix it. Ran the test program shows the right order. Changed the test program to MSBFirst and ran again and shows up correct order
Note could test CTAR1... But it is also initialized to CTAR0 + the 8 bit on the count to make it 16 bit transfers...
Could also maybe test CTAR0 vs CTAR1 and if LSFBE is set or CTAR0 not equal to CTAR1 + 8 bit, then have the new second part I put in do 8 bit mode only...
Last edited: