# GPTMR input captrue

## Overview

The example shows input capture.

## Board Setting

Please refer to [Pin Description](lab_board_resource) for specific board.
Connect external PWM signal to GPTMR capture pin.


## Running the example

Running the example, the serial terminal outputs the following infomation,and prints out the edge interval time captured each time,that is, the time of one cycle.
```console
gptmr input capture test
capture the pulse width : 100001 tick
capture the pulse width : 100000 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick
capture the pulse width : 100000 tick
capture the pulse width : 100000 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick
capture the pulse width : 100000 tick
capture the pulse width : 100001 tick
capture the pulse width : 100001 tick

```
