hello,
as mentioned in a previous post, I am building a digital clock with a pic. I got a 20 Mhz crystal and 20pF caps. Everything works but the clock gains about a second every 6 hours. Now, I read two things that seem to contradict each other, one source says that bigger caps would provide more accuracy at the cost of longer startup time while another says we should use the smallest possible values specified by the microcontroller datasheet (I've also read that cap values depend on the crystal, not the micro...).
So, does anyone have any thoughts on that? Should I go get bigger caps? Is 1 sec. every 6 hours what I should expect in terms of accuracy from the crystal? Should I try another crystal?
Thanks
as mentioned in a previous post, I am building a digital clock with a pic. I got a 20 Mhz crystal and 20pF caps. Everything works but the clock gains about a second every 6 hours. Now, I read two things that seem to contradict each other, one source says that bigger caps would provide more accuracy at the cost of longer startup time while another says we should use the smallest possible values specified by the microcontroller datasheet (I've also read that cap values depend on the crystal, not the micro...).
So, does anyone have any thoughts on that? Should I go get bigger caps? Is 1 sec. every 6 hours what I should expect in terms of accuracy from the crystal? Should I try another crystal?
Thanks