ok. 0x0C74 is the calibration value for THAT chip and was obiviously what was factory set.
So it rules out the cal val not being set, you failed to answer the last part of the question above. When do you get the error or does the chip fail to run?
You can also put leds on the 4 output pins so you know when each output is High or Low state, easier to see what is happening to the PIC. |