ADXL345 with SPI and SD Card - problem

Hello,

I saw many topics like mine but I did not find answer, so…

I have:

I need to connect SD Card and ADXL345 by SPI. I know that SPI Mode for SD Card is 0 and for ADXL345 is 3. I tried to write some data to ADXL register but nothing happen.

My sketch

#include <SPI.h> 
#include <SD.h> 
#include <ADXL345.h> 

ADXL345 adxl; 


int x;
volatile int resultx, resulty, resultz;


void writeRegister(byte reg, byte value) 
{
  digitalWrite(10, LOW);
  SPI.transfer(reg);
  SPI.transfer(value);
  digitalWrite(10, HIGH);
  delay(5); 
}

void readRegister()
{
  while(x>0)
  {
    int buff[5]; 
    SPI.setDataMode(SPI_MODE3); // CPOL - 1  CPHA - 1  OUTPUT EDGE - FALLING  DATA CAPTURE - RISING
    digitalWrite(10, LOW);
    SPI.transfer(ADXL345_DATAX0 | 0xC0);
    for(int i=0;i<=5;i++) 
    {
      buff[i]=SPI.transfer(0x00); 
    }
    resultx = word(buff[1], buff[0]); 
    resulty = word(buff[3], buff[2]);
    resultz = word(buff[5], buff[4]); 
    digitalWrite(10, HIGH); 
    Serial.print("x: "); 
    Serial.println(resultx);
    //Serial.print("  y: ");
    //Serial.print(resulty);
    //Serial.print("  z: ");
    //Serial.println(resultz);
    x--; 
  }
}

void fifo()
{
  Serial.println("FIFO IS FULL!");
}

void readto()
{
  digitalWrite(10, LOW);
  SPI.transfer(0x00| 0x08); 
  x=SPI.transfer(0x00);
  digitalWrite(10, HIGH); 
  Serial.print(x, BIN); 
}

void setup() 
{
  Serial.begin(115200); 
  pinMode(8, OUTPUT);
  if (!SD.begin(8)) 
  { 
     Serial.println("SD CARD ERROR!");
  }
  else Serial.println("SD CARD OK!");
  digitalWrite(8, HIGH);
  digitalWrite(10, HIGH);
  SPI.begin();
  SPI.setDataMode(SPI_MODE3);
  writeRegister(ADXL345_BW_RATE, 0b00001001); 
  writeRegister(ADXL345_INT_MAP, 0x01); 
  writeRegister(ADXL345_DATA_FORMAT, 0x20); 
  writeRegister(ADXL345_FIFO_CTL, 0b01010000); 
  writeRegister(ADXL345_INT_ENABLE, 0x03); 
  writeRegister(ADXL345_POWER_CTL, 0x08); 
  readto();

void loop()
{

}

The problem is that value of all registers are 0. It seems like it can’t write or read any value to/from register cause of SD Card. I can’t do it by I2C because my goal is to receive samples in high frequency.
Could you help me? What could be wrong? I attached circuit and results

Result.PNG

Sorry, but circuit that I made is wrong.

Here is correct.