README


capturepwmdisplay


Example Summary

Example will periodically print out period of the capture timer. The period is based upon the period of the PWM.

Peripherals Exercised

Resources & Jumper Settings

If you’re using an IDE (such as CCS or IAR), please refer to Board.html in your project directory for resources used and board-specific jumper settings. Otherwise, you can find Board.html in the directory <SDK_INSTALL_DIR>/source/ti/boards/<BOARD>.

Example Usage

The connection will have the following settings:

    Baud-rate:     115200
    Data bits:          8
    Stop bits:          1
    Parity:          None
    Flow Control:    None

Application Design Details

This application uses one thread, mainThread , which performs the following actions:

  1. Opens a Display of type UART

  2. Opens two PWMs. One to blink the LED and the second to drive the Capture input.

  3. Opens and initializes Capture driver objects.

  4. Waits for two consecutive rising edges on the configured hardware port

  5. Outputs the time in uS between edges of the input capture to the Display

TI-RTOS:

FreeRTOS: