Hi, im trying to conect the EVM with the Launchpad MSP430F5529, the problem i have is after setting SPI and making a "Reset" to the ADS1298, as is indicated in the datasheet, i cant read anything from the CAD, and i obtain the error "Cannot load from non-primitive location" of the RX and TX SPI Buffers.
I connected both tis way:
P3.0 (SIMO) ----------------> DIN
P3.1 (SOMI) ----------------> DOUT
P3.2 (CLK) ----------------> SCLK
P2.3 (CS!) ----------------> CS!
P1.6 (DRDY!) ----------------> DRDY!
P3.7 (RESET) ----------------> RESET
P8.2 (START) ----------------> START
When i set the START pin, DRDY! toogles, but only reads nothing...i think the problem is with the SPI config, i used this:
// MSB first select. - Master mode select - Synchronous mode
UCB0CTL0 |= (UCMSB | UCMST | UCSYNC);
// 8-bit data - 3-pin SPI - Clock inactive state is low - Data is changed on the first UCLK edge and captured on the following edge
UCB0CTL0 &= ~ (UC7BIT | UCMODE0 | UCMODE1 | UCCKPL | UCCKPH);
// SMCLK
UCB0CTL1 |= (UCSSEL0 | UCSSEL1);
// Baudrate
// N = fbrclk/Baudrate = 25MHz (cf25MHZ_t)/ 921600Baud = 27.12, NO UCOS16 para UCB0 (Oversampling Baud-Rate Mode Setting)
// UCBR0 = INT(N) = 27 (27.12)36
// UCBR1 = 0
// When greater accuracy is required, the UCBRSx modulator can also be implemented with values from 0 to 7.
UCB0BR0 = 27;
UCB0BR1 = 0;
And this is the code corresponding to inicialization:
P3OUT |= BIT7; //RESET ON
__delay_cycles(1000000); //wait for RESET 1s
P3OUT &= ~BIT7; //RESET OFF
P2OUT &= ~BIT3; // CS low state to enable SPI
ADS1x9xSPIData(0x11); // Send SDATAC command
P2OUT &= ~BIT3; // CS high state
P2OUT &= ~BIT3; // CS low state to enable SPI
ADS1x9xSPIData(0x0A); // Enviamos el comando STOP
P2OUT &= ~BIT3; // CS high state
If someone has an idea of whats im doing wrong, any information will help, thanks.