Make sure your interrupt register is set up correctly. When I use the async stimulus I choose the bit to 'toggle' rather than just to set the bit to one state e.g. low. Try this, it works with me (I use C though, not assembler) Maritz Cloete 710 2831 (w) 8552837 (h) Quote of the year: "A closed mouth gathers no feet." > -----Original Message----- > From: Lewis H. Cobb [SMTP:cobb@ZEUS.EE.UNB.CA] > Sent: Friday, May 29, 1998 4:44 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: Question On Simulator > > Hello all - > > I have downloaded the simulator / MPLAB and have been trashing my way > through it over the past few days. I would like to simulate the software > for a "keystroke on port b<7:4> waking the processor and then executing > some code" > > Can this be done with the simulator? I have the code written and it seems > to flow properly up to the point of executing the "sleep" instruction (the > general interrupt enable is active so I should get a vector to 0004 when > the pin is brought low on port b) > > I went into the async. stimulus and configured one of the simuli for port > b7 and low when activated. > > When I try it out it doesn't seem to do diddly - i.e. the processor does > not vector to 0004 - where I have a breakpoint set shortly thereafter... > > Perhaps I am missing something simple here - it could be as I have only > been working with the MPLAB system for a very short time. I've set up the > high nibble on port B as an input, and when I see the value in the > "window" > for viewing registers, it's all 0s - I have the pull ups enabled as > well... > > Thanks for any help people can provide > > Lewis > cobb@zeus.ee.unb.ca