Hi all:

I have a question regarding how I define a HS oscillator. The first three lines of code are as follows

@ DEVICE PIC16F870, HS_OSC
INCLUDE "alldigital.INC"

DEFINE OSC 20


Now - - The program works exactly as I wish, unless I add the DEFINE OSC 20 line -then it seems to revert back to 4 MHZ....
If I omit the DEFINE statement, it works perfectly at the higher speed.

I am using a 20MHZ Resonator, since accuracy is not important in this application.

I guess I don't care, since it works as I hope without the DEFINE, I just am confused why the DEFINE OSC 20 statement would cause it to run slower.

Ken