Getting garbage from the National Semiconducter ADC088S052 8 channel ADC
BillDer
Posts: 33
I am at a loss to explain why I get the same twelve bits on all 8 channels when I should be getting 0's or close to 0 on 7 of them and be getting something close to represent 1.5 Volts on chan. 0. I first tried to use the SPI code from Beau in the OBEX then found this driver fromCanniba lRobotics who posted the ADC088S052 Driver.
I did adjust the Clk, Din, Dout, CS pins accordingly.
Anyone with experience with this chip or with SPI code that overlaps the address out with the MSB of the data in? The timing chart for the ADC088S052 is attached.
I did adjust the Clk, Din, Dout, CS pins accordingly.
Anyone with experience with this chip or with SPI code that overlaps the address out with the MSB of the data in? The timing chart for the ADC088S052 is attached.
Comments
You'll need to setup the IOs (see constants in code) prior to calling this the first time.
Thank you.
Bill