set register for SPI