Frequency Counter Help

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Frequency Counter Help

1,092件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ranaya on Sun Jul 15 00:50:53 MST 2012
Hi all......

    Im looking for a code example or an explanation for a frequency counter (up to 100MHz) and to measure pulse width using LPC1769. Can I use the capture modules for this ? Is there any application note for this ?

Thank You
0 件の賞賛
返信
4 返答(返信)

1,022件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ex-kayoda on Sun Jul 15 09:12:40 MST 2012
What's wrong with sample in #10 of  http://knowledgebase.nxp.com/showthread.php?t=2941 :confused:
0 件の賞賛
返信

1,022件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ranaya on Sun Jul 15 07:53:58 MST 2012
hi elef,

Thank you for the input. So as u said, it's better to use a frequency divider or an external counter for the above case. Say It's for upto 10 kHz, how can I use the capture module ? Actually my digital isolation (opto couplers) part limits the frequency range the device can measure....

Thank You
0 件の賞賛
返信

1,022件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by elef on Sun Jul 15 05:57:52 MST 2012
The other advantage to having an external counter, you don't have to run you LPC at it's maximum speed. You could even have your CPU/timers running at say 4Mhz and accurately measure signals 1GHz or above. However, measuring pulse width is a completely different story, someone else can help you with that...
0 件の賞賛
返信

1,022件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by elef on Sun Jul 15 05:49:32 MST 2012

Quote: ranaya
Hi all......

    Im looking for a code example or an explanation for a frequency counter (up to 100MHz) and to measure pulse width using LPC1769. Can I use the capture modules for this ? Is there any application note for this ?

Thank You



From what i can tell, the LPC1769 is not suitable. Firstly, the capture can no way get anywhere near 100MHz (i reckon you would even struggle to get 5to 10MHz, but that's just guessing). Secondly, you could use the timer in "counter" mode, but you will be limited to 1/4 CCLK because the timer is not asynchronous, so assuming you are running the LPC at 100MHz, that's 25MHz. And it has other limitations, like duty cycle. My suggestion, give it a miss.

You need a different MCU which has an asynchronous timer/counter. Or better still you could build a 100MHz counter into your front end interface circuitry, that way you can use any MCU (such as LPC1769), that would work. Either way, it will be far more accurate than what the LPC1769 can measure in either capture or counter mode. The other advantage with an external counter, you can just replace the IC, and change a few values in your firmware, and you can straight away go from 100MHz, to 200Mhz, 500Mhz, 1GHZ, 2GHz etc... for very little extra cost.
0 件の賞賛
返信