Darrel Taylor - Instant Interrupts-Problem 16F877A


Closed Thread
Results 1 to 14 of 14

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    ENABLE and DISABLE have no effect with DT_INTS.
    Those are only for ON INTERRUPT.

    With DT_INTS there are two commands ...
    Code:
    @  INT_ENABLE  TMR1_INT
    @  INT_DISABLE  TMR1_INT
    They can be used anywhere in your program.
    Once disabled, you will not receive any interrupts from that source or peripheral until you execute another @ INT_ENABLE.

    When you INT_ENABLE, the flag is automatically cleared so you don't get an interrupt immediately if the flag was set.
    <br>
    DT

  2. #2
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Question

    Thanks for the quick relply, just some last bit of confusion left:
    1) When interrupt will happen while waiting for an RF signal - How do I send the code to go from ISR to main label?

    2) Can I disable the interrupt in the ISR? for eg:
    Code:
    _ToggleLED:
    @INT_Disable
    goto main
    @INT_Return ' Should I use this if I am sending the code to another label?

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


    Did you find this post helpful? Yes | No

    Exclamation

    How do I send the code to go from ISR to main label?
    Like I said before.
    You should NOT jump out of an interrupt handler to the main loop.
    <br>
    DT

  4. #4
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Question

    Hello Darrel
    I am using the interrupts on 12F635 for a different program now and I am getting the following errors:
    Code:
    Executing: "C:\PBP\PBPW.EXE" -ampasmwin -oq -z   -p12F635 "TxRx.bas"
    PICBASIC PRO(TM) Compiler 2.50b, (c) 1998, 2008 microEngineering Labs, Inc.
    All Rights Reserved. 
    
    ERROR: Variable wsave3 position request 416 beyond RAM_END 127.
    ERROR: Variable wsave2 position request 288 beyond RAM_END 127.
    ERROR: Variable wsave1 position request 160 beyond RAM_END 127.
    ERROR: Unable to fit variable wsave
    ERROR: Unable to fit variable RS1_Save
    ERROR: Unable to fit variable RS2_SaveHalting build on first failure as requested.
    BUILD FAILED: Thu Dec 31 14:13:38 2009
    Any advise as to how to get rid of these?
    I am trying to put interrupts for getting proper timeout for Serin command, is it a good way to it? Thanks for your help.

Similar Threads

  1. Problem displaying data from GPS module & using 16f877a
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 15th April 2010, 11:27
  2. 16F946 Instant Interrupts problem
    By jderson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th April 2009, 23:20
  3. Darrel Taylor Interrupts I2C Problem
    By dcorraliza in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 26th March 2008, 03:13
  4. 16F877A problem: "coupled" digital values
    By Lupo83 in forum General
    Replies: 16
    Last Post: - 4th December 2007, 13:46
  5. using darrel taylor's instant interrupts
    By Michael Wakileh in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 31st July 2007, 05: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