The stack is circular. andy ----- Original Message ----- From: "Peter L. Peres" To: Sent: Sunday, December 23, 2001 1:33 AM Subject: Re: [PIC]: Implementing MCLR in software > > Who cares what's on the stack after a 'reset'? > > D > > Since the SP does not get reset (Bob says it does not matter since it is > circular), you do, since you may run out of free stack sooner than you > plan. F.ex. if the stack is not circular and the soft reset occurs in a > subr. nested at stack level 2 and the soft reset does not clear the stack > (it can't, on a 12 or 14 bit core pic) then you only have 4 levels of > stack left. This is almost certainly not enough. Of course the point is > moot if the stack is circular but my ompression of the datasheet programs > was, that it is not. > > Peter > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads