>As Andy said, "a project like this is harder than it first appears". Tell me about it. I did one a while back that was supposed to take a month. I figured a simple state machine would do the trick. You need to factor in dwell time, noise spikes, brown out, low rev timing, rev limiting, etc. Craig