Page 1 of 1

SPI settings

Posted: Mon Mar 07, 2016 6:39 am
by james34604
I'm trying to connect a Xadow to a BM019 NFC reader via the breakout. There is example code for connecting this interface to an UNO. I've tweaked the settings so the right pins are used - however its still not working.

My question is.. in the uno code are these settings for the SPI communication

Serial.begin(9600);
SPI.begin();
SPI.setDataMode(SPI_MODE0);
SPI.setBitOrder(MSBFIRST);
SPI.setClockDivider(SPI_CLOCK_DIV32);

Reading this page https://www.arduino.cc/en/Reference/SPI it seems that these settings are specific to the Xadow (or edison). Could anyone advise or provide example code for using the SPI communications on the Xadow.

Re: SPI settings

Posted: Mon Mar 07, 2016 2:17 pm
by viswa
Hello,

I hope you are referring to Xadow Mainboards(Which is based on ATmega32U4). Yes, the SPI documentation describes the API used for SPI communication. Please refer the examples mentioned in the page writing driver for your BM019 NFC reader.

Thanks and Warm Regards.