PDA

View Full Version : Can I use DT_INTS-18.bas and MIBAM.pbp together?



tacbanon
- 11th August 2013, 23:21
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

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

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

Darrel Taylor
- 12th August 2013, 08:20
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.

tacbanon
- 12th August 2013, 22:20
Thanks Darrel.