This means, if you need a delay for each call tree, that the code expands quite rapidly. Is it ??? grtz, Simon --- Dag Bakken wrote: > This is a quite straight forward problem. If you > are executing the > delay called from the main() call-tree when you > receive an interrupt, > and then again call the delay from the ISR, the > original local > variables in the delay will be corrupted and the > delay will be wrong > when you exit the ISR. This is a problem since CC5X > does not generate > a software stack. A delay routine shouldn't be too > big, so a quick > and dirty way of doing it can be to implement one > delay routine for > each call-tree. > > Dag S > > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.