Sunday, May 06, 2007


Interrupt routines conflict with the hardware serial output on PICs

I ran across something that I thought might be of interest to Darwin developers while working with Tommelise. I'm using an 18F4610 PIC chip to drive Tommelise, as you know.

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)

Comments: Post a Comment

Links to this post:

Create a Link

<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to
Posts [Atom]