ADC and SPI changes