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.

CCS/ADS122U04: Record data by MCU

Part Number: ADS122U04

Tool/software: Code Composer Studio

Hello
I have MSP430 and ADS122U. It`s nedded to recive data from ADC and then transmit to the terminal. RXBUF of MSP430 have 1 byte (first picture). ADC send after reqirer 4 bytes (second picture). How values from RXBUF may be record they be like original? It`s impossible to use an array (like array = RXBUF) or change ADC data output format.



  • I have MSP430 and ADS122U. It`s needed to receive data from ADC and then transmit to the terminal. RXBUF of MSP430 have 1 byte (first picture). ADC send after request 4 bytes (second picture). How values from RXBUF may be record they be like original? It`s impossible to use an array (like array = RXBUF) or change ADC data output format.

  • Hi user6244799,

    Ultimately what you are attempting to do is send binary data to a console terminal program.  The best way that I have found to do this is to convert the binary number to ASCII and then send a series of ASCII values as a string of characters that represent the number.  There are many ways to do this with the most common as either a decimal representation or a hex representation.  Personally I prefer to use hex because the transmission is always uniform in form and length (6 hex characters represent 24-bits).  If you use decimal, then the length can vary from 0 to +/- 8388607.  Whichever method is chosen once translated to ASCII you can just write the value as a string to the terminal followed by a CRLF to advance the line on the screen.

    The process would be to capture the ADS122U04 value from the RXBUF.  This can be stored as an integer or a byte array depending on how you wish to convert the value to ASCII.  Once you have the received data, you translate the value to an ASCII string.  You would then transmit the data to the console terminal by sending the string one character at a time to the TXBUF used for the terminal connection.

    Best regards,

    Bob B