DT Instant Interrupts - Clarification?


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default Re: DT Instant Interrupts - Clarification?

    That is correct, there are two versions - one (DT_INTS-18) for PIC18 and one (DT_INTS-14) for PIC12 and 16. See here for more details.

  2. #2
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    173


    Did you find this post helpful? Yes | No

    Default Re: DT Instant Interrupts - Clarification?

    Hmmm.... it would appear that DT_INST-14 doesn't work with PIC12F683
    I downloaded Ver 1.1 of the application and trialed the "Hello World" program from Darrel's website.
    I made the necessary change from PORTB.1 to GPIO.1 for the LED1 variable but got a host of errors when compiling:

    Error[101] DT_INTS-14 TEST.ASM 235 : ERROR: (wsave variable not found,)
    Error[101] DT_INTS-14 TEST.ASM 201 : ERROR: (" Add:" wsave VAR BYTE $20 SYSTEM)
    Error[101] DT_INTS-14 TEST.ASM 256 : ERROR: (Chip has RAM in BANK1, but wsave1 was not found.)
    Error[101] DT_INTS-14 TEST.ASM 208 : ERROR: (" Add:" wsave1 VAR BYTE $A0 SYSTEM)


    Should I be able to do this with a PIC12F683?
    Can anyone provide some input to this problem?

    I have attached a copy of the full code for review.

    Cheers
    Barry
    Attached Files Attached Files

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: DT Instant Interrupts - Clarification?

    The cool thing is the answer is in the error message.
    Error[101] DT_INTS-14 TEST.ASM 235 : ERROR: (wsave variable not found,)
    Error[101] DT_INTS-14 TEST.ASM 201 : ERROR: (" Add:" wsave VAR BYTE $20 SYSTEM)
    So..
    Put
    wsave VAR BYTE $20 SYSTEM
    in your code's variable section.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    173


    Did you find this post helpful? Yes | No

    Default Re: DT Instant Interrupts - Clarification?

    Thanks Dave.

    I have added the two variables wsave and wsave1 as specified in DT_INST-14.bas
    I now have more errors at compilation:

    Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k# -p12F683 "DT_INTS-14 Test.bas"
    Executing: "C:\PBP\PBPW.EXE" -ampasmwin -k# -p12F683 "DT_INTS-14 Test.bas"
    PICBASIC PRO(TM) Compiler 2.60C, (c) 1998, 2011 microEngineering Labs, Inc.
    All Rights Reserved.
    Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k# -p12F683 "DT_INTS-14.bas"
    Executing: "C:\PBP\PBPW.EXE" -ampasmwin -k# -p12F683 "DT_INTS-14.bas"
    PICBASIC PRO(TM) Compiler 2.60C, (c) 1998, 2011 microEngineering Labs, Inc.
    All Rights Reserved.
    ERROR: Unable to execute mpasmwin.Error[113] C:\PBP\PBPPIC14.LIB 1165 : Symbol not previously defined (INT_ENTRY)
    Error[101] C:\PBP\PROJECTS\DT_INTS-14 TEST\DT_INTS-14.ASM 187 : ERROR: (wsave variable not found,)
    Error[101] C:\PBP\PROJECTS\DT_INTS-14 TEST\DT_INTS-14.ASM 153 : ERROR: (" Add:" wsave VAR BYTE $20 SYSTEM)
    Error[101] C:\PBP\PROJECTS\DT_INTS-14 TEST\DT_INTS-14.ASM 208 : ERROR: (Chip has RAM in BANK1, but wsave1 was not found.)
    Error[101] C:\PBP\PROJECTS\DT_INTS-14 TEST\DT_INTS-14.ASM 160 : ERROR: (" Add:" wsave1 VAR BYTE $A0 SYSTEM)
    Halting build on first failure as requested.

    Any clues here?

    Again, I have attached a copy of my main code for review.

    Cheers
    Barry
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Default Re: DT Instant Interrupts - Clarification?

    It's trying to compile both your source file and the include file separately.
    Remove DT_INTS-14.bas from the "Source Files".

    You should only have your main program in the source files list of MPLAB.
    DT

  6. #6
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    173


    Did you find this post helpful? Yes | No

    Default Re: DT Instant Interrupts - Clarification?

    Thanks Darrel - that did the trick.

    Now that I have the simple things sorted it is onwards and upwards to bigger and better phases of my project.

    Cheers
    Barry

  7. #7
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    173


    Did you find this post helpful? Yes | No

    Default Re: DT Instant Interrupts - Clarification?

    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
    PICSprayer.bas
    PICSPRAYER_r6.pdf

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