Difference between revisions of "Dragino SPI"

From Wiki for Dragino Project
Jump to: navigation, search
(Introduction)
(Introduction)
Line 2: Line 2:
 
The Dragino MS12 has a SPI interface from Ar2317 which is already used for the Serial Flash. We use the GPIOs to simulate a second SPI interface and communicate with other SPI devices.
 
The Dragino MS12 has a SPI interface from Ar2317 which is already used for the Serial Flash. We use the GPIOs to simulate a second SPI interface and communicate with other SPI devices.
  
The GPIO defination while simulate as SPI interface:
+
The GPIO defination while simulated as SPI interface:
 
  GPIO0  <---> Reset
 
  GPIO0  <---> Reset
 
  GPIO1  <---> MOSI
 
  GPIO1  <---> MOSI

Revision as of 03:35, 19 September 2011

Introduction

The Dragino MS12 has a SPI interface from Ar2317 which is already used for the Serial Flash. We use the GPIOs to simulate a second SPI interface and communicate with other SPI devices.

The GPIO defination while simulated as SPI interface:
GPIO0  <---> Reset
GPIO1  <---> MOSI
GPIO2  <---> MISO
GPIO3  <---> SCK

Send message to Arduino via SPI

example codes are available for download in http://www.dragino.com/downloads/examples/spi_incoming/