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.

Counting Clock Cycles - Is there an alternative method?

Other Parts Discussed in Thread: MSP430G2553

Problem: Profile clock seems to be highly inaccurate

CCS version: 5.5.0.00077 running on Windows Vista

MCU: MSP430G2553 running on the MSP-EXP430G2 development tool

 

My profile clock says that it takes 65,540 cycles to set P1.0 to the output direction. That's sound just way to high for a tiny line of code such as "P1DIR |= 0x01."

  • Is there an alternative to way to count the cycles for each instruction?
  • Is this a bug that has not been fixed?

I need this clock to work so I can determine where to reset the watchdog counter. The watchdog timer counter (WDTCNT) register is not directly accessible by software, so that's a dead end!

  • Any suggestions from anybody?