I use DT_INTERRUPT whenever I need to use interrupts. Having no knowledge of ASM, I find it much easier. I have always used it for 12F635. Recently I have tried to use DT_INT on 16F690 & 16F676 for one of my projects, but I failed to get results. I made sure I have right settings in DT_INT file and Re-Enter file.
1) FOR 16F690 I used& none of the Temp (T1,T2,T3,T4) variables where commented out.Code:wsave var byte $70 ; in DT_INTS-14 file
Few lines from the code are the following which are not working to begin with:
PIC (690) does not responds to anything. When I use 676 then Pin11 on the PIC blinks couple of times and then stops and just glows continuesly along with pin13. Seems to me that wether DT_INTS are for selected PICs only or is there something I need to add/delete from the code to make it work on 676 & 690.Code:Include "modedefs.bas" INCLUDE "DT_INTS-14.bas" INCLUDE "ReEnterPBP.bas" DEFINE OSC 4 @ __Config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_ON & _MCLRE_OFF & _BOR_ON & _CP_ON & _CPD_ON & _IESO_OFF & _FCMEN_ON PAUSE 50 ANSEL=0 ANSELH=0 CM1CON0 = 0 CM2CON0 = 0 OPTION_REG=128 PORTB=0 PORTC = 0 PORTA = 0 TRISA = %001000 TRISC = 0 TRISB =0 ASM INT_LIST macro ; IntSource, Label, Type, ResetFlag? INT_Handler TMR1_INT, _CHECK, PBP, yes endm INT_CREATE ; Creates the interrupt processor ENDASM T1CON=$E1 @ INT_ENABLE TMR1_INT while 1 FOR W1=1 TO 10 TOGGLE PIN13 PAUSE 100 NEXT W1 FOR W1=1 TO 5 TOGGLE PIN13 PAUSE 1000 NEXT W1 wend CHECK: TOGGLE PIN11 @ INT_RETURN
Has anyone else had issues with DT_INT for these PICs. I am looking forward to try them on 16F877A. Are there any known reliability issues with 877A?




Bookmarks