'DEFINE OSC 8' seems to be ignored by PBP ?


Results 1 to 19 of 19

Threaded View

  1. #1
    Join Date
    Nov 2008
    Posts
    96

    Default 'DEFINE OSC 8' seems to be ignored by PBP ?

    I must have kicked a big black cat recently, my project is going from bug to bug like I've never had before.

    My current minor quirk is that on a PIC 18F1220 I'm finding my Pause statements run at double speed with a 8Mhz internal clock even though I set Define OSC 8 in the top of my code.
    If I set the Internal clock to run at 4Mhz and Define OSC my timing is OK. Leaving the clock source at 4Mhz and setting PBP Define to 8Mhz has no effect on program speed. I'd have expected a pause to go double the time length like that...

    I did an extra test and set Define OSC 16... Nope the pause statement (a LED flash) took the same time as with Define OSC 8 (or 4).

    Is there a condition where things like pause and serial PBP statements don't use the Define OSC X statement ?
    Last edited by mr.sneezy; - 24th May 2010 at 12:15.

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