DT Instant Interrupts - Clarification?


Results 1 to 23 of 23

Threaded View

  1. #11
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: DT Instant Interrupts - Clarification?

    Quote Originally Posted by Aussie Barry View Post
    OK, I have now tried to implement the DT_INST-14 routines into my main project code. The attached code file has sufficient comments to explain what it is doing.

    I am getting the following errors when I try to compile the program:

    Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k- -p12F683 "PICSprayer.bas"
    Executing: "C:\PBP\PBPW.EXE" -ampasmwin -k- -p12F683 "PICSprayer.bas"
    PICBASIC PRO(TM) Compiler 2.60C, (c) 1998, 2011 microEngineering Labs, Inc.
    All Rights Reserved.
    ERROR: Unable to execute mpasmwin.Error[127] C:\PBP\PROJECTS\PIC SPRAYER\PICSPRAYER.ASM 912 : Too many arguments
    Error[128] C:\PBP\PROJECTS\PIC SPRAYER\PICSPRAYER.ASM 473 : Missing argument(s)
    Halting build on first failure as requested.
    BUILD FAILED: Fri Jul 08 11:35:51 2011

    My code compiles properly without the interrupt routine for the manual switch operation. Now I just don't know where to start looking to fix these errors.

    Any help would be greatly appreciated.

    Cheers
    Barry
    Attachment 5752
    Attachment 5751
    Please replace your interrupt routine by code by this one, and post your results;

    Code:
    ASM
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
    INT_Handler   INT_INT,   _ManualSwitch,   PBP,  yes
       endm
       INT_CREATE               ; Creates the interrupt processor
     
    INT_ENABLE  INT_INT     ; Enable 
    ENDASM

    EDIT: Bruce was faster than me...
    Last edited by gadelhas; - 8th July 2011 at 12:34. Reason: Bruce was faster
    Thanks and Regards;
    Gadelhas

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