SPI Device Programming and Pulse Measurement