debugged SPI msb first