- We take Kevin’s encoder project from his website.
- We remove the phase B logic.
- We try to compile.
- We get an error saying:
\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
- We find the error is occurring here:
// 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.