DT-INTERRUPT Example Elapsed Time


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68

    Default DT-INTERRUPT Example Elapsed Time

    After realizing that my flight controller needs real-time interrupts, I downloaded Darrel Taylor's DT-Interrupt-18 example, Hello World.

    (The Title says "Elapsed Time' but it was really Hello World)

    Nothing was modified, the int stuff was extracted to the c:\pbp directory, but it doesn't compile. I'm using an 18F252.

    Here are the messages:

    ERROR: Unable to execute mpasmwin.Error[116] C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\MPLAB\TEST\TEST.ASM 538 : Address label duplicated or different in second pass (Z00015)
    Error[116] C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\MPLAB\TEST\TEST.ASM 601 : Address label duplicated or different in second pass (Z00016)
    Error[116] C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\MPLAB\TEST\TEST.ASM 654 : Address label duplicated or different in second pass (Z00017)
    Error[116] C:\DOCUMENTS AND SETTINGS\MIKE\DESKTOP\MPLAB\TEST\TEST.ASM 685 : Address label duplicated or different in second pass (Z00018)

    Here's the code;

    LED1 VAR PORTB.1

    INCLUDE "DT_INTS-18.bas" ; Base Interrupt System
    INCLUDE "ReEnterPBP-18.bas" ; Include if using PBP interrupts

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

    @ INT_ENABLE INT_INT ; enable external (INT) interrupts

    Main:
    PAUSE 1
    GOTO Main

    '---[INT - interrupt handler]---------------------------------------------------
    ToggleLED1:
    TOGGLE LED1
    @ INT_RETURN
    Last edited by PickyBiker; - 15th April 2010 at 21:59.
    PickyBiker says, "Riding a motorcycle eases programming frustration".

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    I think you need the newest version for Darrel's interrupts. It can be found here http://www.picbasic.co.uk/forum/show...26&postcount=3

  3. #3
    Join Date
    Mar 2010
    Location
    Austin, TX
    Posts
    68


    Did you find this post helpful? Yes | No

    Default

    You are correct sir. Interesting, you pointed me to a location with the DT-INT-18 that is newer than the one on his home page.

    Thanks!
    PickyBiker says, "Riding a motorcycle eases programming frustration".

Members who have read this thread : 1

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