Hello,
I am trying to send out the ADC value to my microcontroller(hercules) on SPI. The adc needs 18 clocks to push 16 bit data out but hercules has max word length of 16 bits. So I am doing 2 successive receives so that I get 2 16 bit words out then left shifting these by 2 bits to compensate for the 2 clock cycles. But I am not getting the exact reading on miso pin. Could you also help me with the math that I should be using for converting the obtained code to Analog voltage value. (I am using ADC in single ended operation mode)
Thanks,
Aditi