Re: [bascom] 8051: Crystal accuracy problem or Timer & Interrupts mistake?


From Joakim Rehn <joakim@rehn.org>
Date Sun, 17 Jun 2001 22:13:24 +0200

Hi Patrick.
My experience in timekeeping with microcontrollers is that your 
result (9 secs drift) is what can be expected with an 
ordinary crystal.

Use a good oscillator instead, this is the 
easiest way to get good accuracy.

A crystal must be compensated for temperature and the 
load capacitance trimmed to be accurate.

        /Joakim

> Patrick L'huillier wrote:
> 
> Hi,
> I just checked the archive, found a lot of questions how to use timers
> and interrupts but did not find a suitable answer to my problem.
> 
> used components:
> 
> - Bascom 8051 V2.08
> - AT89C2051
> - 12 MHz crystal connected with 33 pF cap.
> 


> 
> Thank you very much
> 
> Regards
> Patrick
>