This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Reading/Writing register/A2D data - ADS131E08

Other Parts Discussed in Thread: MSP430F5418, ADS131E08

Hello,

I have the ADS131E08 EVM attached to an MSP430F5418. I need to read the A2D using SPI - UCSB0SPI.

The wiring is as follows:

MSP430 f 5418 Desc. EVM Board
P3.0 SPI_CS JP8.2
P1.1 SPI_Start JP9.2
P3.1 SPI_IN J1.11
P3.2 SPI_OUT J1.13
P1.2 SPI_DRDY J1.15
P3.3 SPI_CLK J1.3
  GND J1.18

I'm trying to read the registers of the ADS131

7380.ADS_131_code.c
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
unsigned char TempData[20];
//******************************************************************************
// ADS131/MSP430x5418 Demo - ADS_131 to MSP430 communication via SPI
//
//
// Description: Use of the MSP430 USCI A0 peripheral for setting up and
// communicating to the ADS_131
//
//
//
// MSP430x5418
// ------------------
// /|\| |
// | | |
// --|RST P3.2|<-- MISO (DOUT)
// | |
// | P3.1|--> MOSI (DIN)
// | |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
, and I'm not getting correct values. Also, if I read register 0 a few times, I get different values.

Attached is the code I'm using to setup the SPI and registers. I'd appreciate any help.

Thanks,

Mechi

7610.ADS_131_code.c
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
unsigned char TempData[20];
//******************************************************************************
// ADS131/MSP430x5418 Demo - ADS_131 to MSP430 communication via SPI
//
//
// Description: Use of the MSP430 USCI A0 peripheral for setting up and
// communicating to the ADS_131
//
//
//
// MSP430x5418
// ------------------
// /|\| |
// | | |
// --|RST P3.2|<-- MISO (DOUT)
// | |
// | P3.1|--> MOSI (DIN)
// | |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX