Hello, I have a problem with 12bit ADC (ads7844) with 8 analog channels and SPI interface to the mcu. The problem is that I am using 8 bit mcu (SPDAT register is 8 bit) and the data that the adc convert is 12 bit, how can I store the data ?
another question , do I need to use busy pin (in adc)?
thanks for help!
You can store the data in a 16-bit variable. Or you can pack your data and store two samples in 3 bytes.
But note that some 12-bit converters don't like a SPI controller that can't perform a 12-bit SPI transfer. Doing two 8-bit transfers or a single 16-bit transfers can result in the extra 4 bits destroying extra state inside the converter.