On Wed, 4 Nov 1998 10:40:59 +1100 Steve Ridley writes: >Is it possible you have exceeded the called subroutine depth. The >maximum >nested calls that can be made is only two on a PIC16C54. > Although I don't use the 54, this is a fun problem on all the PICs. For code readability, I like to break things into subroutines (I guess I could use macros if they are not called a bunch of times... but the habit is to use subroutine calls). So, you go a couple deep in your mainline code, then have an interrupt going a couple more deep and stack overflow! Fun! I've resorted to disabling interrupts prior to calling short mainline routines... Harold Harold Hallikainen harold@hallikainen.com Hallikainen & Friends, Inc. See the FCC Rules at http://hallikainen.com/FccRules and comments filed in LPFM proceeding at http://hallikainen.com/lpfm ___________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com/getjuno.html or call Juno at (800) 654-JUNO [654-5866]