Changing PreScaler during interrupt


Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126


    Did you find this post helpful? Yes | No

    Default

    I am using a F737 which shares the pre-scaler between the Watchdog and TMR0.

    Re-reading the data sheet I can see where I was getting a bit confused <code>(From the datasheet)
    When assigned to the Timer0 module, all instructions
    writing to the TMR0 register (e.g., CLRF 1, MOVWF 1,
    BSF 1,x....etc.) will clear the prescaler. When assigned
    to WDT, a CLRWDT instruction will clear the prescaler
    along with the Watchdog Timer.
    The prescaler is not
    readable or writable.
    </code>

    I was thinking Pre-Scaler meant the ratio rather than the count. Looks like it should work. Might be time to break out the breadboard and see what happens...

    bill
    Last edited by bcd; - 1st May 2008 at 09:11. Reason: Spelling...

Similar Threads

  1. Won't go back to SLEEP after 1st Interrupt
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 29th June 2009, 09:00
  2. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 02:35
  3. Sleep Mode
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th March 2008, 10:31
  4. Help with Analog Interrupt
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 18:14
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

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