Hello,
I am working on a project on the PIC16F687 and I need to do some timing analysis on it (to figure out how long critical functions are taking to execute).
I looked around and saw that the MPLAB IDE has a simulator with a stopwatch function that can be used to do just that; but I am confused about setting up the simulator options. In particular, the oscillator options for the simulator has two fields: "Instruction frequency (Fcyc)" and "RC Oscillator Frequency" (shown in attached picture).
I am running the PIC at 8MHz:
In my init() I set: OSCCON = 0b01111000; //8MHz clock speed
I set the config bits: #pragma config FOSC = EXTRCCLK
I am using MPLAB IDE V3.20
my question is: What is the difference between the "Instruction Frequency" and "RC Oscillator Frequency" in the MPLAB simulator options menu, and what values should I have there to correctly simulate the core running at 8MHz.
Thank you very much in advance
I am working on a project on the PIC16F687 and I need to do some timing analysis on it (to figure out how long critical functions are taking to execute).
I looked around and saw that the MPLAB IDE has a simulator with a stopwatch function that can be used to do just that; but I am confused about setting up the simulator options. In particular, the oscillator options for the simulator has two fields: "Instruction frequency (Fcyc)" and "RC Oscillator Frequency" (shown in attached picture).
I am running the PIC at 8MHz:
In my init() I set: OSCCON = 0b01111000; //8MHz clock speed
I set the config bits: #pragma config FOSC = EXTRCCLK
I am using MPLAB IDE V3.20
my question is: What is the difference between the "Instruction Frequency" and "RC Oscillator Frequency" in the MPLAB simulator options menu, and what values should I have there to correctly simulate the core running at 8MHz.
Thank you very much in advance
Attachments
-
44.9 KB Views: 12