On Tue, Oct 11, 2011 at 1:08 PM, Andre Abelian wr= ote: > I like to see the code too. I am hopping it's not assembly Take a look at the piclist techref link posted earlier in this thread. The algorithm is clearly described, and it is easy to follow the code with only the most basic knowledge of ASM. I had a hard disk fail on me last week, and have since disassembled it and figured out how to read the pulses generated by the drive motor when the platter is spun by hand. I haven't gotten around to writing the driver code, but the above algorithm will sure help with that. FWIW, I'm using C to target an MSP430... -p. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .