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------------{=
   - bar...@tkos.co.il - 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
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to