I am using the TDC7200EVM with the MSP430F5529LP. I have the GUI working fine, but I am trying to read the data using Energia code, which uses Arduino coding and SPI library. So far I have not been able to get anything but zeros from the chip.
My program sets the enable pin (P6.5) high then goes into this loop.
void loop() {
digitalWrite(chipSelectPin, LOW); //begin comm by pulling CS low
SPI.transfer(0x10); //send register byte
dataIn1 = SPI.transfer(0x00); //send dummy bytes and recieve first data byte
dataIn2 = SPI.transfer(0x00); //second data byte in
dataIn3 = SPI.transfer(0x00); //third data byte in
digitalWrite(chipSelectPin, HIGH); //close comms
}
I've experimented with setting the OSC Enable pin (P1.6) high, but without any effect.
The data looks like it is going out fine, but there is no response from the TDC7200.
The clock signal goes out P2.2(green), MISO/DOUT is on P3.1(pink), MOSI/DIN is on P3.0(blue), and CS is on P2.2(yellow).