Hi,
I have a program with an INTERRUPT. This is triggered by $sentences sent from 3x different sources, and they are random, but a few times/second between them. They give DATA into the RX PIN that the MAIN program LOOP processes.
As they are INTERRUPTs I assume that each time a $ arrives the LOOP is jumped out of while the INTERRUPT works. I'm guessing that this is not giving the LOOP enough time.
Is there a proceedure to time INTERRUPTs to give a better balance netween them and the MAIN LOOP?
EDIT: Am I correct that an INTERRUPT jumps out of the program LOOP does it's job, then jumps back in at the same point?
Cheers, Camerart.
I have a program with an INTERRUPT. This is triggered by $sentences sent from 3x different sources, and they are random, but a few times/second between them. They give DATA into the RX PIN that the MAIN program LOOP processes.
As they are INTERRUPTs I assume that each time a $ arrives the LOOP is jumped out of while the INTERRUPT works. I'm guessing that this is not giving the LOOP enough time.
Is there a proceedure to time INTERRUPTs to give a better balance netween them and the MAIN LOOP?
EDIT: Am I correct that an INTERRUPT jumps out of the program LOOP does it's job, then jumps back in at the same point?
Cheers, Camerart.
Last edited: