Thank you guys.
I am attaching the schematics with both the chips before and after the recommendations that you made. I am not using my chip 1 at the moment. I want data only from my chip 2 (primary slave, CSB pin attached to pin 10 of Arduino as per your recommendation).
After making modifications that you suggested, I am still getting 0 as my output. I have made changes to the code as per your recommendations.
[color=red]
/*
CSB2: pin 10 // primary SS
MOSI: pin 11
MISO: pin 12
SCK: pin 13
CSB1: pin 6 //secondary SS
*/
// the sensor communicates using SPI, so include the library:
#include <SPI.h>
// pins used for the connection with the sensor
const int chipSelectPin = 10; //pin 10 is Chip select1 as there are two sensors on my board
const int chipSelectPin2 = 6; //pin 6 is Chip select2 as there are two sensors on my board
unsigned long data =0; // ADC conversion data
void setup() {
Serial.begin(9600);
// start the SPI library:
SPI.begin();
SPI.setDataMode(2);
SPI.setClockDivider(SPI_CLOCK_DIV2);
SPI.setBitOrder(LSBFIRST);
pinMode(chipSelectPin, OUTPUT);
pinMode(chipSelectPin2, OUTPUT);
// initalize the data ready and chip select pins:
delay(10);
}
void loop() {
//Select High Resolution Mode
digitalWrite(chipSelectPin, LOW);
digitalWrite(chipSelectPin2, HIGH);
SPI.transfer(0x1E);
delay (100);
SPI.transfer(0x48);
delay(100);
data = SPI.transfer(0x00);
delay(1000);
Serial.print("I received: ");
Serial.println(data, HEX);
digitalWrite(chipSelectPin, HIGH);
}
[/color]

