Tool/software: Code Composer Studio
i have used difftime method to obtain difference between two timestamps.But i am not able to print that difference time obtained from that function in the console.What should i do to print the difftime() value.
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.
Tool/software: Code Composer Studio
i have used difftime method to obtain difference between two timestamps.But i am not able to print that difference time obtained from that function in the console.What should i do to print the difftime() value.
Are you looking to print to the CCS console using something like printf()? If so, you can do that, but just bear in mind that C I/O routines like printf use a fair amount of memory that some MSP430 devices may not have the space for. An alternate option would be to route the standard output to UART interface.
Please take a look at the following pages for additional details:
processors.wiki.ti.com/.../Printf_support_for_MSP430_CCSTUDIO_compiler
processors.wiki.ti.com/.../Tips_for_using_printf