The port is configure in input with an internal pull-up. I have disable the interrupt for the input by setting KBI2SC, KBI2PE and KBI2ES to 0x00.
When in debug, I notice that in the command window, there is a message saying "Frequency change to ~8978805hz" when the device reset. This is not the frequency I have set the device to, and when I'm starting the debuger, there's a message saying "Frequency change to ~22109775hz" which is the right frequency.
Also, when the device is halted in debug, I'm pushing the button repeatidly and the device reset. I had the reset on low voltage disabled, and it doesn't fix the problem. I also have others inputs on the Port D using the same button and they are working fine.
Thank you and have a nice day
Message Edited by FredT on 2008-02-14 01:52 PM