> You'll probably want to put all the includes at the bottom of the > interrupt routine after a return, but before the '}' so that you don't > start by executing the first included file. Be careful here. You are inferring a mix of program flow that is both inside and outside of the "#include". You should either have controlling statements (if, switch, etc) in main.c _or_ as part of "my serial code", but not a mixture. It's one of those techniques like "$+x", that is great in the right place but is easy to make into a mess. Steve. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.