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

Lincoln Timer Frequency Measure Example

From Manuals

(Difference between revisions)
Jump to: navigation, search
(Created page with '==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]== This example demonstrat…')
(Compatibility Lincoln 60, Lincoln 60E)
 
(One intermediate revision not shown)
Line 1: Line 1:
==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]==
==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]==
-
This example demonstrates how to use a timer to measure a signal's frequency.  
+
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:
Please follow these steps to run the timer_capture example:
Line 7: Line 7:
* 1. Compile the timer_capture example.
* 1. Compile the timer_capture example.
* 2. Program the Lincoln with the binary.
* 2. Program the Lincoln with the binary.
-
* 3. Connect CAP0.0 to 3.3V (J2 pin 17 to J2 pin 2) with a detachable test lead.
+
* 3. Connect J2 pin 5 (P0.6) and J2 pin 17 (P1.26).
* 4. Press the "RESET" button.
* 4. Press the "RESET" button.
-
* 5. Unconnect CAP0.0 from 3.3V and move it to ground (J2 pin 17 to J2 pin 1).
+
* 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_capture example in action.   
+
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.   
[[Image:Lincoln_timer_freqmeasure.png|center|]]
[[Image:Lincoln_timer_freqmeasure.png|center|]]
 +
 +
 +
The below signal was captured from P0.6 (J2 pin 5) after entering 500 for the frequency.
 +
 +
[[Image:Lincoln_timer_freqmeasure2.png|center|]]

Current revision as of 20:14, 11 April 2012

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.