Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

Frequency counter with Altera

Altera_Forum
Honored Contributor II
3,097 Views

Hello, 

 

 

I have a draft measure with a frequency up to 1 ghz with Max II , I do not know which component to choose, 

I want to use a measure of reciprocal method . is that someone has a code sample ? 

thanks all 

Sébastien
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
1,457 Views

You won't get anywhere near to 1GHz with a MAX II device. I think you need to reconsider or explain your requirements with a little more detail. 

 

Cheers, 

Alex
0 Kudos
Altera_Forum
Honored Contributor II
1,457 Views

 

--- Quote Start ---  

You won't get anywhere near to 1GHz with a MAX II device. I think you need to reconsider or explain your requirements with a little more detail. 

 

Cheers, 

Alex 

--- Quote End ---  

 

 

 

Hello, 

 

I want to achieve a frequency 2 entries with a fpga , the range of each entry is 0 Hz to 1 GHz ,  

the measurement method is reciprocal , the Communicatin between the FPGA and the CPU is with spi bus,  

the display is on an LCD touch screen . 

I do not know how to choose the fpga and I want a sample code to perform frequency measurements.  

the clock on the fpga is a 10 MHz OCXO oscillator. Thanks for your help. sebastien
0 Kudos
Altera_Forum
Honored Contributor II
1,457 Views

 

--- Quote Start ---  

Hello, 

 

I want to achieve a frequency 2 entries with a fpga , the range of each entry is 0 Hz to 1 GHz ,  

the measurement method is reciprocal , the Communicatin between the FPGA and the CPU is with spi bus,  

the display is on an LCD touch screen . 

I do not know how to choose the fpga and I want a sample code to perform frequency measurements.  

the clock on the fpga is a 10 MHz OCXO oscillator. Thanks for your help. sebastien 

--- Quote End ---  

 

 

Hi Sebastien, I Fear you need write a more detailed description of what you wish to measure. 

You said want use reciprocal method then set the requirement as 0 to 1GHz as frequency range, this result in an overflow, infinite measure time or division by zero on lowest range, so with a so wide input range you need plan in first how many digit of resolution where required by your application, reciprocal work better at low frequency not at upper range so when resolution of one method is lesser you have to think differently. If resolution need to be fine grained then again time of measure take the primary decision in both method and/or integrated by analog measurement of input signal. 

 

OCXO has some parameter too, can you post model number or data of this main component?  

 

please define what you wish to measure and application type. Max II I fear quit your application in range of 150MHz signals, you can choose a better device but this case IMHO is better embed processor than export data. 

Happy new year
0 Kudos
Altera_Forum
Honored Contributor II
1,457 Views

 

--- Quote Start ---  

Hello, 

 

I do not know how to choose the fpga and I want a sample code to perform frequency measurements.  

the clock on the fpga is a 10 MHz OCXO oscillator. Thanks for your help. sebastien 

--- Quote End ---  

 

 

Try refer this good page about frequency measurement methods: 

https://en.wikipedia.org/wiki/time-to-digital_converter 

As previously stated from me and a_x_h_75 more detail still are needed.
0 Kudos
Reply