qtmr_inputcapture_outputpwm#
Overview#
The QTMR project is a demonstration program of the SDK QTMR driver’s input capture and output pwm feature. The example sets up a QTMR channel for input capture. Once the input signal is received, the example will print the capture frequency value while the check is interrupted and waiting for the capture frequency to stabilize. The example also sets up one QTMR channel to output pwm. The user should probe a 50Khz PWM signal output with 50% dutycycle with a oscilloscope.
Supported Boards#
IMX943-EVK
Hardware requirements
Mini/micro USB cable
IMX943EVK board
Personal Computer
Board settings
Connect J43-12 to oscilloscope to capture the trigger signal.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the example.
Running the demo
When the demo runs successfully, output trigger signal will be captured on oscilloscope.