Hi,
I am using Port k as output and Ports F and A as inputs for scanned matrix keyboard. Ports F and A are programmed to interrupt on both falling edges.Port K always outputs zero on all pins. Any key press triggers an Interrupt Handler in which the keys are scanned to detect a single key press. The same Interrupt handler is registered to handle Ports F and A. Also UART0 is used for communication with another controller. The Interrupt Handler for UART0 is also registered.
With no keypad activity, the communication between the two controllers happens flawless. When communication is disabled and keypad is used, the system works flawless. But under normal scenario, if both Port F, A and UART0 interrupt handlers are enabled, the system hangs intermittent and the only way to recover is through reset.
Any suggestions on understanding the issue and a solution is appreciated.
Regards,
Hemant