Mark Lazarides
Member
Evening all. I'm trying to get my PIC to start a timer when it receives its first byte of information from the USART, then after 3 seconds make the PIC go to the start of my main body of code (labelled START).
This should only happen (returning to the START) if the rest of the events in the main body of code don't execute after the timer has been started (I'm fail-safing because it's using radio communication).
The rest of the code works fine, it's just the interrupt routine I'm having problems with. The code won't execute at all when it's there. If anyone can see where I might be going wrong I'd appreciate some help.
The .asm file is in the attachment.
Cheers, Mark
This should only happen (returning to the START) if the rest of the events in the main body of code don't execute after the timer has been started (I'm fail-safing because it's using radio communication).
The rest of the code works fine, it's just the interrupt routine I'm having problems with. The code won't execute at all when it's there. If anyone can see where I might be going wrong I'd appreciate some help.
The .asm file is in the attachment.
Cheers, Mark