Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-16 Thread Tom Harris
Tom Harris celephi...@gmail.com On 13 March 2014 01:21, Chris Albertson albertson.ch...@gmail.com wrote: Sorry forgot to add this. As for delayed turn on. That can work but why not simply have the software go into a 5 or 10 second wait before it does anything else. Display warming up or

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread Chris Albertson
Are you putting the unknown signal to be measured on an interrupt pin? that will work for low enough frequencies but most uPs have a built-in counter. It is a hardware register on the uP chip that will increment for each pulse on a pin. then you read that number and divide by the gate time.

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread Chris Albertson
Sorry forgot to add this. As for delayed turn on. That can work but why not simply have the software go into a 5 or 10 second wait before it does anything else. Display warming up or please wait on the LCD. On Wed, Mar 12, 2014 at 7:18 AM, Chris Albertson albertson.ch...@gmail.comwrote:

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread d0ct0r
I am using old Wavetek 180 signal generator for the tests. I just hooked its TTL output directly to the pin of MCU. The STM32F4xx has core clock 168 mHz and its inputs capable to handle pretty wide range of frequency. I don't think 1-2 mHz connected to the pin should be a problem. At least

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread d0ct0r
LCD connected to the same MCU. And it has relation to the core clock too. So, nothing on LCD before I reset entire MCU. I think initial incorrect core clock reading cause a lot of issues. Probably my only option will be to implement some external relay and timer to turn on MCU few seconds

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread cfo
On Wed, 12 Mar 2014 11:48:04 -0400, d0ct0r wrote: LCD connected to the same MCU. And it has relation to the core clock too. So, nothing on LCD before I reset entire MCU. I think initial incorrect core clock reading cause a lot of issues. Probably my only option will be to implement some

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread Brian Lloyd
On Wed, Mar 12, 2014 at 10:48 AM, d0ct0r t...@patoka.org wrote: LCD connected to the same MCU. And it has relation to the core clock too. So, nothing on LCD before I reset entire MCU. I think initial incorrect core clock reading cause a lot of issues. Probably my only option will be to

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread Chris Albertson
On Wed, Mar 12, 2014 at 9:10 AM, cfo xne...@luna.dyndns.dk wrote: On Wed, 12 Mar 2014 11:48:04 -0400, d0ct0r wrote: If you have a conditioning circuit betewwn the OCXO and the STM , i'd like to see it. As i have the need for one , trying to interface a 5v OCXO to a NXP 1114 Arm , that wants

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread Hal Murray
xne...@luna.dyndns.dk said: If you have a conditioning circuit betewwn the OCXO and the STM , i'd like to see it. As i have the need for one , trying to interface a 5v OCXO to a NXP 1114 Arm , that wants max 1.8v in the clockinput. What's wrong with a simple resistive divider? -- These

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread cfo
On Wed, 12 Mar 2014 09:42:05 -0700, Chris Albertson wrote: There are logic level converter chip made for this purpose or you can use a comparator and compare the 5V clock to ground. Or just a diode to clip the sine wave. If you connect a code. Sometimes you can set buy with a pair of

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread Bruce Griffiths
Try: http://www.linear.com/product/LTC6957 Bruce cfo wrote: On Wed, 12 Mar 2014 09:42:05 -0700, Chris Albertson wrote: There are logic level converter chip made for this purpose or you can use a comparator and compare the 5V clock to ground. Or just a diode to clip the sine

Re: [time-nuts] Frequency Counter using OCXO and MCU

2014-03-12 Thread Alex Pummer
Analog Devices, Linear Technology and Maxim have fast comparators 73 Alex On 3/12/2014 11:02 AM, cfo wrote: On Wed, 12 Mar 2014 09:42:05 -0700, Chris Albertson wrote: There are logic level converter chip made for this purpose or you can use a comparator and compare the 5V clock to ground.

[time-nuts] Frequency Counter using OCXO and MCU

2014-03-11 Thread d0ct0r
Hello, I am experimenting to build frequency counter using external OCXO and ST32 MCU. The OCXO is external DATUM 2750013-1 device which produce 10Mhz sine wave. I connected its output to OC_IN on MCU. I have few challenges now. First, looks like I need to create some delay to turn on MCU