Thanks Jan-Erik, by my calculations, a Chrystal freq of 25MHz and a OSCCON of 0x40 give a Clock freq of 41.667 MHz and a simple single Instruction execution rate of 10.416750 MHz. The period of wich is equal to 1/10416750 or 9.59e-8s Timing using the stopwatch, one simple instruction with a Processor Freq set to 41.667 MHz gives a time of 0.095999 uSecs Assuming I remember how to manipulate exponents correctly, I conclude they are the same. And as such the correct value to enter into the input box is 41.667 (MHz) Cheers Justin On 12/12/2014, Jan-Erik Soderholm wrote: > If you run a few simple instructions and time them > you should be able to find out the correct setting. > That is, the setting that gives a correct time. > > Jan-Erik. > > Justin Richards wrote 2014-12-12 12:37: >> I wish to use the stopwatch while experimenting with Olimex >> PIX_MICRO-WEB embedded ethernet PIC18F67J60 which has a 25MHz external >> xtal and a OSCTUNE value of 0x40 which produces a clock freq of >> 41.667MHz. >> >> I am not sure which value which value to enter in the Processor >> Frequency input box. >> >> As it is titled Processor Frequency and not Clock Freq I am leaning >> towards 41.667/4 MHz. ~ 10.41675Mhz. >> >> However, I am not 100% sure if the simulator takes into account the >> OSCTUNE value or if it is actually asking for the clock freq. >> >> (still) using MPLAB IDE 8.33 (X seemed a bit overwhelming) debugging >> with MPLAB SIM and pickit2. >> >> Justin >> > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=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 .