It concerns the 30F4012 and the QEI-module registers.
Code: Select all
var QEICON:TQEICONBITS; volatile; register;
// DFLTCON: Digital Filter Control Register
var DFLTCON:TDFLTCON; volatile; register;
// POSCNT: Position Counter Register
var POSCNT: word; volatile; register;
// MAXCNT: Maximum Count Register
var MAXCNT: word; volatile; register;
For some strange reason the absolute addresses for these registers are missing. The were ok before in the definition-file provided with V5 of this compiler. I noticed after moving some code from 30f4011 to this 28 pin device , suddenly the encoder-interface did not work. Somehow there must still be outdated versions of this definition-file around.
Another part missing here are the configuration constants for FRC-PLL mode's.