18F2420, instant interrupts, and TMR0


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Try changing OSCCON=%11111110 to OSCCON=%11111100. The internal osc is the primary osc in this configuration since you have it set in your config option. I.E. the intrnal osc is now considered the primary oscillator.
    WOW!

    I'd searched, and re-searched and could not find a reason.

    But looking at FIGURE 2-8 (Clock diagram)
    I can totally see how that makes a difference.

    Nice Bruce!
    DT

  2. #2
    Join Date
    Feb 2008
    Posts
    8


    Did you find this post helpful? Yes | No

    Smile it now works!

    reading the OSCCON configuration was indeed a bit (pardon the pun) confusing because i thought i was selecting the internal osc by setting osccon.1 and osccon.0 to 1x. thanks for straightening me out. i've tested it and it does indeed work.

    thanks again everyone (especially Bruce)!

    now i'm running 32Mhz off of an internal osc. that's awesome!

    -=drew

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 23:14
  2. Timer0 Instant Interrupts Question
    By wmarchewka in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th December 2009, 06:29
  3. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 05:52
  4. 16F946 Instant Interrupts problem
    By jderson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th April 2009, 23:20
  5. help: TMR0 interrupts disabling PORTAchange interrupts???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2008, 16:10

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