changed spi word length to 24 bits