1 Hz Timebase Options

ronsimpson

Joined Oct 7, 2019
4,693
There are a number of Real Time Clocks ICs that can be programmed to output 1hz.
The MCP7940N is an 8 pin IC that you should look at.
Now if only your project has a micro-computer with I2C bus.
1735327492468.png
The PCF85063A can also be programmed to 1hz.
MCP79400/MCP79401/MCP79402 can also do the job.
I now believe most all 8 and 10 pin RTC can make 1hz square wave. There are many different versions. Here is a list digikey
 
Last edited:

sarahMCML

Joined May 11, 2019
697
Hi:

I am currently using a CD4060BE, a 32.768 Khz crystal etc. to generate a 1 Hz timebase.
I was thinking about using a 32.768 Khz oscillator module instead in order to reduce the
component count and because those crystals are a pain since they are so tiny. Here is a
link to the oscillator. https://www.analog.com/en/products/ds32khz.html

3 questions come to mind:
1) Will this module produce a suitable squarewave.
2) How would I divide the output down to 1 Hz?
3) Will the CD4060BE divide the signal if I don't use it as an oscillator?View attachment 339022
I use effectively the same circuit, but with a CD4536 to get the 1Hz output directly, without needing the additional divide by 2 stage.
 

sarahMCML

Joined May 11, 2019
697
Hi
That sounds good. I have 4 protoboards that are seriously loaded with components. So I can replace the
CD4060 and the CD4013 with the CD4536 and use an oscillator module. Excellent.

Thanks!
Yes, you can. I normally use it as a direct replacement for the CD4060, keeping the 32.768 KHz Xtal, capacitors and resistors. But if you wish to drive it with an external module, that's fine!
 

Ian0

Joined Aug 7, 2020
13,132
I use effectively the same circuit, but with a CD4536 to get the 1Hz output directly, without needing the additional divide by 2 stage.
Can you actually get that to oscillate with a crystal? From the datasheet, it doesn't look as though it has the right bits and pieces to make a Pierce oscillator.
 

sarahMCML

Joined May 11, 2019
697
Can you actually get that to oscillate with a crystal? From the datasheet, it doesn't look as though it has the right bits and pieces to make a Pierce oscillator.
Yes, it works fine if wired as below (sorry for the bad drawing!). I've only used it with the 32.768 KHz Xtal, but it even runs at <3v with a change of resistors. Then the 1M needs to be 680k and the 330k lowered to 100k. The 15pF cap really needs to be a trimmer to get absolute accuracy!
Pin 4 is useful to measure the actual oscillator frequency.

CD4536Circuit.jpg
 

Ian0

Joined Aug 7, 2020
13,132
Yes, it works fine if wired as below (sorry for the bad drawing!). I've only used it with the 32.768 KHz Xtal, but it even runs at <3v with a change of resistors. Then the 1M needs to be 680k and the 330k lowered to 100k. The 15pF cap really needs to be a trimmer to get absolute accuracy!
Pin 4 is useful to measure the actual oscillator frequency.

View attachment 339077
I'm surprised that it works. The Pierce oscillator needs a linear amplifier, and trying to put linear feedback around 5 gates in series usually makes it oscillate. It's got a Schmitt trigger which rather precludes making a linear amplifier.
 

sarahMCML

Joined May 11, 2019
697
I'm surprised that it works. The Pierce oscillator needs a linear amplifier, and trying to put linear feedback around 5 gates in series usually makes it oscillate. It's got a Schmitt trigger which rather precludes making a linear amplifier.
Yes, strange, but it does! I've just had another look at the internal circuit diagram, and wonder if it could also be made to work by using pin 14 as the input, with pin 4 as the output. I'll have to try it when I get a moment.
 
Top