Got it working ! As about half of you were guessing, the configuration bits were wrong. I don't understand why PICkit was saying that write-and-verify worked when even the OSC stuff was wrong, but what do I know ? Nothing wrong with the C code; it worked just fine once the config bits were right. Thanks all ! Bill Dietrich bill_dietrich@yahoo.com http://www.geocities.com/bill_dietrich/ sailing vessel "Magnolia": 1973 Gulfstar 44 ketch motor-sailer -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist