* Support Question
[not found] <1274199223.1763.0.camel@ubuntu.ubuntu-domain>
@ 2010-05-19 17:06 ` Amit kumar
2010-05-20 13:11 ` Nicolas Ferre
2010-05-20 17:18 ` Bill Gatliff
0 siblings, 2 replies; 3+ messages in thread
From: Amit kumar @ 2010-05-19 17:06 UTC (permalink / raw)
To: linux-arm-kernel
Dear Experts,
I am using SBC 9260 for development of a data acquisition platform. I am
using the SPI for data acquisition through 14 bit ADC slave. Currently
my board has debian 5.0 kernel version 2.6.30. I am using the spidriver
(spidev )for using the SPI on the board in master mode . Everything is
working fine and I am able to send and receive data . The only problem
is between the activation and deactivation of chip select.It takes
around 70microseconds for chipselect deactivation and then activation .
Since speed of my 4 channel ADC is 1MSPS so i need to bring down delay
as minimum as possible. I checked out the value of the registers
DLYBCS , DLYBCT , DLYBS and all are indicating the values 0.
Therefore I don;t have any idea from where the delay is being
introduced. Is it a problem of OS or there is nythng else involved .
Kindly guide me through this . I need urgent help .... any information
abt delay is welcome.
regards
amit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100520/0642f52e/attachment.htm>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Support Question
2010-05-19 17:06 ` Support Question Amit kumar
@ 2010-05-20 13:11 ` Nicolas Ferre
2010-05-20 17:18 ` Bill Gatliff
1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Ferre @ 2010-05-20 13:11 UTC (permalink / raw)
To: linux-arm-kernel
Le 19/05/2010 19:06, Amit kumar :
> Dear Experts,
>
> I am using SBC 9260 for development of a data acquisition platform. I am
> using the SPI for data acquisition through 14 bit ADC slave. Currently
> my board has debian 5.0 kernel version 2.6.30. I am using the spidriver
> (spidev )for using the SPI on the board in master mode . Everything is
> working fine and I am able to send and receive data . The only problem
> is between the activation and deactivation of chip select.It takes
> around 70microseconds for chipselect deactivation and then activation .
> Since speed of my 4 channel ADC is 1MSPS so i need to bring down delay
> as minimum as possible. I checked out the value of the registers
> DLYBCS , DLYBCT , DLYBS and all are indicating the values 0.
>
> Therefore I don;t have any idea from where the delay is being
> introduced. Is it a problem of OS or there is nythng else involved .
> Kindly guide me through this . I need urgent help .... any information
> abt delay is welcome.
In the atmel SPI driver, chipselect are managed by GPIO and not
automatically by the IP. I think that this is why you experience such
delays.
I am not totally aware about the reasons for this hand-made management
but I guess that you can find information on this mailing-list...
Best regards,
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 3+ messages in thread
* Support Question
2010-05-19 17:06 ` Support Question Amit kumar
2010-05-20 13:11 ` Nicolas Ferre
@ 2010-05-20 17:18 ` Bill Gatliff
1 sibling, 0 replies; 3+ messages in thread
From: Bill Gatliff @ 2010-05-20 17:18 UTC (permalink / raw)
To: linux-arm-kernel
On 05/19/2010 12:06 PM, Amit kumar wrote:
>
>
> Therefore I don;t have any idea from where the delay is being
> introduced. Is it a problem of OS or there is nythng else involved .
> Kindly guide me through this . I need urgent help .... any information
> abt delay is welcome.
The SPI drivers usually have a kernel thread to deal with transmissions
and chip selects. Make sure that kernel thread is on the RT scheduler,
otherwise it gets prioritized along with user applications--- which
would explain the delay you are seeing.
b.g.
--
Bill Gatliff
bgat at billgatliff.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-20 17:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1274199223.1763.0.camel@ubuntu.ubuntu-domain>
2010-05-19 17:06 ` Support Question Amit kumar
2010-05-20 13:11 ` Nicolas Ferre
2010-05-20 17:18 ` Bill Gatliff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).