I am trying to get this thing to enter stop3 mode, and exit due to kbi interrupt. I would also like BDM support, since I am not complete with this project yet. Something is going wrong here, because my processor won't come out of stop mode to service the KBI interrupt, and the BDM is having a tough time communicating with the processor. I have attached the code below...can someone help me figure out what I am doing wrong?