>> I have set the osc to INTRC-CLKOUT, which should be about 8MHz, but >> with the MPLAB SIM, I have to set the processor speed to about >> 20Khz >> to get near to the speed I'm using. > Huh? I don't have a clue what you are doing or trying to say here. > If the > internal oscillator is running at 8MHz, then how is 20KHz nearer to > the > speed you are using? > You should tell the simulator the correct clock speed. It doesn't > effect > performance one way or the other, but it does allow the stopwatch > display to > be correct. That's a useful way to check your blinking LED code to > make > sure it is blinking at the expected speed. What he means is that for the stopwatch to match what he sees in real time he needs to set the simulator to about 20 KHz. This points to his clock actually being about 20 KHz - in fact it was 32 kHz because he failed to ever transition from the startup mode to the internal 8MHz RC mode. RM -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist