Re: [uCsimm] For exact date

From: 권석근 (kwonsk@mutech.co.kr)
Date: Thu Mar 09 2000 - 03:47:27 EST


Hi Vladimir.

>I believe it is better to use CLK32 signal, since it is more
>accurate and is not subject to various PLL manipulations.
>
>Currently, I program the timer like:
>
> /* Restart mode, Enable int, 32KHz, Enable timer */
> TCTL = TCTL_OM | TCTL_IRQEN | TCTL_CLKSOURCE_32KHZ | TCTL_TEN;
> /* Set prescaler (Divide 32KHz by 32)*/
> TPRER = 31;
> /* Set compare register 32Khz / 32 / 10 = 100 */
> TCMP = 10;
>
>Let me know what do you think about this,
>

After seeing Figure 5-1 in EZ328 Manual, I'll bet on that CLK32 must be
32.768KHz
rather than 32.000Khz. how could we get 32.000Khz clock from 32.768Khz
crystal?
and figure show that CLK32 signal comes directly from crystal oscillator
block and
it supports my assumption. And, in my memory, i tried your configuration
before
and didn't get confidence with it Could you try you idea with TCMP
correction?
Want to see you experimatal result.

Thanks.
kwonsk.

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:34 EST