Carl Denk wrote : > Now the only interrupt I'm using is the high USART receive, I was > considering adding USART transmit, though most of the examples leave > that at polled. The ADC conversion done also could be an interrupt. I > could make either or both high interrupts, but don't know whether that's > the better way to handle it. A matter of taste... :-) > By saving at interrupts, I now have the string array and index variables > declared (global) before and outside any functions. I do not have any > compiler managed resources saved/unsaved. Compiler ? So this is *not* in assembler ?? > In the receive interupt, I do have a receive buffer where the routine > looks for the first incoming character of the RS-485 command, and > then starts filling the array (7 characters), Not in the *same* interrupt call, right ? Anyway, I'll leave it here, since this seems to be in something else then assembler... Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist