DEFINE OSC for 31 khz


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default Re: DEFINE OSC for 31 khz

    IOC is Interrupt On Change.
    It can be used to trip an interrupt (and wake the PIC up if it's sleeping) when the state of a pin changes.

    PBP will not support 32kHz operation. It will RUN the code of course but anything software timed (PAUSE, SEROUT, PULSIN, whatever) will be off by a factor of a lot.
    You can DEFINE OSC 4 while still running the PIC at 32kHz but a PAUSE 100 for example will in fact turn into a 12500ms delay. If that's not an issue then it's perfectly fine.

    Another option is to use 32kHz for the most part and then switch to 4MHz (or whatever) when you need to actually do something important. But of course, if you're not doing anything and you're looking for the lowest possible current consumption then you need to put the PIC into sleep mode and only wake it up when needed.

    /Henrik.

  2. #2
    Join Date
    Dec 2012
    Location
    Türkiye
    Posts
    103


    Did you find this post helpful? Yes | No

    Default Re: DEFINE OSC for 31 khz

    Thank you Henrik you're the one after Darrel ...

  3. #3
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: DEFINE OSC for 31 khz

    Quote Originally Posted by HenrikOlsson View Post
    ...looking for the lowest possible current consumption then you need to put the PIC into sleep mode and only wake it up when needed.

    /Henrik.
    What I said from the very beginning.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

Similar Threads

  1. DEFINE OSC too limited
    By mytekcontrols in forum PBP Wish List
    Replies: 18
    Last Post: - 28th July 2015, 02:32
  2. 'DEFINE OSC 8' seems to be ignored by PBP ?
    By mr.sneezy in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 26th May 2010, 11:50
  3. Define osc 1
    By ronsimpson in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st October 2009, 06:35
  4. Define osc
    By jderson in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd July 2009, 06:05
  5. Define Osc Not Working
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd February 2005, 11:23

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