A question on defining the external oscillator


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Thanks Melanie

    Yes, what you suggested is what I did initially to find that adding DEFINE OSC 20 changed the timing on a blinking LED (using some PAUSE statements) back to what it was at 4 MHZ.

    I guess I should have looked at page 172 of the manual a little closer.

    From that I gather then, only the "timing - related" commands will operate at basically a 4MHX clock rate, - and everything will be faster by a factor of 5 ..

    I need the extra speed to get through a lot of IF-THEN statements faster.

    Thanks

    Ken

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Yes you are correct. Only Timing Critical commands will be brought back into line (eg PAUSE, PAUSEUS etc) in order to operate correctly (not nescessarilly to operate at 4Mhz but to operate CORRECTLY at your processor speed). All others will be quicker x500%.

Similar Threads

  1. First time with external oscillator - 16F877a Not working
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 15th October 2009, 18:14
  2. 16f877A and tmr1 external crystal question
    By comwarrior in forum General
    Replies: 3
    Last Post: - 13th July 2009, 01:40
  3. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 01:55
  4. How to use an external oscillator
    By Mugelpower in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th February 2008, 15:19
  5. External oscillator and startup
    By RussMartin in forum General
    Replies: 4
    Last Post: - 17th March 2007, 02:53

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