Hi All,

I'm using DT_INTS-14 with the 16F887. The idea is to run the device as a variable PW/FREQ oscillator. I then interrupt that loop to change it's variables. However, when I change the variables it's like nothing ever happened, even though the inputs have been verified functional (LEDs, scope, etc.) Is this happening because DT_INTS is storing then reloading ALL the data each time it interrupts? If so, how do I get around this?

The code goes something like this:

asm
INT_LIST macro
INT_Handler RBC_INT, _Change, PBP, yes
endm
INT_CREATE
endasm
@ INT_ENABLE RBC_INT

Oscloop:
high portd.1
pauseus ontime
low portd.1
pauseus offtime
goto oscloop

Change:
if portc.0=1 and ontime<1000 then ontime=ontime+1
if portc.1=1 and ontime>10 then ontime=ontime-1
if portc.2=1 and offtime<10000 then offtime=offtime+10
if portc.3=1 and offtime>1210 then offtime=offtime-10
pause 100

@ INT_RETURN