Sunday, May 06, 2007
Interrupt routines conflict with the hardware serial output on PICs
Recently, I decided to turn on the timer interrupt and shaft encoder interrupts at the get-go when I switched on the system. That saved me a lot of worry about missing shaft encoder pulses during down times. Before I'd been starting up the interrupt routines only after I'd read in an instruction over the serial link with the PC.
There was no trouble with that during initial tests, but when I started to run multi-hour prints I noticed that Tommelise would just stop at random times always after having completed whatever instruction that I had given it and before doing the next one.
(Read the full story)