Trying to run a light sequencer using WAIT for the main body timing, and an interrupt-driven service routine triggered from TMR0, at the same time. I'm getting some bizarre effects like like lights out of sequence, and in general everything only works if I run it very slowly (the interrupt is called every 512 microsec). I was wondering if the WAIT routine used TMR0 and the two processes were getting tangled up?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Trying to run a light sequencer using WAIT for the main body timing, and an interrupt-driven service routine triggered from TMR0, at the same time. I'm getting some bizarre effects like like lights out of sequence, and in general everything only works if I run it very slowly (the interrupt is called every 512 microsec). I was wondering if the WAIT routine used TMR0 and the two processes were getting tangled up?
No.
The Wait command just delays the program by wasting CPU cycles - no timers are used.