Part Number: MSP430F149
Other Parts Discussed in Thread: MSP-FET
Tool/software: Code Composer Studio
Dear All,
I ask about the debuge for MSP430F149 and its TA counter.
I have a project using MSP430F149. In this project I uses TA counter and TB counter. To test the operation of TA counter I have a small program "Test".
Use MSP430F149 board, Code Composer Studio 7.1 and MSP-FET Flash Emulation Tool.
When I debugger, I click in Step Into for run each command line then TAR counter change in disorder as follows: 0 --> 38967 --> 38996 --> 42520 --> 64096 --> 38964 --> 1359 --> 23207 --> ...... --> 20107 --> 42745 --> 42440 --> 10858 --> 21950 --> 32271 --> ....
I do not understand how is this ?.
I think the TAR must change as follows: 0 --> 1 (or 2, or 3 depending on the command cycle) --> 2 (or 3, or 4) --> 3 --> 4 --> 5 --> ...100 --> 101 --> .... 65534 --> 65535 --> 0 --> 1 --> 2 --> 3 --> 4 --> 5 --> ...
Please kindly explain to me.
In addition, the program runs forever in TA0_ISR that does not exit out to jump to in Loop_not. So, debugger is not significant. Can not debug, to complete a long program will be difficult.
I have made a video posted on youtube. Please take a look at the link: https://youtu.be/AQNGV9xQdx4