Hi I am trying to use SPI to interface with a sensor chip, but I cant get a clock signal out of my arduino micro's sck pin on the icsp header or the sck pin on the booard! Help!
-Omar
Hi I am trying to use SPI to interface with a sensor chip, but I cant get a clock signal out of my arduino micro's sck pin on the icsp header or the sck pin on the booard! Help!
-Omar
My guess is that you must use a digital i/o pin to simulate a clock signal.
Going to arduino.cc and looking at an example that uses
#include <SPI.h>
and supports my guess in that Digital Pin 13 is used for SCK.
On the Arduino Nano pin 13 and sck are the same. I looked at the schematic. But on my Micro that is not the case. I checked to see whether I am getting a clock from the crystal oscillator and I am, but I am still not able to get a clock out of either sck pin.
Well, think about this; Only when the Master of the SPI is talking or listening will there be a CLK on DP13. In other words, the program has to be running. In particular, SPI.begin(); must have been executed.
Reference Documentation for SPI is here: http://arduino.cc/en/Reference/SPI
Jeremy Blum covers SPI output on this video: http://www.youtube.com/watch?v=1nO2SSExEnQ
and SPI Input on this video: http://www.jeremyblum.com/2010/08/27/reacxion-build-progress/
Well, think about this; Only when the Master of the SPI is talking or listening will there be a CLK on DP13. In other words, the program has to be running. In particular, SPI.begin(); must have been executed.
Reference Documentation for SPI is here: http://arduino.cc/en/Reference/SPI
Jeremy Blum covers SPI output on this video: http://www.youtube.com/watch?v=1nO2SSExEnQ
and SPI Input on this video: http://www.jeremyblum.com/2010/08/27/reacxion-build-progress/