Go Down

Topic: SS pin for MKR GSM 1400? (Read 955 times) previous topic - next topic

tdarrah

Everything I see related to SPI pins for the arduino says pin 10 is for SS. On the MKR GSM 1400, pin 10 is listed as MISO, and I don't see any SS pins. Also, everything I see related to this board and SPI talk about the SD card module, which isn't relevant to my project.

How to use SPI for the MKR GSM 1400?

MOSI - D8
SCK   - D9
MISO - D10
SS   - ??

Thanks in advance!

CrossRoads

I think you'll have to dig into the datasheet for the SAMD21 processor and go from there as to how to group 4 pins into an SPI port.
https://content.arduino.cc/assets/mkr-microchip_samd21_family_full_datasheet-ds40001882d.pdf
Page 510, section 27.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

tdarrah

Thanks for the link. I see on page 516, section 27.6.2.6.1 (and .2) it says "SS can be assigned to any general purpose I/O pin", but I'm still not sure how to tell SPI which pin I'm using. I can use D8-10 for the other pins. 

intstarep

I assign 
D6   DC
D7   CS
D8  MOSI
D9   SCK
D10 MISO
sucessfully on the MKR 1400. 
CS = SS (ChipSelect = SlaveSelect :o :smiley-evil: )

Go Up