ADXL345

08 Dec 2010

Hi,

I don't understand the frequency clock of the SPI. I have used the template of ADXL345 for SPI and there is the following command to configure the data rate:    

     //3.2kHz data rate.
    accelerometer.setDataRate(ADXL345_3200HZ); 

Then I look the clock signal with the oscilloscope and my clock rate is 2Mhz. And also in the datasheet there is the next comment: "Use of the 3200 Hz and 1600 Hz output data rates is only recommended with SPI communication rates greater than or equal to 2 MHz". 

I understand that my data rates should be equal to my clock rates, because every falling edge of the clock the dates should be stable. Anybody can explain me this?

Many thanks.