Difference between revisions of "User:Gbrenes"

From RidgeRun Developer Connection
Jump to: navigation, search
(Oscilloscope visualization)
(SPI)
(Tag: Blanking)
 
Line 1: Line 1:
= SPI =
 
  
How do the devices communicate?
 
[[File:Timing-diagram-spi.png|400px|thumbnail|center|Timing diagram for SPI protocol.]]
 
 
 
== Useful tools ==
 
[https://github.com/rm-hull/spidev-test spidev test repo]
 
 
== Oscilloscope visualization ==
 
<syntaxhighlight lang=bash>
 
nvidia@ubuntu:~$ ./spidev_test -D /dev/spidev0.0 -b8 -v
 
spi mode: 0x0
 
bits per word: 8
 
max speed: 500000 Hz (500 KHz)
 
TX | 05 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __  | .
 
RX | FF __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
 
</syntaxhighlight>
 
 
 
[[File:Spi-5osc.png|400px|thumbnail|center|Timing diagram for number 5 in binary using SPI.]]
 

Latest revision as of 09:13, 9 February 2023