Pumpkin, Inc.

Pumpkin User Forums

OS_Delays() and interrupts in cw1.4

If you can't make Salvo do what you want it to do, post it here.

OS_Delays() and interrupts in cw1.4

Postby Claudiu » Wed Feb 21, 2007 7:27 am

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
Claudiu
 
Posts: 6
Joined: Fri Jun 23, 2006 11:00 pm
Location: Bucharest, Romania

Re: OS_Delays() and interrupts in cw1.4

Postby aek » Wed Feb 21, 2007 9:12 am

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.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to Coding

Who is online

Users browsing this forum: No registered users and 2 guests

cron