Detecting gearbox position could be problematic. Brake light on, and battery voltage drop (ignition turning off) might serve. Brake light state can be tapped at the switch. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist