SPI controller core