Hi Kevin Have a look for the include file for the pic you are using, in this case 16f877.inc and open it in notepad, it should look like the following. ;**************************************************************** ;* 16F877.INC * ;* * ;* By : Leonard Zerman, Jeff Schmoyer * ;* Notice : Copyright (c) 2003 microEngineering Labs, Inc. * ;* All Rights Reserved * ;* Date : 11/07/03 * ;* Version : 2.45 * ;* Notes : * ;**************************************************************** NOLIST ifdef PM_USED LIST include 'M16F87x.INC' ; PM header device pic16F877, xt_osc, wdt_on, pwrt_on, lvp_off, protect_off XALL NOLIST else LIST LIST p = 16F877, r = dec, w = -302 INCLUDE "P16F877.INC" ; MPASM Header __config _XT_OSC & _WDT_ON & _PWRTE_ON & _LVP_OFF & _CP_OFF NOLIST endif LIST What you need to do is edit the text and change it from xt to hs watch case sensitivity if you are using MPASM Richard ----- Original Message ----- From: "Kev Pearce (kevp.com)" To: "Microcontroller discussion list - Public." Sent: Wednesday, November 30, 2005 10:16 AM Subject: Re: [PIC] I Can't get a 16F877 to run at 20MHz... > Then it, failed then worked..... I then realised for some reason each time > I reload a new HEX file in the mikroe picusb1 programmer software it > resets the oscialltor mode to XT!!! How annoying! Tried the lastest > release no different. I'll post on the mikroe forums to see if this can be > fixed. > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist