SPI Device Programming and Pulse measurement