I think you have a mistake here
I belive it has to be like this ;Code:INT_LIST macro ; IntSource, Label, Type, ResetFlag? INT_Handler INT0_INT, _KEYPRESS, PBP, yes endm INT_CREATE ; Creates the interrupt processor ENDASM @ INT_ENABLE INT0_INT ; enable external (INT) interrupts
actually both are same but you may wanna tryCode:INT_LIST macro ; IntSource, Label, Type, ResetFlag? INT_Handler INT_INT, _KEYPRESS, PBP, yes endm INT_CREATE ; Creates the interrupt processor ENDASM @ INT_ENABLE INT_INT ; enable external (INT) interrupts
PS: also "X = PORTB <<4" statement is wrong, change it to "X = PORTB >> 4"




Bookmarks