Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    OK, so you have MCS set up to use MPASM. You are not using MPLAB.

    Can you post your current config settings? Copy the Inc file. And can you post all of the errors you ar getting?

    I may have missed something before.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    I do not really like the way you are doing the configs.
    Have you read this?
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    if you set the configs in your program you will need to comment out the correct lines in the Inc.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    OK, so you have MCS set up to use MPASM. You are not using MPLAB.

    Can you post your current config settings? Copy the Inc file. And can you post all of the errors you ar getting?

    I may have missed something before.
    I am using MPLAB for Building

    Here is a copy of the config file

    Code:
    ;****************************************************************
    ;*  18F1220.INC                                                 *
    ;*                                                              *
    ;*  By        : Leonard Zerman, Jeff Schmoyer                   *
    ;*  Notice    : Copyright (c) 2004 microEngineering Labs, Inc.  *
    ;*              All Rights Reserved                             *
    ;*  Date      : 01/27/04                                        *
    ;*  Version   : 2.45                                            *
    ;*  Notes     :                                                 *
    ;****************************************************************
            NOLIST
        ifdef PM_USED
            LIST
            "Error: PM does not support this device.  Use MPASM."
            NOLIST
        else
            LIST
            LIST p = 18F1220, r = dec, w = -311, f = inhx32
            INCLUDE "P18F1220.INC"  ; MPASM  Header
            __CONFIG    _CONFIG1H, _IESO_OFF_1H & _FSCM_OFF_1H & _INTIO2_OSC_1H
            __CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
            __CONFIG    _CONFIG3H, _MCLRE_ON_3H
            __CONFIG    _CONFIG4L, _LVP_OFF_4L
            NOLIST
        endif
            LIST
    EEPROM_START	EQU	0F00000h
    BLOCK_SIZE	EQU	8
    Last edited by wbubel; - 3rd August 2009 at 14:18.

  4. #4
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Here is the rest of the errors
    Code:
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1501 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1506 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1506 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1566 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1566 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1573 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1573 : Illegal opcode (L00003)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1577 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1577 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1580 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1580 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1585 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1585 : Illegal opcode (_OverReEnterH)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1588 : Found label after column 1. (DENABLE?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1588 : Address label duplicated or different in second pass (DENABLE?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1593 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1593 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1604 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1604 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1610 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1610 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 508 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 508 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 513 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 513 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 570 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 570 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 575 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 575 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 622 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 622 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 627 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 627 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 652 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 652 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 657 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 657 : Address label duplicated or different in second pass (ASM?)
    Error[113]   C:\PBP\PBPPIC18.LIB 703 : Symbol not previously defined (_SavePBP_H)
    Error[113]   C:\PBP\PBPPIC18.LIB 713 : Symbol not previously defined (_SavePBP_H)
    Error[113]   C:\PBP\PBPPIC18.LIB 714 : Symbol not previously defined (_SavePBP_H)
    Error[113]   C:\PBP\PBPPIC18.LIB 703 : Symbol not previously defined (_ToggleLED1)
    Error[113]   C:\PBP\PBPPIC18.LIB 713 : Symbol not previously defined (_ToggleLED1)
    Error[113]   C:\PBP\PBPPIC18.LIB 714 : Symbol not previously defined (_ToggleLED1)
    Error[113]   C:\PBP\PBPPIC18.LIB 703 : Symbol not previously defined (_RestorePBP_H)
    Error[113]   C:\PBP\PBPPIC18.LIB 713 : Symbol not previously defined (_RestorePBP_H)
    Error[113]   C:\PBP\PBPPIC18.LIB 714 : Symbol not previously defined (_RestorePBP_H)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1618 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1618 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1626 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1626 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 508 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 508 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 513 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 513 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 570 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 570 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 575 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 575 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 622 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 622 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 627 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 627 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 652 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 652 : Address label duplicated or different in second pass (ENDASM?)

  5. #5
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Code:
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 657 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 657 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1629 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1629 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1634 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1634 : Illegal opcode (_Main)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1638 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1638 : Illegal opcode (L00005)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1639 : Found label after column 1. (CMPGT?BCL)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1639 : Illegal opcode (_DutyCycle)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1642 : Found label after column 1. (GOSUB?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1642 : Illegal opcode (_SetDutyCycle)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1645 : Found label after column 1. (PAUSE?C)
    Error[108]   C:\PIC PROGRAMS\BLINK I.ASM 1645 : Illegal character (0)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1648 : Found label after column 1. (NEXT?BCL)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1648 : Illegal opcode (_DutyCycle)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1649 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1649 : Illegal opcode (L00006)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1653 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1653 : Illegal opcode (L00007)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1654 : Found label after column 1. (CMPLT?BCL)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1654 : Illegal opcode (_DutyCycle)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1657 : Found label after column 1. (GOSUB?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1657 : Illegal opcode (_SetDutyCycle)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1660 : Found label after column 1. (PAUSE?C)
    Error[108]   C:\PIC PROGRAMS\BLINK I.ASM 1660 : Illegal character (0)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1663 : Found label after column 1. (NEXTM?BCL)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1663 : Illegal opcode (_DutyCycle)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1664 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1664 : Illegal opcode (L00008)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1667 : Found label after column 1. (GOTO?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1667 : Illegal opcode (_Main)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1671 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1671 : Illegal opcode (_SetDutyCycle)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1674 : Found label after column 1. (MULMID?CBW)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1674 : Illegal opcode (_TotalCount)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1677 : Found label after column 1. (SUB?CWW)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1677 : Illegal opcode (_TotalCount)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1680 : Found label after column 1. (CMPNE?BCL)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1680 : Illegal opcode (_DutyCycle)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1686 : Found label after column 1. (LOW?T)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1686 : Illegal opcode (PORTB)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1689 : Found label after column 1. (GOTO?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1689 : Illegal opcode (L00010)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1690 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1690 : Illegal opcode (L00009)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1696 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1696 : Illegal opcode (L00010)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1699 : Found label after column 1. (RETURN?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1702 : Found label after column 1. (DDISABLE?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1702 : Address label duplicated or different in second pass (DDISABLE?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1706 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1706 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1709 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1709 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1714 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1714 : Illegal opcode (_ToggleLED1)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1717 : Found label after column 1. (CMPF?TL)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1717 : Illegal opcode (PORTB)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1720 : Found label after column 1. (LOW?T)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1720 : Illegal opcode (PORTB)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1732 : Found label after column 1. (GOTO?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1732 : Illegal opcode (L00012)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1733 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1733 : Illegal opcode (L00011)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1736 : Found label after column 1. (HIGH?T)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1736 : Illegal opcode (PORTB)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1748 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1748 : Illegal opcode (L00012)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1752 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1752 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1755 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1755 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1759 : Found label after column 1. (DENABLE?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1759 : Address label duplicated or different in second pass (DENABLE?)
    Halting build on first failure as requested.
    BUILD FAILED: Mon Aug 03 09:13:22 2009

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    When I compile it works but trying to build using MPLAB I get a masive amount of errors
    Are you compiling from MCS, then importing the .asm file into MPLAB, and trying to
    build it?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Are you compiling from MCS, then importing the .asm file into MPLAB, and trying to
    build it?
    Yes, that is the way I have always built .asm files. I never encounted errors to this magnatude before.

  8. #8
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    If you're using MPLAB with PBP just setup PBP as a language tool in MPLAB. There's no
    reason to compile in MCS, then import the .asm produced and assemble it again.

    Your PBP code has already been assembled, and the .HEX file has already been created.

    If you have an old version of PBP that's not compatible with the version of MPLAB you have,
    then upgrade PBP or download & install an older version of MPLAB.

    Why are you compiling in MCS then trying to assemble it all again in MPLAB?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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 : 6

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