Hi,
I always have trouble when programming INTERRUPTS. I'm using Oshonsoft BASIC.
I have examples using one INTERRUPT with TMR1 or TMR0, but now need two. HIGH and LOW
1/ When using two INTERRUPTS do I use two different TIMERS or if the times are changed, is one ok?
2/ Am I correct that once the INTERRUPT has triggered the whole of that INTERRUPT routine is carried out before resuming back to the main program LOOP?
or 3/ if there is a HIGH INTERRUPT will it break into the LOW INTERRUPT?
I'm reluctant to post my program, as I've been told it's difficult to read, and a bit spaghetti like
Camerart
I always have trouble when programming INTERRUPTS. I'm using Oshonsoft BASIC.
I have examples using one INTERRUPT with TMR1 or TMR0, but now need two. HIGH and LOW
1/ When using two INTERRUPTS do I use two different TIMERS or if the times are changed, is one ok?
2/ Am I correct that once the INTERRUPT has triggered the whole of that INTERRUPT routine is carried out before resuming back to the main program LOOP?
or 3/ if there is a HIGH INTERRUPT will it break into the LOW INTERRUPT?
I'm reluctant to post my program, as I've been told it's difficult to read, and a bit spaghetti like
Camerart