Tool/software: Code Composer Studio
Dear,
For a little project of mine i'm trying to configure I2C with my MSP430. In the beginning everything worked. But on one day when I was trying to go further on the program I noticed that the I2C protocol were unusally slow. So I thought I made a mistake in my code. But it turns out that when I am not debugging my MSP430. The clock works just fine. As you can see on the picture (I have configured my clock speed to 16 MHz). But when I am debugging. The clock speed turns down drastically (as you can also see on the picture). In my code I haven't put any breakpoints in it, so that can't be a problem.
To sort things out I have tried an example code of TI itself. The example code is named: "msp430g2xx3_dco_calib.c". I have configured the clock speed to 16 MHz. But then again I have the exact same problem. (slow when debugging; fast when not debugging). Am I missing out something configured in CCS?
I really hope you can help me out on this problem.
Thank you in advance.
Erwin den Boer
Shown here above is the example code from TI itself
Shown here above is the clock frequency set to 16MHz (not debugging the MSP430)
shown here above is the frequency when I am debugging. (the code is just running in debugging mode. There are no breakpoints in my code)