Hi everyone ...
actually I am stuck now with my assembly code for PIC16F84 ... basically I am writing a code for controlling 6 LEDs and they work as the following sequence :
00001100 for 10 seconds and 00100001 for 10 seconds as well and repeat this process and my circuit has been designed to be interrupted by a switch connected say on A0 Pin ... what I want now is how can I write just the interrupt Service Routine code to make these LEDs after pressing the switch to jump to the next sequence .. for example if my sequence (1) is 00001100 and after 5 seconds from this sequence, the interruption occured so the PIC must jump straight away to seq(2) which is 00100001 and stay on this sequence for 20 seconds and then return the normal process which is sequence(1) for 10s and seq(2) for 10s. However I have to write my code with just the assembly not in any other language !!!!
actually I am stuck now with my assembly code for PIC16F84 ... basically I am writing a code for controlling 6 LEDs and they work as the following sequence :
00001100 for 10 seconds and 00100001 for 10 seconds as well and repeat this process and my circuit has been designed to be interrupted by a switch connected say on A0 Pin ... what I want now is how can I write just the interrupt Service Routine code to make these LEDs after pressing the switch to jump to the next sequence .. for example if my sequence (1) is 00001100 and after 5 seconds from this sequence, the interruption occured so the PIC must jump straight away to seq(2) which is 00100001 and stay on this sequence for 20 seconds and then return the normal process which is sequence(1) for 10s and seq(2) for 10s. However I have to write my code with just the assembly not in any other language !!!!