Instant Interrupts - Revisited - Page 11


Closed Thread
Page 11 of 20 FirstFirst ... 789101112131415 ... LastLast
Results 401 to 440 of 773
  1. #401
    Join Date
    Nov 2008
    Posts
    9


    Did you find this post helpful? Yes | No

    Default

    ok so i solved the problem. thanks Darrel. I just had to set the BAUDCTL.1 (WUE) bit.

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


    Did you find this post helpful? Yes | No

    Default

    I'm not sure if you read the whole 3 pages worth of information on Auto-wake-up on break, but it'll take a little more than flipping a bit.

    The transmit side needs to send the right character (0), or a Break sequence, to wake-up the PIC or you will loose at least the first character and get a framing err (FERR), and possibly a buffer overflow (OERR).

    The second character can also be lost if time is not allowed for the oscillator to stabilize.
    <br>
    DT

  3. #403
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default ReEnterPBP

    where can I get a copy of ReEnterPBP.bas so I can test interupts?

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


    Did you find this post helpful? Yes | No

    Default

    It takes more than ReEnterPBP.bas to do Instant Interrupts.

    The first post in this thread tells where to get ALL the files.
    <br>
    DT

  5. #405
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Hello dave
    Ok, I found all my files I need however I am using PicBasic Pro Compiler Ver. 2.46. (I'm one of those poor saps that lost his receipt and cannot upgrade.)
    When I compile it works but trying to build using MPLAB I get a masive amount of errors. Here is the code.

    ************************************************** **************
    '* Name : UNTITLED.BAS *
    '* Author : Bill Bubel *
    ' *
    '* Date : 7/31/2009 *
    '* Version : 1.0 *
    '* Notes : *
    '* : *
    '************************************************* ***************
    ; 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

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by wbubel View Post
    Hello dave
    The name's Darrel.

    however I am using PicBasic Pro Compiler Ver. 2.46. (I'm one of those poor saps that lost his receipt and cannot upgrade.)
    It works fine with PBP 2.46

    When I compile it works but trying to build using MPLAB I get a masive amount of errors.
    Then don't use MPLAB if it works when you compile.
    <br>
    DT

  7. #407
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    The name's Darrel.


    It works fine with PBP 2.46


    Then don't use MPLAB if it works when you compile.
    <br>
    Sorry Darrel about calling you dave.

    I can compile but not Build. I use a IDC2 with MPLAB to run the PIC 18F1220. I use Microcode studio to write code and compile it to create a .asm file for MPLAB to build.

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


    Did you find this post helpful? Yes | No

    Default

    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
    Always wear safety glasses while programming.

  9. #409
    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 22:38.

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

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

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

  13. #413
    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 15:18.

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

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

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

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

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

  19. #419
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    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?
    Just how do I do that in MPLAB? I tried looking and found nothing to make PBP the language tool?

  20. #420
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Regards,

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

  21. #421
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Unhappy

    Ok, I'm about to give up. Ive tried everything on Darrel's program that was suggested. I'm still getting the same Build errors as before. I'm using a 18F1220 Pic and MCS to compile with MPLAB to build. I tried to compile using MPLAB but it wont work. All other programs I've compiled and Built I had no problems. HELP

  22. #422
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    What errors do you get when trying to compile from within MPLAB?
    Regards,

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

  23. #423
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    What errors do you get when trying to compile from within MPLAB?
    I've already posted them (See above Posts 410, 414, and 415 in this thread)

  24. #424
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    You have PBP setup in MPLAB as the language tool as shown here: http://melabs.com/support/mplab.htm and you still get the same errors?
    Regards,

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

  25. #425
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    You have PBP setup in MPLAB as the language tool as shown here: http://melabs.com/support/mplab.htm and you still get the same errors?
    I tried it with PBP setup in MPLAB and I got a bunch of compile errors

  26. #426
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Those are the errors I was asking about. If you can just setup PBP to work from within MPLAB you really will save yourself a TON of time & headaches.

    Show me the errors you get (when PBP is setup to compile in MPLAB), and I'll do my best
    to help you get that working.
    Regards,

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

  27. #427
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I just compiled your code in MCS, then opened the .asm generated in MPLAB, selected
    the 18F1220, and clicked the Quickbuild option, and it worked fine. Odd way of doing it,
    but it did work.

    Can you explain how you're setting up your project in MPLAB? Which version MPASM/MPLAB
    you're using, etc?

    Also, since it's not finding the .MAC file, I would check my path statement to make sure it
    can find all files it needs.
    Regards,

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

  28. #428
    Join Date
    Jul 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    I found the problem. It was the name of the program I chose. I called it Blink i.bas once I changed its name to Blink_i.bas the whole thing compiled then I could build it in MPLAB.
    I should have known better. I'm going to put my Dunce hat on and stand in the corner for a while.

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


    Did you find this post helpful? Yes | No

    Default

    That's great you got it working ... But ...
    I just don't understand why you are doing it that way?

    When you compile it in MicroCode Studio, it's compiled. Done deal.

    Why are you then trying to compile (build) it again with MPLAB.
    You already have a .HEX file before you even open MPLAB.
    <br>
    DT

  30. #430
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,619


    Did you find this post helpful? Yes | No

    Red face

    Hi, Darrel

    I just have turned to MPLAB 8.36 and PBP 2.60 ...

    Headache : I get this error screen while re-building an existing project :


    Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k# -p18F452 "Tracteur.bas"
    Executing: "C:\PBP\PBPW.EXE" -ampasmwin -k# -p18F452 "Tracteur.bas"
    Message[301] C:\PBP\18F452.INC 23 : MESSAGE: ( PENSEZ à INDIQUER la BONNE CONFIGURATION ... )
    Message[301] C:\PBP\18F452.INC 24 : MESSAGE: ( PENSEZ à INDIQUER la BONNE CONFIGURATION ... )
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1083 : Address label duplicated or different in second pass (Z00063)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1146 : Address label duplicated or different in second pass (Z00064)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1199 : Address label duplicated or different in second pass (Z00065)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1230 : Address label duplicated or different in second pass (Z00066)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1083 : Address label duplicated or different in second pass (Z00063)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1146 : Address label duplicated or different in second pass (Z00064)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1199 : Address label duplicated or different in second pass (Z00065)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1230 : Address label duplicated or different in second pass (Z00066)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1083 : Address label duplicated or different in second pass (Z00063)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1146 : Address label duplicated or different in second pass (Z00064)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1199 : Address label duplicated or different in second pass (Z00065)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1230 : Address label duplicated or different in second pass (Z00066)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1083 : Address label duplicated or different in second pass (Z00063)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1146 : Address label duplicated or different in second pass (Z00064)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1199 : Address label duplicated or different in second pass (Z00065)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1230 : Address label duplicated or different in second pass (Z00066)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1083 : Address label duplicated or different in second pass (Z00063)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1146 : Address label duplicated or different in second pass (Z00064)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1199 : Address label duplicated or different in second pass (Z00065)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1230 : Address label duplicated or different in second pass (Z00066)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1083 : Address label duplicated or different in second pass (Z00063)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1146 : Address label duplicated or different in second pass (Z00064)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1199 : Address label duplicated or different in second pass (Z00065)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1230 : Address label duplicated or different in second pass (Z00066)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1083 : Address label duplicated or different in second pass (Z00063)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1146 : Address label duplicated or different in second pass (Z00064)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1199 : Address label duplicated or different in second pass (Z00065)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1230 : Address label duplicated or different in second paPICBASIC PRO(TM) Compiler 2.60, (c) 1998, 2009 microEngineering Labs, Inc.
    All Rights Reserved.

    ERROR: Unable to execute mpasmwin.ss (Z00066)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1083 : Address label duplicated or different in second pass (Z00063)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1146 : Address label duplicated or different in second pass (Z00064)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1199 : Address label duplicated or different in second pass (Z00065)
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1230 : Address label duplicated or different in second pass (Z00066)
    Halting build on first failure as requested.
    BUILD FAILED: Thu Aug 20 14:24:12 2009
    All the error lines are referring to DT Instant interrupts ...

    Could you give me a pointer ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  31. #431
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,619


    Did you find this post helpful? Yes | No

    Unhappy

    the faulty 1083 Line :

    [quote]
    ENDASM?


    1082 ; C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\DT_INTS-18.BAS 00313 Z00063 asm
    1083 Z00063

    ASM?

    ; -- Added for ver. 3.2 --
    ifdef SPPIF ;----{ Streaming Parallel Port Read/Write }--[PIR1, SPPIF]---
    INT_Source PIR1,SPPIF, PIE1,SPPIE, IPR1,SPPIP
    endif
    ifdef BCL1IF ;----{ Bus 1 Collision }--------------------[PIR2, BCL1IF]---
    INT_Source BUS1_INT, PIE2,BCL1IE, IPR2,BCL1IP
    endif


    ...

    ; ifdef ;----{ }-------------[, ]---
    ; INT_Source , ,, ,
    ; endif


    ENDASM?


    1145 ; C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\DT_INTS-18.BAS 00369 Z00064 asm ; -- USB sources --
    1146 Z00064

    ASM?
    ; -- USB sources --
    ifdef USBIF ;----{ USB Interrupt funnel }---------------[PIR2, USBIF]---
    INT_Source PIR2,USBIF, PIE2,USBIE, IPR2,USBIP

    ;----{ Bus Activity Detect }-----------------[UIR, ACTVIF]---
    INT_Source USB_ACTV_INT, UIE,ACTVIE, _NoPriority


    ....


    INT_Source USB_PID_INT, UEIE,PIDEE, _NoPriority
    endif


    ENDASM?


    1198 ; C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\DT_INTS-18.BAS 00415 Z00065 asm ; -- Ethernet sources --
    1199 Z00065

    ASM?
    ; -- Ethernet sources --
    ifdef ETHIF ;----{ Ethernet Module }----------------------[PIR2, ETHIF]---
    INT_Source ETH_INT, PIE2,ETHIE, IPR2,ETHIP

    ;----{ DMA Interrupt }-------------------------[EIR, DMAIF]---
    INT_Source ETH_DMA_INT, EIE,DMAIE, _NoPriority


    ......

    INT_Source ETH_TXER_INT, EIE,TXERIE, _NoPriority

    ;----{ Transmit }-------------------------------[EIR, TXIF]---
    INT_Source ETH_TX_INT, EIE,TXIE, _NoPriority
    endif


    ENDASM?


    1229 ; C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\DT_INTS-18.BAS 00439 Z00066 asm ; -- CAN Module --
    1230 Z00066

    ASM?
    ; -- CAN Module --
    ifdef WAKIF
    ;----{ CAN bus Error }------------------------[PIR3, ERRIF]---
    INT_Source CAN_ERR_INT, PIE3,ERRIE, IPR3,ERRIP

    ;----{ Invalid Received Message }-------------[PIR3, IRXIF]---
    INT_Source CAN_IRX_INT, PIE3,IRXIE, IPR3,IRXIP


    Hope it Helps ...

    PS: Program compiled fine with PBP 2.50c and MPLAB 8.15 ... of course ...
    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Have you made changes? Or is the TRACTEUR program the same as ...

    http://www.picbasic.co.uk/forum/show...23&postcount=4

    It compiles fine here with PBP 2.60 / MPASM 5.20.

    If it's different, can you send me the new version?
    DT

  33. #433
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,619


    Did you find this post helpful? Yes | No

    Default

    Hi, Darrel

    Same errors ... looks same program !!!

    MPASM is V5.33 here ...

    All other programs NOT USING DT Interrupts compile fine ... sooo, I do not understand what's going on ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Because of all the problems people have been reporting, I didn't want to upgrade MPLAB.
    But now I have the latest and greatest.

    The first time compiling the TRACTEUR program, and it compiles just fine.

    I do get that DOS window popping up instead of the progress bar, like others described.

    I'm compiling with MicroCode Studio.
    Are you using MPLABs IDE?

    Added: I'm also using the original Elapsed_INT-18.bas, I don't have your modified version. But I think we talked about that before somewhere and it wasn't a problem.
    Last edited by Darrel Taylor; - 20th August 2009 at 23:08. Reason: Elapsed_INT-18_ExtOsc.bas
    DT

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor
    Are you using MPLABs IDE?
    Duh! Another stupid question on my part ...
    Error[116] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PROJETS\TRACTEUR.ASM 1083 : Address ...
    I don't use MPLAB, so can't offer much help there.
    Does anything that Bruce was telling wbubel about MPLAB above help?

    At least it's not related to DT_INTS.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    Or another thought, regarding limited length of file names. (Charles Leo)

    http://www.picbasic.co.uk/forum/show...02&postcount=7
    <br>
    DT

  37. #437
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,619


    Did you find this post helpful? Yes | No

    Default

    Hi, Darrel,

    I Ported it to MCS ...

    ERROR : MACRO BUFFER OVERFLOW ...

    Which looks sililar to the error MPASM raised.

    ??????????

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  38. #438
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,619


    Did you find this post helpful? Yes | No

    Lightbulb

    HI,Darrel,

    a special character compiler do not like ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    I Ported it to MCS ...

    ERROR : MACRO BUFFER OVERFLOW ...
    That error only happens when compiling with PM.
    Switch to MPASM for an 18F452.

    Normally it will warn you when compiling 18F programs with PM.exe. But I think the macro overflow causes too many errors before it gets to that warning, so you don't see it in MCS.
    <br>
    DT

  40. #440
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,619


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    That error only happens when compiling with PM.
    Switch to MPASM for an 18F452.

    Normally it will warn you when compiling 18F programs with PM.exe. But I think the macro overflow causes too many errors before it gets to that warning, so you don't see it in MCS.
    <br>
    Ooooops, sorry.

    Compiled fine in MCS ...

    Great mistery ... for sure !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 22:43
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 21:02
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 21:48
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 07:32
  5. Replies: 1
    Last Post: - 1st November 2006, 04:11

Members who have read this thread : 12

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