SEARCH
TOOLBOX
LANGUAGES
modified on 12 April 2012 at 15:56 ••• 3,680 views

Lincoln Timer to Generate Different Frequencies

From Manuals

Jump to: navigation, search

Compatibility Lincoln 60, Lincoln 60E

This example application demonstrates how to use Timer Match to generate 2 different frequency signals. Timer 0 and Timer 2 are usedto generate two different frequency outputs on MAT0.0 (J2 pin 19) and MAT2.0 (J2 pin 5). 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 below screen shot is of the timer_gen_diff_freqs in action.

Please follow these steps to run the timer_gen_diff_freqs example:

  • 1. Compile the timer_gen_diff_freqs example.
  • 2. Program the Lincoln with the binary.
  • 3. Press the "RESET" button.
  • 4. Enter a value between 1 and 999 for the frequency for MAT0.0 (J2 pin 19).
  • 5. Enter a value between 1 and 999 for the frequency for MAT2.0 (J2 pin 5).
  • 6. Observe the signals on J2 pin 19 and J2 pin 5.



Below is a screen capture of the signal when 150 was entered for the first frequency and 300 was entered for the second frequency.