Can I use DT_INTS-18.bas and MIBAM.pbp together?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223

    Default Can I use DT_INTS-18.bas and MIBAM.pbp together?

    Hello everyone,
    This may sound silly but I'm using the MIBAM example program by DT into my application. I've read it's limitation regarding the use of high priority interrupts(but not too sure)...but in my application I need the following modules
    Code:
    INCLUDE "MIBAM.pbp"                 ; Bit Angle Modulation module
    INCLUDE "DT_INTS-18.bas"       ; Base Interrupt System
    INCLUDE "ReEnterPBP-18.bas"    ; Include if using PBP interrupts
    INCLUDE "Elapsed_INT-18.bas"   ; Elapsed Timer Routines
    and here is my listing
    Code:
    ASM
    INT_LIST  macro     ; IntSource,          Label,  Type, ResetFlag?        
            INT_Handler   TMR1_INT,  _ClockCount,   PBP,  yes
            INT_Handler   TMR0_INT,  _ToggleLED1,   PBP,  yes
            INT_Handler     USB_INT,  _DoUSBSERVICE,   ASM,  yes
            INT_Handler     INT_INT,    _Handle_INT,   PBP,  yes       
            INT_Handler   RX_INT,    _Getbytes,    PBP,  no
        endm
        INT_CREATE             ; Creates the Low Priority interrupt processor;  
        ;INT_ENABLE  USB_INT   ;we will do this after we initialize USB
        INT_ENABLE  INT_INT    
    ENDASM
    When I compile gives this error... "Duplicate label INTHAND"
    I have checked the "MIBAM.pbp" and file "DT_INTS-18.bas" they contain the same variable name... is there a way to rename/arrange the interrupts to fix this error?

    Thanks in advance,
    tacbanon

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


    Did you find this post helpful? Yes | No

    Default Re: Can I use DT_INTS-18.bas and MIBAM.pbp together?

    Sorry, but MIBAM can't coexist with DT_INTS.

    However, for dimming LED's ... you might consider SPWM_INT .... http://darreltaylor.com/DT_INTS-14/SPWM.html
    It works with 18F's too.
    DT

  3. #3
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223


    Did you find this post helpful? Yes | No

    Default Re: Can I use DT_INTS-18.bas and MIBAM.pbp together?

    Thanks Darrel.

Similar Threads

  1. Replies: 3
    Last Post: - 23rd May 2014, 04:43
  2. DT_INTS-14.bas Reset Flag
    By Larryd in forum Serial
    Replies: 2
    Last Post: - 8th April 2013, 23:44
  3. PBP and DT_INTs problems
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th December 2012, 12:45
  4. Problem with DT_INTS-14.bas and PIC16F628A
    By CesarP in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th August 2010, 06:31
  5. PBP File Extension: .BAS vs .PBP
    By nedtron in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th February 2006, 06:48

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts