On Sat, Apr 5, 2014 at 7:02 PM, David Meiklejohn wr= ote: > I'd recommend declaring variables used in an ISR locally, but static. No > extra overhead but you don't have to worry that your variable "x" is used > for somewhere else in the program. Unless of course you _want_ that same > variable to be used/accessed outside the ISR, which is what global variab= les > are for. This makes sense. I am trying to transition my thinking from assembly, where I declare all my variables in one chunk, and scope isn't something that needs to be dealt with. Mostly, I'm trying to avoid building bad habits moving forward. By the way, will C automatically handle things like a buffer that's larger than a single bank? As an example, I once modified a linker script so give me a bank of RAM that was 512 bytes continuously so that I could declare a buffer with that much space in it. Does the compiler just handle that automatically? Thank you! Josh --=20 A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .