Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Dave here

    in MCS -view-program options-assembler tab. Check the box for using MPASM. The hex will be created when you compile with MCS.

    You do not need to start MPLAB. MCS will start MPASM for you.
    Dave
    I am using MPASM.

    Code:
     ; Initialize your hardware first.
    
    INCLUDE "DT_INTS-18.bas"     ' Base Interrupt System
    INCLUDE "ReEnterPBP-18.bas"     ' Include if using PBP interrupts
    DEFINE OSC 4  'Define the Osc to 4 MHz
         
    asm
                bsf      OSCCON, SCS1        ; 1x = Internal Block
                bcf      OSCCON, SCS0        ; 00 = Primary Oscillator (20Mhz?)
                bsf      OSCCON, IRCF2       ; 111=8000  110=4000  101=2000
                bsf      OSCCON, IRCF1       ; 100=1000  011=0500  010=0250
                bcf      OSCCON, IRCF0       ; 001=0125  000=0032
    MSTABLE010 btfss    OSCCON, IOFS
                bra      MSTABLE010           ; wait until Oscillator is stable
    endasm
    LED1       VAR PORTB.2
    DutyCycle  VAR BYTE
    
    TotalCount CON 50000
    ONcount    VAR WORD
    OFFcount   VAR WORD
    
    ASM
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
            INT_Handler   TMR1_INT,  _ToggleLED1,   PBP,  yes
        endm
        INT_CREATE               ; Creates the interrupt processor
    ENDASM
    
    T1CON = $00                ; Prescaler = 1:1, TMR OFF
    @ INT_ENABLE  TMR1_INT     ; enable Timer 1 interrupts
    
    Main:
        FOR DutyCycle = 0 TO 255           ; Ramp up
            GOSUB  SetDutyCycle
            PAUSE  5
        NEXT DutyCycle
    
        FOR DutyCycle = 254 TO 1 STEP -1   ; Ramp down
            GOSUB  SetDutyCycle
            PAUSE  5
        NEXT DutyCycle
    GOTO Main
    
    
    SetDutyCycle:
        ONcount = TotalCount*/DutyCycle
        OFFcount = TotalCount - ONcount
        IF DutyCycle = 0 THEN
            T1CON.0 = 0    ; turn off timer
            LOW  LED1      ; idle LOW
        ELSE
            T1CON.0 = 1    ; timer on if DutyCycle > 0
        ENDIF 
    RETURN
    
    DISABLE DEBUG
    '---[TMR1 - interrupt handler]------------------------------------------------
    @Timer1 = TMR1L             ; map timer registers to a word variable
    Timer1 VAR WORD EXT
    
    ToggleLED1:
        IF LED1 THEN
            LOW LED1
            T1CON.0 = 0         ; stop the timer
            Timer1  = OFFcount  ; Load OFF count
            T1CON.0 = 1         ; start timer
        ELSE
            HIGH LED1
            T1CON.0 = 0         ; stop the timer
            Timer1  = ONcount   ; Load ON count
            T1CON.0 = 1         ; start timer
        ENDIF
    @ INT_RETURN
    ENABLE DEBUG
    This code produces errors when I attempt to Build
    Last edited by wbubel; - 31st July 2009 at 21:38.

  2. #2
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Here is the errors I get
    Code:
    Clean: Deleting intermediary and output files.
    Clean: Deleted file "C:\Pic Programs\Blink i.mcs".
    Clean: Done.
    Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p18F1220 "Blink i.asm" /l"Blink i.lst" /e"Blink i.err"
    Warning[230] C:\PBP\18F1220.INC 20 : __CONFIG has been deprecated for PIC18 devices.  Use directive CONFIG.
    Warning[230] C:\PBP\18F1220.INC 21 : __CONFIG has been deprecated for PIC18 devices.  Use directive CONFIG.
    Warning[230] C:\PBP\18F1220.INC 22 : __CONFIG has been deprecated for PIC18 devices.  Use directive CONFIG.
    Warning[230] C:\PBP\18F1220.INC 23 : __CONFIG has been deprecated for PIC18 devices.  Use directive CONFIG.
    Error[105]   C:\PIC PROGRAMS\BLINK I.ASM 204 : Cannot open file (Include File "BLINKI~2.MAC" not found)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 219 : Found label after column 1. (DDISABLE?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 227 : Found label after column 1. (GOTO?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 227 : Illegal opcode (_OVER_DT_INTS_18)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 231 : Found label after column 1. (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 369 : Found label after column 1. (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 374 : Found label after column 1. (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 392 : Found label after column 1. (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 397 : Found label after column 1. (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 696 : Found label after column 1. (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 701 : Found label after column 1. (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 714 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 714 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 719 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 719 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 758 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 758 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 763 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 763 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 782 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 782 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 787 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 787 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 793 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 793 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 798 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 798 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 852 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 852 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 857 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 857 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 914 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 914 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 919 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 919 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 969 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 969 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 974 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 974 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1044 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1044 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1049 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1049 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1126 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1126 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1131 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1131 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1224 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1224 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1229 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1229 : Illegal opcode (_OVER_DT_INTS_18)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1232 : Found label after column 1. (DENABLE?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1237 : Found label after column 1. (DDISABLE?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1237 : Address label duplicated or different in second pass (DDISABLE?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1244 : Found label after column 1. (GOTO?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1244 : Illegal opcode (_OverReEnterH)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1248 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1248 : Illegal opcode (_SavePBP_H)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1251 : Found label after column 1. (CMPNE?TCL)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1251 : Illegal opcode (PB01)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1267 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1267 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1277 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1277 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1315 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1315 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1335 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1335 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1340 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1340 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1395 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1395 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1402 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1402 : Illegal opcode (L00001)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1406 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1406 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1409 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1409 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1414 : Found label after column 1. (LABEL?L)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1414 : Illegal opcode (_RestorePBP_H)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1417 : Found label after column 1. (CMPNE?TCL)
    Error[122]   C:\PIC PROGRAMS\BLINK I.ASM 1417 : Illegal opcode (PB01)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1433 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1433 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1443 : Found label after column 1. (ENDASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1443 : Address label duplicated or different in second pass (ENDASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1481 : Found label after column 1. (ASM?)
    Error[116]   C:\PIC PROGRAMS\BLINK I.ASM 1481 : Address label duplicated or different in second pass (ASM?)
    Warning[207] C:\PIC PROGRAMS\BLINK I.ASM 1501 : Found label after column 1. (ENDASM?)
    
    (rest of errors deleted)
    Halting build on first failure as requested.
    BUILD FAILED: Fri Jul 31 16:45:07 2009

  3. #3
    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.

  4. #4
    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.

  5. #5
    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.

  6. #6
    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?)

  7. #7
    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

  8. #8
    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

  9. #9
    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.

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