We're no longer updating This wiki!!

This is an old revision of the document!


SPI

This page introduces how you can interface your SPI devices to ODROID-C1/C1+/C0.

H/W connection

SPI (/dev/spidev0.0)

Pin NumberNet NameExport Number
C0/C1/C1+
19 SPI-MOSI(GPIOX.10) 107
21 SPI-MISO(GPIOX.9) 106
23 SPI-SCLK(GPIOX.8) 105
24 SPI-CEN0(GPIOX.20) 117

Loading SPI driver

Dedicated pins for SPI are configured for GPIO, these pins can be configured as I2C bus while change the pin configuration. In order to change the configuration, you must load the driver.

$ modprobe spicc

SPIDEV Test

spidev 8 bits per word, clock speed = 1Mhz

SPIDEV-8bits-1Mhz

spidev 16 bits per word, clock speed = 1Mhz

SPIDEV-16bits-1Mhz

spidev 32 bits per word, clock speed = 1Mhz

SPIDEV-32bits-1Mhz

en/c1_hardware_spidev.1459485365.txt.gz · Last modified: 2016/04/01 13:06 by charles.park
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0