Part Number: MSP430FR6989
Dear,
I am a student working on my master thesis. for this thesis I am working for a space related company, and they want to check how to optimize C code (the use a MSP430, so I will use that as a benchmark). They want to use the compiler (gcc with several flags, most notably -O2 and -O3), but they are also adamant that optimization can be done in the C code (looking for changes in how algorithms are written, but also how C-code in itself is written). I am going to test this.
For this reason I want to time code running on the MSP430 (I have the MSP430FR6989). This board works on 16MHz, but the fastest timer would be the Timer using the SMCLK, at 1MHz. This would mean that the accuracy would not be extremely great. Are there other ways of timing this? Is there a faster CLK or timer that can be used (or other board that can be recommended)?
PS: I also thought about toggling a pin an timing it with a Logic Analyzer, which would be much more accurate I think. There is however a problem with this, the tests need to be run a lot of times (probably at least 50 times for every example of code and its benchmark), this would be a lot of manual intensive work that can be avoided by using a UART connection with my PC. Expecially since I want to manipulate the data using Python, my preference would be going to just sending the timings through via USB and not using a logic analyzer.
Thanks and with kind regards,
Yannick