1) We take Kevin's encoder project from his website.
2) We remove the phase B logic.
3) We try to compile.
4) We get an error saying:
Code:
\frc_encoder\frc_encoder\encoder.c:130:Error [1205] unknown member 'INT3IP' in '__tag_223'
\frc_encoder\frc_encoder\encoder.c:130:Error [1131] type mismatch in assignment
5) We find the error is occurring here:
Code:
// interrupt 2 is low priority
INTCON2bits.INT3IP = 0;
------------------------
If we remove the segment of code, the interrupt is always on high priority and messes other things up. We'd be very gracious for any solutions.