Hi Ashish, Progress! That's good! Use the DRDY as an interrupt to the MSP430. When DRDY goes active, you have to send clocks to the ADS1298 - 24 to read out the status register and the 24*n (where 'n' is the number of enabled channels). Since the MSP430 is the SPI master, the only way to get clocks out is to move something to the transmit buffer - if all you are doing is reading data, you can send 0x000000 (three bytes of zero) to get 24 clocks to get the status word - continue sending zeros until you read out all channel data. This has to be finished within the 2ms time period between the DRDY output pulses.
↧