Page 1 of 1

OS_Delays() and interrupts in cw1.4

PostPosted: Wed Feb 21, 2007 7:27 am
by Claudiu
Does anyone know if interrupts are working in cw1.4 if MSP430 Core Simulator is used as target?
Because the tut5 is not working on my comp

Re: OS_Delays() and interrupts in cw1.4

PostPosted: Wed Feb 21, 2007 9:12 am
by aek
Core Simulator doesn't work with interrupts.

If you want to simulate delays without interrupts, do something like this:

code:
main()
...
while (1)
{
if (--counter = 0)
{
counter = 200;
OSTimer();
}
OSSched();
}
}

Adjust the 200 value for something that works right for your (imulated) clock speed.

------------------