It seems the problem is resolved for now, the problem was that, the following was in the ISR:
Code:
DEBUG "AT+CMGS=",34,STR ph1\13,34,",[145]",13,10
DEBUGIN 10000,Inform,[WAIT(">")] : pause 300
DEBUG "Intrusion", 26,10
Pause 10000 : error11=0
For some unknown reason the above statements were causing the problem. I have now taken them out of the ISR and placed them under a separate label. I only increment a simple variable in the ISR now. The main code looks after that variable, when it gets increments the above statements gets executed.
Bookmarks