> If the DC is applied then the clock input connected it works > the way the > code would suggest. But if the clock is connected before the > DC power > is applied strange things happen (LEDs not in the states the > code would > suggest). If you can't prevent osc input before power is available I would put some load on the power line (470 Ohm would be fine - 10 mA) and add an external brown-out reset chip (TO92 style, microchip has them, plenty of others too). Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist