Jump to content
angel d

How can I create a frequency meter?

Recommended Posts

I need to do a frecuencymeter, but firts i need an interruption every second and in this interrupt count pulses in one line (ex. PD_0). only i need to do this interrupt

how i can do?

Share this post


Link to post
Share on other sites

If the frequency is low (< few kHz) you can simply count interrupts from that pin in a 1s interval using Energia-only code. This is very easy to do. I can help you with that. However If you want something more serious (say >10kHz) you need to learn how to program Tiva timers at the low level (or find an existing frequency counter project).

 

I've done an enhanced resolution (oversampling) frequency counter on a MSP430, but it is not using Energia and the code is not in the public domain (have not decided on that yet).

Share this post


Link to post
Share on other sites

Hi,

 

Just joined as noticed some traffic from here to my site.

 

@@energia, thank you for posting the link

 

@@angel d, glad you found it useful

 

I own one of the LM4F based Stellaris Launchpads but not had time to use it yet, as focussing on the C2000 for my course.  I will try and add more useful tutorial as and when I have time.

 

Cheers,

Ant

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...