> If you want a smaller package and don't mind doing a bit of > messing around, the 8-pin 12f675 is also nice. But its a bit > more software By using a timer interrupt the hardware can be minimised, for example if the three LEDs have a common resistor and the three switches do too. So possibly 2 resistors only, assuming the internal pull-ups are made use of and the 4th switch is a SPDT that doesn't leave its input floating. Possibly a SPST + resistor is cheaper than a SPDT Not especially difficult but for a one-off pretty much a self- satisfying programming exercise that might or might not be worth the time involved Joe --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .