the code works, but _B0 is started then PORTB.2 Low to High,
i need High to Low
i tryed
DEFINE LVDINT = PORTB.2
and
DEFINE HLVDINT = PORTB.2
but not work
Code:Button var PORTB.2 ASM INT_LIST macro ;IntSource, Label, Type, ResetFlag? INT_Handler INT2_INT, _B2, Asm, Yes INT_Handler RX_INT, _Rx, Asm, Yes Endm INT_CREATE INT_ENABLE INT2_INT INT_ENABLE RX_INT ENDASM ..... B2: IF Button = 0 then hserout["0"] else hserout["1"] endif Fim: @ INT_RETURN Rx: hserout["Rx"] Fim: @ INT_RETURN
Bookmarks