<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Slave Select Pin(NSS pin) is Enabled??(Maple mini is slave mode)</title>
		<link>http://forums.leaflabs.com/topic.php?id=74331</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:14:16 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=74331" rel="self" type="application/rss+xml" />

		<item>
			<title>yuki on "Slave Select Pin(NSS pin) is Enabled??(Maple mini is slave mode)"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74331#post-105392</link>
			<pubDate>Sat, 17 May 2014 12:51:41 +0000</pubDate>
			<dc:creator>yuki</dc:creator>
			<guid isPermaLink="false">105392@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thank you!&#60;br /&#62;
Master device was able to make the SPI communication correctly to MapleMini.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Slave Select Pin(NSS pin) is Enabled??(Maple mini is slave mode)"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74331#post-105391</link>
			<pubDate>Fri, 16 May 2014 21:51:49 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">105391@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;In HardwareSPI.cpp enable_device() remove SPI_SW_SLAVE in the cfg_flags setup or clear the SSM bit manually in the spi CR1.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>yuki on "Slave Select Pin(NSS pin) is Enabled??(Maple mini is slave mode)"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74331#post-105386</link>
			<pubDate>Thu, 15 May 2014 10:30:04 +0000</pubDate>
			<dc:creator>yuki</dc:creator>
			<guid isPermaLink="false">105386@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello.&#60;br /&#62;
I'm trying to build a system to be used as a slave device on Maple mini.&#60;br /&#62;
I was able to communicate successfully communication master device to a Maple Mini slave device. &#60;/p&#62;
&#60;p&#62;However, in case of multiple slave devices(almost MapleMini), MapleMini slave device will start the communication all connected MapleMini slave devices, Or initiate communication at the same time other slave device even if trying to communication, this can not properly.&#60;br /&#62;
SPI interrupt is NSS pin  MapleMini slave device is not working properly.&#60;br /&#62;
Or processing SPI interrupt not using the NNS pin . &#60;/p&#62;
&#60;p&#62;Do you know how to resolve?&#60;/p&#62;
&#60;p&#62;-------------------------------------------------------------------------------------------&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#include &#38;lt;spi.h&#38;gt;

byte sendResult = 0;

void setup()
{
  SPI.beginSlave(MSBFIRST,SPI_MODE_3);
  pinMode(BOARD_SPI2_NSS_PIN, INPUT);
  spi_irq_enable(SPI2, SPI_RXNE_INTERRUPT);
}

void loop()
{
  digitalWrite(BOARD_LED_PIN, LOW);
}

extern &#38;quot;C&#38;quot;
{
  void __irq_spi2(void)
  {
    digitalWrite(BOARD_LED_PIN, HIGH);
    SPI.transfer(sendResult);
    sendResult++;
    if(sendResult &#38;lt; 100)  sendResult = 0;
  }
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
