On Tue, 2 Sep 1997, myke predko wrote: > Boy, did you leave yourself open on this one. > > >Here's the situation:... > > ...Which usually means you're NOT on a peice of code. But I > >clearly am. *blink* Did I write that? Had to check my outbox and I guess I did. I meant: Which usually means it's not a peice of code. But it clearly is. (ie when you try to "run to here" where there isn't code, it won't let you.) Or something :) > Big mistake; the problem was that I was improperly initializing three > variables and enabling an interrupt handler and *then* doing the 3 second > setup. If the 3 second set up wasn't there, everything would work fine. Ok. 16c54. No interrupts that I know of. Just wdt which is turned off. Instead of stepping over the long parts of code, I modified the values so they wouldn't loop 1f times, but only once. > Run MPLAB all the way through to the display code. What this means is > you'll have to start up the simulator, setup a break point and go watch the > "X-Files", but wasting an hour this way will give you the actual conditions > of the PIC, not what you think they should be. I've tried this. Set it up, run/debug/animate, and watch all the numbers do what they should... But again, instead of leaving everything set for the full display time, I shortened it so it wouldn't loop as much. Everything appeared to be normal. The only thing that made it output anything other than 0000, was seting up the values to 7777,and removing the bcd packing routine. So it would appear my problem lies there... it appears to work when I single step. Can anyone see anything wrong with this bit: swapf digit2,w ;put tens place into high nibble iorwf digit1,w ;ior ones place into low nibble. movwf DSPbcdLow swapf digit4,w ;put thous into high nibble iorwf digit3,w ;ior hunds into low nibble. movwf DSPbcdHigh ? Or, drop $3K and buy a PICMaster (I wish I could). > > Good luck, > > myke > > "One must invoke enough raw truth to punch a hole in the world" - Darl Af > Punch? How about invoking enough precise knowledge to poke a hole in it?:) -Shane.