We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c1_hardware_spidev [2016/04/01 13:38]
charles.park [Loading SPI driver]
en:c1_hardware_spidev [2016/06/17 14:26] (current)
odroid [SPI-mode change test]
Line 39: Line 39:
  
 {{http://​dn.odroid.com/​wiki_image/​a.png?​500|SPIDEV-32bits-1Mhz}} {{http://​dn.odroid.com/​wiki_image/​a.png?​500|SPIDEV-32bits-1Mhz}}
 +
 +
 +===== SPI-mode change test =====
 +
 +<​WRAP ​ left round important 100%>
 +**Update**\\
 +SPI mode works correctly only with kernel version 3.10.96-151 or higher\\
 +</​WRAP>​\\
 +\\
 +spidev 32 bits per word, spi mode = 0 \\
 +<​code>​
 +$ sudo ./​spidev_test -D /​dev/​spidev0.0 -s 1000000 -b 32
 +</​code>​
 +
 +{{http://​dn.odroid.com/​wiki_image/​spi_mode_0.png?​500|SPIDEV-32bits-mode-0}}
 +
 +spidev 32 bits per word, spi mode = 1
 +<​code>​
 +$ sudo ./​spidev_test -D /​dev/​spidev0.0 -s 1000000 -b 32 -H
 +</​code>​
 +
 +{{http://​dn.odroid.com/​wiki_image/​spi_mode_1.png?​500|SPIDEV-32bits-mode-1}}
 +
 +spidev 32 bits per word, spi mode = 2
 +<​code>​
 +$ sudo ./​spidev_test -D /​dev/​spidev0.0 -s 1000000 -b 32 -O
 +</​code>​
 +
 +{{http://​dn.odroid.com/​wiki_image/​spi_mode_2.png?​500|SPIDEV-32bits-mode-2}}
 +
 +spidev 32 bits per word, spi mode = 3
 +<​code>​
 +$ sudo ./​spidev_test -D /​dev/​spidev0.0 -s 1000000 -b 32 -H -O
 +</​code>​
 +
 +{{http://​dn.odroid.com/​wiki_image/​spi_mode_3.png?​500|SPIDEV-32bits-mode-3}}
  
 ** spidev_test source code ** ** spidev_test source code **
en/c1_hardware_spidev.1459487327.txt.gz ยท Last modified: 2016/04/01 13:38 by charles.park
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0