Hello CuriousOne,
Very difficult to test this code having only 1/2 of the apparatus (for us). Here is what I would do . . . Add, include"BS2Defs.bas" change
MXCS PIN 0 . . . to MXCS var PORTx. x etc . . . Change faults = TCtemp0.nib0 to faults = TCtemp0.lowbyte & try it, you might think good thoughts of linking US to the original project so we can get where you are.