Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Instant Interrupts - Revisited

    Hi Darrel: I made a little test with this:
    DEFINE OSC 8
    ' **** CONFIGURACION 16F1826 *************************
    #CONFIG
    __config _CONFIG1, _FOSC_INTOSC & _MCLRE_OFF & _CP_ON & _WDTE_OFF
    __config _CONFIG2, _PLLEN_ON & _LVP_OFF
    #ENDCONFIG
    ANSELA= %00000001 'Set 'em all to digital
    ANSELB= 0 ' 'all digital
    ADCON0= 1
    adcon1=$80
    CM1CON0 = 0
    CM2CON0 = 0
    OSCCON = $72
    '*******************************
    LED1 VAR PORTB.3

    INCLUDE "DT_INTS-14.bas" ' Base Interrupt System
    INCLUDE "ReEnterPBP.bas" ' Include if using PBP interrupts

    ASM
    INT_LIST macro ; IntSource, Label, Type, ResetFlag?
    INT_Handler TMR1_INT, _ToggleLED1, PBP, yes
    endm
    INT_CREATE ; Creates the interrupt processor
    ENDASM

    T1CON = $31 ; Prescaler = 8, TMR1ON
    @ INT_ENABLE TMR1_INT ; enable Timer 1 interrupts

    Main:
    PAUSE 1
    GOTO Main

    '---[TMR1 - interrupt handler]--------------------------------------------------
    ToggleLED1:
    TOGGLE LED1
    @ INT_RETURN

    When I compile, I got 2 errors:
    574 Illegal opcode (aftersave)
    581 Illegal code (AfterUserRoutine)

    and two warnings:
    574 found label after column 1 (GetAddress)
    581 found label after column 1 (GetAddress)
    Please help...
    Greetings...
    Ruben de la Pena V.

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


    Did you find this post helpful? Yes | No

    Default Re: Instant Interrupts - Revisited

    Ruben,

    1) Did you retype the errors, or copy&paste them? The errors are not even the correct format.

    2) Have you modified the DT_INTS-14.bas file? The stated errors do not occur when I compile your code.

    Try downloading the include files again.
    http://www.darreltaylor.com/DT_INTS-14/downloads.htm
    DT

Similar Threads

  1. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 21:43
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 20:02
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 06:32
  5. Replies: 1
    Last Post: - 1st November 2006, 03:11

Members who have read this thread : 8

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts