TMR0 Pre Scale Question


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Dec 2004
    Location
    nebraska
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    Ok guys that helps allot. So every PBP instruction takes at least 4 clock cycles or the tmr0 is just set to increment every 4 clock cycles. Also maybe I missed it in the data sheets or I am just supposed to know this answer but what is the difference between low and high priority interrupts. So far I have just been disabling the priority level with RCON.7 = 0. The reason I ask is because I am going to be using the TMR0 Interrupt, the INT0, INT1,INT2 interrupt, and the usart continuous receiver interrupt. I've used all of them before by them selfs. I've used some of them together, but not all of them together in the same program. Oh ya I am using the on interrupt command in PBP. Once I have a good hand on that I may try to venture into (forgive me if I name the wrong creator of the program) Darrels instant interrupt program. I'm using the Pic 18F458 if that matters.

    Thanks again
    Shawn

  2. #2
    Join Date
    Dec 2004
    Location
    nebraska
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    Maybe I found an answer to the priority level question. Will a high priority interrupt wake the processor out of sleep mode and a low priority interrupt will not.
    New Question for ya all.
    Int2 on a Pic 18f458 says that the edge trigger is selectable in the INTCON2 registers. I'm not seeing it in there. INT0 and INT1 are in there apparently int2 is rising edge trigger only.

    Shawn

  3. #3
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    A high priority interrupt can interrupt a low priority interrupt, but not vice versa.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

Similar Threads

  1. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 05:52
  2. TMR0 interrupt and HSERIN
    By boban in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2008, 12:48
  3. help: TMR0 interrupts disabling PORTAchange interrupts???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2008, 16:10
  4. using TMR0 as a counter..
    By sirvo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th July 2007, 03:56
  5. Help to Pre Scale 4mhz to 20mhz
    By jetpr in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th September 2005, 04:30

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