PDA

View Full Version : 6 MHz Osc and PauseUSL errors



vk2tds
- 30th August 2007, 03:50
Hi.

I have a PCB with a 6 MHz crystal for the processor. Generally this board is working well, but I am coming up with issues when I try to use the LCD or PAUSE functions.

I am using DEFINE OSC 6 and this seems to work for the RS232 functions. But I get errors about PauseUSL not being defined. I assume this is because the 6 MHz processor is not supported for anything except RS232...

I would love some advice on what to do... If I change OSC to 4 or 8 then the RS232 will be off frequency. ETC.

Thanks. Darryl

rhino
- 30th August 2007, 04:03
Could you post some code?

Bruce
- 30th August 2007, 18:13
Some PBP library functions rely on the OSC value defined. If you define one that's not
supported, you get this error.

You need to define an ocsillator speed that's supported by PBP to make things work as
expected.

paul borgmeier
- 31st August 2007, 05:04
If you define one that's not
supported, you get this error.

OSC 6 is not supported but OSC 12 is ... you might want to see if you can get away with that.

If you use OSC 12 define (but use 6 MHz Xtal), then, for example

Pause 500 ' really is 1000 since PBP thinks you have 12MHz but you have 6 MHz
Serout with 19,200 baudrate will really be 9,600
etc.
You can correct time critical commands by a factor of two but leave everything else unchanged - see manual (online version, see section 7.1)
HTH