> And since there are no registers or bits that indicate a stack overflow > while the program is running, I can't just add a LED or something to output > while running the system. Microchip is funny in this respect; they > specifically state that stack overflow isn't indicated, yet I can't see > where it would be that tough for them to actually implement it. This wouldn't be much use once your units got to the field. For development they have chips with special bond out used in the ICE, which can trap on stack underflow and overflow. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body