> > >ok Just remember that a call from an ISR is not a good option ... > > > > If you're going to make this statement, you'd better explain why it's "not a > > good option." I've been doing it for years without difficulty and it seems > > to be just as good an "option" as anything else. > > I agree with Drew, there's nothing inherently wrong with calling from the > ISR. Just don't call functions your main loop might be simultaneously > using :) Actually there is nothing wrong with doing this either, as long as the function is reentrant. Perhaps the biggest issue in CALLing within an ISR is that you use up additional stack levels, which are often a tight constraint on a design. Bob Ammerman RAm Systems -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.