alan.b.pearce@stfc.ac.uk wrote: > > Using a pic16f886. > > > > Is there a way to determine stack depth so that it can be output for > > diagnostic purposes? > > As others have said, no, but I seem to recall that MPLAB will determine s= tack depth while simulating, but haven't attempted to use that feature. The 16F886 does not have run time access to the stack or its depth The extended PIC 14 bit core gives some access to the run time stack. Regards walter.. -- Walter Banks Byte Craft Limited http://www.bytecraft.com --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .