Hi Chris,
First, regarding the timer. You are correct on all accounts. Changing from $31 to $30 does strip of setting the least significant bit which results in the timer being left in its off state. You can set the bit indivudually if you want.
Second, in your latest code snippet you're declaring an interrupt for TMR1 (TMR1_INT) but you're then trying to enable the interrupt for TMR0 - which at that point doesn't have an interrupt service routine assigned to it.
Code:
ASM
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler INT_INT, _ToggleLED1, PBP, yes
INT_Handler TMR1_INT, _ToggleLED2, PBP, yes
endm
INT_CREATE ; Creates the interrupt processor
ENDASM
@ INT_ENABLE INT_INT ; enable external (INT) interrupts
@ INT_ENABLE TMR0_INT ; enable Timer 0 interrupts <- Here you're enabling TMR0_INT which isn't properly declared.
/Henrik.
Bookmarks