Peter Feucht wrote: > RB5 is located near Vdd, so I simply make a short between Vdd and RB5 > if I like to have model 2 (or leave everything as is for model 1). > When starting up the circuit the first time or when batteries are > changed the software looks for the state of RB5. To do this, I output > a log.0 Huh? I think you mean driving RB5 low. > to RB5 and read the state immediately. If there is no > connection to Vdd it should read zero again. But if there is a > connection it should read log.1. I don't like this because you are driving a output low that is tied to Vdd. If you want a solder blob to select between two models, It would be better to put proper pads for that and pull up or down resistor and maybe a 100pF or so holding cap. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist