intrc question


Closed Thread
Results 1 to 2 of 2

Thread: intrc question

  1. #1
    Join Date
    Feb 2006
    Location
    colorado
    Posts
    5

    Default intrc question

    I have a question about the intrc options with the meProg setup. The internal
    osc has 2 options, INTRC and INTRC clockout. The help offers no information
    on what the options do. The 18F2520 has an internal osc and a PLL to do a 4x.
    The data sheet also says the internal osc is 8mhz and with a 4x it is 32mhz.
    Math even I can do. So, if I use the INTRC for 8mhz and then set the PLLEN,
    so I need to DEFINE OSC 8, or DEFINE OSC 32.

    Thanks in advance.

    Garry

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


    Did you find this post helpful? Yes | No

    Default

    Oscillator options like INTRC and INTRC clockout are described in the PICs Datasheet as it is a function of the individual PICs hardware. If it's in the Datasheet, don't expect to find it in the PICBasic documentation which is where a lot of people seem to take issue with this.

    The DEFINE OSC setting is for the frequency your PIC is going to be executing at... eg 10MHz Xtal with PLLx4 means you're running your program at 40MHz and that is what PICBasic needs to know. So in that example it's DEFINE OSC 40.

Similar Threads

  1. Timer0 Instant Interrupts Question
    By wmarchewka in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th December 2009, 05:29
  2. really simple, dumb question
    By picster in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd March 2007, 22:02
  3. PIC16F684 Program question
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th December 2006, 14:30
  4. Question for a math guru
    By Christopher4187 in forum General
    Replies: 3
    Last Post: - 22nd November 2006, 09:45
  5. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49

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