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/RF430FRL152H: variables

Part Number: RF430FRL152H

Tool/software: Code Composer Studio

I want to print out the value stored in the register of the CCS by putting it in the variable.

The value I want is ADC0. (It is estimated that it is stored in ADC10MEM.)

And I'd like to print this out after putting it in the next expression.

What should I do?

  • Hello,

    hyosung kim said:

    I want to print out the value stored in the register of the CCS by putting it in the variable.

    The value I want is ADC0. (It is estimated that it is stored in ADC10MEM.)

    And I'd like to print this out after putting it in the next expression.

    ADC10MEM is a memory mapped register. If you right-click on it and select "View Memory at Address" in the context menu, it will open the Memory Browser view at the address for ADC10MEM. Then you can use that address in your code to read the the value and store the data into the variable you wish to print out. Note all the caveats with C I/O on MSP430 (as mentioned in your other threads)

    Thanks

    ki 

  • I'm curious to know the code to read the values stored in the address.
    In fact, I can see the address where ADC0 is stored through the GUI.
    But I couldn't because I didn't know how to print the value.
    What's the code?

  • I replied to your other thread.

    Thanks

    ki