From mboxrd@z Thu Jan 1 00:00:00 1970 From: arjun rath Subject: SPI-ADC Date: Thu, 22 Apr 2010 11:50:21 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org Hi Everybody, I am using a SPI based 12 bit adc(max1241) from maxim.I am trying to read the value from adc using spi_read() in linux kernel.But every time i used to read i am getting *0xff* only.(i have to read two consecutive bytes).To the adc chip i am probing with CRO which always shows DOUT pin of ADC as high provided the input to ADC is always 1.1 volt. And the clock is also coming as seen in the CRO with Chip select line going low. Is it a delay problem since for adc's we have to wait for sometime for conversion of data....???? Can anybody give some suggestion regarding this.... Thanks in advance ------------------------------------------------------------------------------