Re: gEDA-user: Using 60Hz mains frequency for timing?

2008-05-02 Thread DJ Delorie
The 60hz mains are accurate only over long durations, like a day or so. From what I've read, they adjust the frequency occasionally to make the total number of cycles accurate over time, but on a moment to moment basis they may be off. Crystals are usually pretty precise (compared to

Re: gEDA-user: Using 60Hz mains frequency for timing?

2008-05-02 Thread Larry Doolittle
Randall - On Fri, May 02, 2008 at 12:33:03PM -0400, Randall Nortman wrote: Just a quick non-gEDA design question -- I have the choice between using the zero crossings of the 60Hz mains voltage or my MCU clock (generated from an 18.432MHz quartz crystal producing a 48MHz CPU clock via PLL

Re: gEDA-user: Using 60Hz mains frequency for timing?

2008-05-02 Thread Rick Collins
At 12:33 PM 5/2/2008, you wrote: Just a quick non-gEDA design question -- I have the choice between using the zero crossings of the 60Hz mains voltage or my MCU clock (generated from an 18.432MHz quartz crystal producing a 48MHz CPU clock via PLL built into the MCU) for low-resolution timing. The

Re: gEDA-user: Using 60Hz mains frequency for timing?

2008-05-02 Thread David Kerber
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Randall Nortman Sent: Friday, May 02, 2008 12:33 PM To: gEDA user mailing list Subject: gEDA-user: Using 60Hz mains frequency for timing? Just a quick non-gEDA design question -- I have the choice between using the zero

gEDA-user: Using 60Hz mains frequency for timing?

2008-05-02 Thread Randall Nortman
Just a quick non-gEDA design question -- I have the choice between using the zero crossings of the 60Hz mains voltage or my MCU clock (generated from an 18.432MHz quartz crystal producing a 48MHz CPU clock via PLL built into the MCU) for low-resolution timing. The crystal is not designed as a

Re: gEDA-user: Using 60Hz mains frequency for timing?

2008-05-02 Thread Ian Chapman
Crystal usually cut to + or - 100 ppm for a general use like a CPU and it will not change too much with temperature and age. Ethernet crystals were at one time cut to a better spec 50 ppm. Special communications crystal can be a lot better. The mains are very good in most places for the morning

Re: gEDA-user: Using 60Hz mains frequency for timing?

2008-05-02 Thread Larry Doolittle
On Fri, May 02, 2008 at 01:06:47PM -0400, Ian Chapman wrote: Crystal usually cut to + or - 100 ppm for a general use like a CPU and it will not change too much with temperature and age. Ethernet crystals were at one time cut to a better spec 50 ppm. Special communications crystal can be a

Re: gEDA-user: Using 60Hz mains frequency for timing?

2008-05-02 Thread der Mouse
Just a quick non-gEDA design question -- I have the choice between using the zero crossings of the 60Hz mains voltage or my MCU clock (generated from an 18.432MHz quartz crystal producing a 48MHz CPU clock via PLL built into the MCU) for low-resolution timing. It depends. :-) Either one is

Re: gEDA-user: Using 60Hz mains frequency for timing?

2008-05-02 Thread Randall Nortman
Thanks very much to all who responded... and so quickly. I should have included more information on the application -- This is for building a power meter (watts and watt-hr) for measuring power consumption of particular circuits as well as the whole house (but not for billing purposes -- just