* ADS1256 - too fast for Linux ?
@ 2011-01-14 12:02 Flávio Alberto Lopes Soares
[not found] ` <AANLkTikhEd1AER28AoV3DVqZENzXyX3RRpv7CP2sOvdE-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Flávio Alberto Lopes Soares @ 2011-01-14 12:02 UTC (permalink / raw)
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ADS1256 - too fast for Linux ?
[not found] ` <AANLkTikhEd1AER28AoV3DVqZENzXyX3RRpv7CP2sOvdE-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-01-14 23:29 ` Kenneth Heitke
[not found] ` <4D30DC66.6080706-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Kenneth Heitke @ 2011-01-14 23:29 UTC (permalink / raw)
To: Flávio Alberto Lopes Soares
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ADS1256 - too fast for Linux ?
[not found] ` <4D30DC66.6080706-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
@ 2011-01-15 20:58 ` Flávio Alberto Lopes Soares
0 siblings, 0 replies; 3+ messages in thread
From: Flávio Alberto Lopes Soares @ 2011-01-15 20:58 UTC (permalink / raw)
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
According with the chip datasheet the SPI must be set to mode 1 (clock start
in 0 and SPI data sample on leading edge) but it doesn't works for any spi
mode that I set, because this behavior I thought on short time to O.S. deal
with the interrupt.
How to know if DMA is activated ? DMA can solve this problem (if turned on
realy this is not the solution...)
Thanks for all help
Flavio Alberto
2011/1/14 Kenneth Heitke <kheitke-sgV2jX0FEOL9JmXXK+q4OQ@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-15 20:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
[not found] ` <4D30DC66.6080706-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2011-01-15 20:58 ` Flávio Alberto Lopes Soares
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.