I'm sorry I meant that it was 52sec faster every hour not minute. @Richard No I have not defined oscillator but thought it defaulted to 4Mhz. Thanks to you both for your speedy reply. I will define osc and give it ago.
I'm sorry I meant that it was 52sec faster every hour not minute. @Richard No I have not defined oscillator but thought it defaulted to 4Mhz. Thanks to you both for your speedy reply. I will define osc and give it ago.
that won't help at all, you need to ensure that the config is correct and that osccon reg is set appropriatelyI will define osc and give it ago.
define OSC just tells compiler what freq you think you are running at, it does nothing to configure the chip in any way.
and note the OSC bit is case sensitive
Warning I'm not a teacher
Bookmarks