6 MHz Osc and PauseUSL errors


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2005
    Posts
    2

    Default 6 MHz Osc and PauseUSL errors

    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

  2. #2
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Could you post some code?
    Wisdom is knowing what path to take next... Integrity is taking it.
    Ryan Miller

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    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.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    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
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts