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.

Machine cycle calculation for MSP430F5529 Asm code

Other Parts Discussed in Thread: MSP430F5529

Hi friends

  I am facing problem with Machine cycles calculation for MSP430F5529 Controller with SMCLK=MCLK=Default DCO=1.048MHZ .Please refer the above snapshot

Regards

Beeresh

  • I would not recommend using a loop to make the processor wait a while. The compiler is free to generate any kind of code, it might even remove it completely if it can determine that it doesn't perform any action.

    Instead, you can use the intrinsic function __delay_cycles, it inserts assembly code that takes an exact number of cycles to run. Of course, for long delays, you could also consider putting the processor into low-power mode and wake it using a timer.

        -- Anders Lindgren, IAR Systems

**Attention** This is a public forum