I'm trying to switch from an 18F25K20 to an 18F26K40, and I'm getting a compiler error (PBPX 3.1.6.4) specific to the timer interrupt definition. I'm using the interrupt include file "DT_INTS-18_3_4c.bas" as defined in this thread:
https://www.picbasic.co.uk/forum/sho...T_INTS-18_3_4c
I've tried defining the priority via the INTCON and IPR0 registers directly, modifying the original "DT_INTS-18.bas" directly based on mpgmike's writeup to customize the interrupts, and changing to a timer1 interrupt (vs timer0), but no dice. I imagine I'm overlooking something simple cause I can often be an idiot. Any help is greatly appreciated! The code for the interrupt definition code is below:
Code:@bsf IPR0, TMR0IP 'set timer0 overflow to high priority IPR0.5=1 INTCON.7=1 INTCON.6=1 INTCON.5=1 '----[Start High Priority Motor and PPM Read Interrupt]------------------------- ASM INT_LIST macro ; IntSource, Label, Type, ResetFlag? INT_Handler TMR0_INT, _MOTOR_CONTROL, ASM, yes endm INT_CREATE ; Creates the interrupts ENDASM '----[End High Priority Motor and PPM Read Interrupt]---------------------------


Reply With Quote

Bookmarks