This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

AGSI TriggerReset disables interrupts.

I am using the AGSI documentation (http://www.keil.com/appnotes/docs/apnt_154.asp) to create a watchdog timer for the Mentor M8051EW. Once the watchdog timer goes off it calls the AGSI function TriggerReset. The DLL works in simulation and resets the CPU to the beginning.

The problem that I am running into is after it calls this, no interrupts work. If a timer is running like Timer 0 and it goes off (the interrupt is triggered) the flag (ie. TCON.5 which is TF0) that says that an interrupt is being called gets set high but the PC never jumps to the corresponding ISR and the interrupt flag (ie. TCON.5 which is TF0) stays high.

Why would it do this? If I press reset manually, the debugger goes through all of the same setup assembly and interrupts still work just fine. They only don't work when the AGSI function TriggerReset is called.

Any comments or questions on what I mean or a solution would be greatly appreciated.

Thank you.

John