Ali, I'm not sure what wrong in the data stream. It looks like you're getting about 14 zeros in a set of 256 data. To help debug this, can you get an oscilloscope or logic analyzer shot of the communications from the microcontroller to the ADC? I'd like to see the /CS, DIN, DOUT, and SCLK. If you can capture the a good read of the device and another read where the data comes out as zeros, that would be helpful. You can also use these shots to verify that the proper device timing is met. I'd also like a little more explanation about the timing you are using in communication with the device. I'm not getting enough information about the timing from the code you've provided. Joseph Wu
↧