DSPRelated.com
Forums

How to set up clock in sharc processor?

Started by sandeep kumar February 10, 2004
Hi all
i am working on a application which require me to have a
continous UTC clock.how can i setup a clock in 21060? is there any
ready made function.can it be done by using processor's 40Mhz clock.
any idea about coding?
As this is internally genrated clock,it wont be very
accurate soi also have to apply corrections which are being
transmitted in the signal in real time,but thats secondary task.

thanks in advance
regards
sandeep




On Tue, 10 Feb 2004, sandeep kumar wrote:

> i am working on a application which require me to have a
> continous UTC clock.how can i setup a clock in 21060? is there any
> ready made function.can it be done by using processor's 40Mhz clock.
> any idea about coding?
> As this is internally genrated clock,it wont be very
> accurate soi also have to apply corrections which are being
> transmitted in the signal in real time,but thats secondary task.

Why not use an external real time clock, like Dallas Semi makes? They've
got battery backup and a byte wide or serial port.

It's pretty easy to fake it tho, just use a timer interrupt and increment
a clock register once a millisecond. You can adjust it with some
correction factor measured empiricly over long times.

Patience, persistence, truth,
Dr. mike