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.

WDT/Basic Timer Interrupt Simulation -user configured?



Hi Friends,

I am getting into the MSP430 family slowly & steadily. Thanks to the support you guys offer when I am in need. This forum is an active community.

I am now trying to simulate my code through the IAR's simulator. I find the GPIO interrupts working well and feel thrilled when the debugger hits the break point :)

However, WDT and Basic Timer interrupts also seem to be configurable the same way. That is : I get the first activation & Repeat interval for them also.

I don't understand the purpose of this. I am expecting the computer to understand that it has to take in the interrupt interval from my code like :

BTCTL |= BT_ADLY_125; 

Is there an option or am i missing out something?

Thanks for your help in advance.

Pawan

  • in IAR, click Help>C-SPY Debugging Guide
    Page 244 show a timer example, though  "basictimer" for  what msp family that is?.
    I have 2015 IAR and one option is: TIMER0_A0_VECTOR if I set it up project for a G2553
     
    But it looks like you set it up as normal, but no need to set a TA0CCR0 register value.
    as the simulator don't look for it as to compare that with its cycles count, but use the cycles count number you use in the setup.

  • Yes, that is what I mean... I thought there are some methods to configure the system such that it reads the code and automatically sets the timer interrupt..

**Attention** This is a public forum