Lincoln Timer Capture Example
From Manuals
Compatibility Lincoln 60, Lincoln 60E
This example application demonstrates how to use the capture timer function of a timer. Timer 0 is used to take a snapshot of the timer value when an input signal on CAP0.0 (pin P1.26) transitions from from high to low. Whenever a capture interrupt occurs, the timer interrupt service routine will be invoked and the time will be captured and displayed to a terminal. Follow these instructions to run the example.
Please follow these steps to run the RS485 master and RS485 Slave example:
- 1. Compile the timer_capture example.
- 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.
- 4. Press the "RESET" button.
- 5. Unconnect CAP0.0 from 3.3V and move it to ground (J2 pin 17 to J2 pin 1).
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.

