Hi,

From the manual:

PBP defaults to using a 4MHz oscillator.

Adding the statement DEFINE OSC 8 near the beginning of the PicBasic Pro program tells
PBP an 8MHz oscillator will be used instead. The acceptable oscillator definitions are:

3(3.58) 4 8 10 12 16 20 24 25 32 33 40

Telling PBP the oscillator frequency allows it to compensate and produce
the correct timing for COUNT, DEBUG, DEBUGIN, DTMFOUT, FREQOUT,
HPWM, HSERIN, HSEROUT, I2CREAD, I2CWRITE, LCDOUT, OWIN, OWOUT,
PAUSE, PAUSEUS, SERIN, SERIN2, SEROUT, SEROUT2, SHIFTIN,
SHIFTOUT, SOUND, XIN and XOUT.

* * *
Luciano