Hello everybody,

I am testing the BBB and spi. I set up the spi port and installed the spi 
library as described at hipstercircuits 
(http://hipstercircuits.com/enable-spi-with-device-tree-on-beaglebone-black-copy-paste/).
 Now I would like to test a simple data exchange - send two bytes and after a 
small delay read two bytes. The CS should be asserted during the whole data 
exchange. The problem is that i can not force CE to be asserted the whole time.

I sent the data using spi.xfer2, but after that the CE was de-asserted. I tried 
to keep the CE asserted with spi.cshigh after the spi.xfer2, but this still 
leaves a small glitch on CS line. Can someone please suggest how can i control 
the CS line as required?

BTW, i also noticed that there was no difference between spi.xfer and spi.xfer2 
even though the spi.xfer should send an array of bytes de-asserting and 
re-asserting the CE with every byte - i could not see the CS de-asserting and 
re-asserting with the oscilloscope.

Best Regards
Klemen
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to