SEARCH
TOOLBOX
LANGUAGES
modified on 11 April 2012 at 20:14 ••• 9,944 views

Lincoln Timer Frequency Measure Example

From Manuals

Revision as of 20:14, 11 April 2012 by Support (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Compatibility Lincoln 60, Lincoln 60E

This example demonstrates how to use a timer to measure a signal's frequency. A test signal is generated by P0.6 (J2 pin 5) for P1.26 (J2 pin 17) to measure.

Please follow these steps to run the timer_capture example:

  • 1. Compile the timer_capture example.
  • 2. Program the Lincoln with the binary.
  • 3. Connect J2 pin 5 (P0.6) and J2 pin 17 (P1.26).
  • 4. Press the "RESET" button.
  • 5. Enter a frequency to measure between 1 and 999 hertz.

The first UART, which is connected to the COM1 on the Lincoln microcontroller board, is configured for 115,200 bits per second, and 8-n-1 mode. When the program is started a message will be printed to the terminal. The following screen shot is of the timer_freqmeasure example in action.



The below signal was captured from P0.6 (J2 pin 5) after entering 500 for the frequency.