Using an internal timer and SPI at the same time