
Shield pin configuration
11.7
Configure IO10 through IO13 for SPI connectivity
To configure IO10 through IO13 for SPI connectivity, do the following:
1.
Refer to Table 2 for the GPIO numbers. According to Table 2, the GPIO numbers for IO10 through IO13 are
111, 115, 114, and 109, respectively.
2.
According to Table 4, GPIO 263 must be set to 1 to select GPIO/SPI, GPIO 240 must be set to 1 to select
SPI, and GPIO 111 pin-mux must be set to ‘mode1’ to select SPI for IO10.
3.
According to Table 4, GPIO 262 must be set to 1 to select GPIO/SPI, GPIO 241 must be set to 1 to select
SPI, and GPIO 115 pin-mux must be set to ‘mode1’ to select SPI for IO11.
4.
According to Table 4, GPIO 242 must be set to 1 to select SPI, and GPIO 114 pin-mux must be set to
‘mode1’ to select SPI for IO12.
5.
According to Table 4, GPIO 243 must be set to 1 to select SPI, and GPIO 109 pin-mux must be set to
‘mode1’ to select SPI for IO13.
6.
According to Table 7, GPIO 258 must be set to 1 to enable the output direction for IO10, GPIO 259 must
be set to 1 to enable the output direction for IO11, GPIO 260 must be set to 0 to disable the output
direction for IO12, and GPIO 261 must be set to 1 to enable the output direction for IO13.
7.
According to Table 7, GPIOs 226 through 229 must be set as high-impedance inputs to disable the pullup
resistors for IO10 through IO13.
8.
According to Table 6, the TRI_STATE_ALL signal is controlled by GPIO 214.
9.
After you have gathered all of this information, enter the following commands in Linux:
# echo 111 > /sys/class/gpio/export
# echo 115 > /sys/class/gpio/export
# echo 114 > /sys/class/gpio/export
# echo 109 > /sys/class/gpio/export
# echo 263 > /sys/class/gpio/export
# echo 240 > /sys/class/gpio/export
# echo 262 > /sys/class/gpio/export
# echo 241 > /sys/class/gpio/export
# echo 242 > /sys/class/gpio/export
# echo 243 > /sys/class/gpio/export
# echo 258 > /sys/class/gpio/export
# echo 259 > /sys/class/gpio/export
# echo 260 > /sys/class/gpio/export
# echo 261 > /sys/class/gpio/export
# echo 226 > /sys/class/gpio/export
# echo 227 > /sys/class/gpio/export
# echo 228 > /sys/class/gpio/export
# echo 229 > /sys/class/gpio/export
# echo 214 > /sys/class/gpio/export
# echo high > /sys/class/gpio/gpio214/direction
# echo high > /sys/class/gpio/gpio263/direction
# echo high > /sys/class/gpio/gpio240/direction
# echo high > /sys/class/gpio/gpio262/direction
# echo high > /sys/class/gpio/gpio241/direction
# echo high > /sys/class/gpio/gpio242/direction
# echo high > /sys/class/gpio/gpio243/direction
# echo high > /sys/class/gpio/gpio258/direction
# echo high > /sys/class/gpio/gpio259/direction
# echo low > /sys/class/gpio/gpio260/direction
# echo high > /sys/class/gpio/gpio261/direction
# echo in > /sys/class/gpio/gpio226/direction
# echo in > /sys/class/gpio/gpio227/direction
Intel® Edison Kit for Arduino*
December 2014
Hardware Guide
Document Number: 331191-004
31