found problem :
" INTCON = 0 ' Interupts Clear at start- GIE,PEIE,TMR0IE,INTE,IOCIE = on,TMR0IF,INTF,IOCIF
Was set after setting up the ASM calls for DT_int_14 started , which cleared its good work , not clear why it did not effect other routine that uses IOCIF , perhaps cos i clear and set the individual int flags for IOC on this chip ???
also , the DT_int_14 does not clear the timer0 int flag and needs to be done in the service routine , adding stop and start timer 0 to the routine was required and should have been there to start with , dont think DT_int_14 would/ should do that as its just monitors the int flag
so the commands for the int call routine are
1. INTCON.5 = 0 ' stop timer 0
2. go do what u want to do
4. TMR0 = 60 ' reload timer 0 start point constant
5. INTCON.5 = 1 ' start timer 0
6. @ INT_RETURN
Bookmarks