Is the Low Voltage Program disabled? This will cause the strangest effect on the PORT B pins if not. I fought finding this one for weeks once. Wrong Way Ray (Raymond Choat) ----- Original Message ----- From: "Dan Michaels" To: Sent: Thursday, June 21, 2001 7:26 PM Subject: Re: [PIC]: 16F870 Error defying logic... > Nick Veys wrote: > >Absolutely mind boggling. I have a chunk of code causing some kind of > >software reset. The WDT is disabled, in fact, all interrupts are disabled > >in this program in it's entirety. The kicker is, this code is NOT being > >executed when the reset occurs, it is tied to one button, the other button I > >push works fine but randomly causes a reset... when I comment out the code, > >it works fine (of course it doesn't do what I need though.) > > > > > 2 things to check: > > - you have PCLATH bits properly set/re-set for all "inter"-page > operations. > > - you don't accidentally have a "goto" where you should have > a "call". [this burned me 2 days ago]. > > -- > 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: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics