SPI settings

Xadow series products.

Moderators: lily.li, violet, jessie, nosk

Post Reply
james34604
Pre-kindergarten
Pre-kindergarten
Posts: 7
Joined: Fri Jan 15, 2016 12:45 am

SPI settings

Post by james34604 » Mon Mar 07, 2016 6:39 am

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.

viswa
Staff
Staff
Posts: 168
Joined: Tue Jan 25, 2011 11:16 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Seeeduino Film,Motion Frame,UartSbee

Re: SPI settings

Post by viswa » Mon Mar 07, 2016 2:17 pm

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.

Post Reply