All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kenneth Heitke <kheitke-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
To: "Flávio Alberto Lopes Soares"
	<flavioalsoares-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: ADS1256 - too fast for Linux ?
Date: Fri, 14 Jan 2011 16:29:42 -0700	[thread overview]
Message-ID: <4D30DC66.6080706@codeaurora.org> (raw)
In-Reply-To: <AANLkTikhEd1AER28AoV3DVqZENzXyX3RRpv7CP2sOvdE-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 01/14/2011 05:02 AM, Flávio Alberto Lopes Soares wrote:
> Hello all,
> I need to communicate with a Texas Instruments ADS1256 SPI 24 bits ADC (
> http://focus.ti.com/docs/prod/folders/print/ads1256.html) from a 2.6.32
> kernel Linux running on a ARM Samsung S3C2440 microcontroller using spidev
> module, to do this I need to pass a command on MOSI channel and after read
> the result on MISO, but I can't read the correct data from this ADC, the
> data is always corrupted, I believe (but I can't prove this) this occurs
> because the very short time between the command and response, according with
> the component datasheet this time is 50x the clock period, for my circuit
> this is approximately 8us and I believe that there's no time to Linux get
> the interrupt from SPI process this and read the SPI data, my suspicion can
> be correct ? The DMA cannot solve this problem and if true how to know if it
> is activated ? Only Real Time Linux can solve this ?
>
> Thanks for all help
>
> Flavio Alberto Lopes Soares
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> spi-devel-general mailing list
> spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/spi-devel-general
>

Curious if the SPI mode (clock polarity and phase) are set correctly for 
the device that you are communicating with.

Ken

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl

  parent reply	other threads:[~2011-01-14 23:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-14 12:02 ADS1256 - too fast for Linux ? Flávio Alberto Lopes Soares
     [not found] ` <AANLkTikhEd1AER28AoV3DVqZENzXyX3RRpv7CP2sOvdE-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-14 23:29   ` Kenneth Heitke [this message]
     [not found]     ` <4D30DC66.6080706-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2011-01-15 20:58       ` Flávio Alberto Lopes Soares

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D30DC66.6080706@codeaurora.org \
    --to=kheitke-sgv2jx0feol9jmxxk+q4oq@public.gmane.org \
    --cc=flavioalsoares-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.