hi,
can any one suggest me to how to store the 24bit ADC converted data in msp430... i using spi for communication between the adc and msp430.. problem is msp430's spi receive buffer RXBUF is only 8 bit range.
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.
hi,
can any one suggest me to how to store the 24bit ADC converted data in msp430... i using spi for communication between the adc and msp430.. problem is msp430's spi receive buffer RXBUF is only 8 bit range.
Thulasiram,
What I do is create an integer value (4 bytes) and then capture the data and store to the variable. You can store the first byte to the variable directly. Left shift the variable contents 8 bits, then add the next byte. Repeat the process until all 3 bytes are read out. As the output of the ADC is most likely binary two's complement, you will need to sign extend the variable to properly represent the value. With a 32 bit integer, and the msb defined as bit 31 (31:0), check bit 23 and if it is high all bits above must also be made high (bits 31-24.) The resulting value of the variable will be the output code of the ADC.
If you still have problems, let us know which dataconverter and MSP430 you are using.
Best regards,
Bob B