From: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
To: Tom <tom.spi.devel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Regd: SPI Slave Select
Date: Fri, 28 Jan 2011 10:24:43 +0200 [thread overview]
Message-ID: <20110128082443.GA6927@tarshish> (raw)
In-Reply-To: <AANLkTimpC8Atvves=r+CLQYZKByLpyo8bm+xfnKvXAas-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Tom,
On Fri, Jan 28, 2011 at 01:28:54PM +0530, Tom wrote:
> I have a SPI slave device which expects the slave select line to be active
> (low) during the entire message (e.g: say for a two byte transfer, the SS
> should be low for until both the bytes have been written, and should not go
> inactive in-between bytes being transfered).
> But, I notice, this is not the case. The SS goes inactive in between bytes
> transfer.
>
> Does the spi framework provide any support to avoid SS being deactivated
> between byte transfer ?
This is a (mis)feature of the DesignWare SPI master hardware, when SCPOL = 1.
See figure 16 (page 63) in the DesigWare DW_apb_ssi Databook. The only
solution is to use an external GPIO to control the SS signal.
Another misfeature of this SPI master hardware is that it deactivates the SS
signal automatically when the FIFO empties. This may or may not affect you, it
depends on your application. Anyway, the solution here is again to use an
external GPIO for SS.
baruch
> I have multiple slave devices on the same bus, so I can't keep the slave
> always selected.
>
> My master driver is dw_spi.c and linunx kernel version is 2.6.35.
>
> Regards,
> Tom
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org - tel: +972.2.679.5364, http://www.tkos.co.il -
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
next prev parent reply other threads:[~2011-01-28 8:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-28 7:58 Regd: SPI Slave Select Tom
[not found] ` <AANLkTimpC8Atvves=r+CLQYZKByLpyo8bm+xfnKvXAas-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-28 8:24 ` Baruch Siach [this message]
2011-01-28 9:12 ` Tom
[not found] ` <AANLkTinkWD4CMEjLCCKzECaC4i5JQJeBPwPjGOrr9f5B-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-02 7:56 ` Baruch Siach
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=20110128082443.GA6927@tarshish \
--to=baruch-nswtu9s1w3p6gbpvegmw2w@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=tom.spi.devel-Re5JQEeQqe8AvxtiuMwx3w@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.