Jump to content
Sign in to follow this  
valerybriz

how to get signal frequency?

Recommended Posts

hey I'm a beginner on energia and I want to get the frequency of a signal but I don't know how to use interrupts and timers with launchpad or... other way to get it

 

thanks :)

Share this post


Link to post
Share on other sites

hey thanks for the link.... I don't understand assembler I'm a beginner sorry... could some body traduce it to energia language ?

please

 

thanks

Share this post


Link to post
Share on other sites

If you look down the thread the 6th post lists the code in C.

 

Most of the things that look like variables in the code are really references to registers that control various devices.

(TA0, P1, etc.)

Share this post


Link to post
Share on other sites
Energia uses the timer/counter units for PWM and millisecond/microsecond timing so they are not readily available for other uses.

 

Here is some simple C code that uses a timer/counter unit with external clock to measure frequency:

 

Frequency Counter using Launchpad & Nokia 5110 LCD

http://forum.43oh.com/topic/1913-frequency-counter-using-launchpad-nokia-5110-lcd/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×