PIC12F675 at 20MHz ?? (Pic Basic Pro Compiler)


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2022
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: PIC12F675 at 20MHz ?? (Pic Basic Pro Compiler)

    OK.
    If I note that: “Since Defining an OSC value has no effect on PULSIN. The resolution always changes with the actual oscillator speed.”

    What then is the true usefulness of this DEFINE OSC command?

    Simply or imperatively specify in the PBP compiler the actual operating speed depending on a quartz or simply the internal oscillator.

    The only configuration of the OSC fuse bits would not be enough?

    I would then deduce that this command must always be placed in the program to specify the actual operating speed at PBP. Correct ?

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,686


    Did you find this post helpful? Yes | No

    Default Re: PIC12F675 at 20MHz ?? (Pic Basic Pro Compiler)

    What then is the true usefulness of this DEFINE OSC command?
    its not a command, its a compiler directive

    as pointed out it is used to:-
    inform the compiler what clock speed you're running at so it can adjust various internal timings. that's it nothing else

    do read the manual there is a chapter on define OSC
    pause command for instance
    DEFINE OSC must be used in order for PBP to accurately calculate and generate code for PAUSE. If no DEFINE OSC is placed in the program, PBP will assume that the system clock will operate at 4MHz and calibrate the generated code accordingly.
    Warning I'm not a teacher

Similar Threads

  1. Pic Basic Compiler
    By engr_israr40 in forum General
    Replies: 5
    Last Post: - 29th April 2007, 16:33
  2. PIC BASIC Compiler pbc:- Help!
    By timmoore47 in forum mel PIC BASIC
    Replies: 5
    Last Post: - 5th February 2007, 17:58
  3. Replies: 5
    Last Post: - 17th January 2006, 20:26
  4. PIC Basic Pro Compiler
    By iclok in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 25th November 2005, 04:22
  5. How to learn PIC BASIC compiler in 7 days?
    By luqman83salleh in forum General
    Replies: 2
    Last Post: - 13th August 2004, 15: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