Difference between revisions of "Dragino SPI"

From Wiki for Dragino Project
Jump to: navigation, search
(Send Message to Arduino via SPI)
(Introduction)
Line 1: Line 1:
 
=Introduction=
 
=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 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:
 +
GPIO0  <---> Reset
 +
GPIO1  <---> MOSI
 +
GPIO2  <---> MISO
 +
GPIO3  <---> SCK
  
 
=Send message to Arduino via SPI=
 
=Send message to Arduino via SPI=
 
example codes are available for download in http://www.dragino.com/downloads/examples/spi_incoming/
 
example codes are available for download in http://www.dragino.com/downloads/examples/spi_incoming/

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 simulate 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/