> Subject: Re: [PIC]: Startup time for resonators
> From: Brent Brown (
RemoveMEbrent.brownTakeThisOuT
CLEAR.NET.NZ)
> Date: Fri Jul 12 2002 - 18:26:50 PDT
> On 12 Jul 2002 at 9:48, Nikolai Golovchenko wrote:
>> Hi Brent,
>>
>> You might want to still use the RC oscillator as it provides the
>> fastest start-up. To achieve accurate baud rates you simply need to
>> calibrate the RC-oscillator using a good reference, like 32768 Hz
>> crystal. Some PICs can run from RC-oscillator and clock a timer from
>> the crystal at the same time. So, you would have to simply wake up
>> occasionaly (on timer overflow for example, which would be every 2
>> seconds), calibrate the RC-oscillator, and go back to sleep. Or do the
>> calibration even less often, but it depends on how fast the frequency
>> can change. If the device is indoors, where temperature doesn't change
>> quickly, it's probably pretty stable.
> Nikolai,
> Yes this is a good idea and we do have a 32.768kHz crystal on the
> second oscillator for implementing a RTC.
> We thought of the scheme you describe but the problem is that the
> customer wants to do IRDA with 115200 baud. This scheme does not give
> enough resolution to aceive this baud rate with the UART. It is
> probably OK for 9600 baud where each step in SPBRG equals about 400
> baud. In a software UART the resolution could be better but we are
> already doing that to generate a second async port and would like to
> the use hardware UART as well!
> --
> Brent Brown, Electronic Design Solutions
> 16 English Street, Hamilton, New Zealand
> Ph/fax: +64 7 849 0069
> Mobile/txt: 025 334 069
> eMail:
spamBeGonebrent.brownspamBeGone
clear.net.nz