Hardware requirements
Mini/micro USB cable
FRDM-IMXRT1186 board
Personal Computer
Oscilloscope
Board settings
Input PWM signal to J53-12. PWM signal: 0-3.3V, default 1KHz.
Use oscilloscope to monitor the signal at J1-8.
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.
Press the reset button on your board to begin running the demo.
Running the demo
When the demo runs successfully, the following message is displayed in the terminal:
****Input capture dma example start.****
****Provide a signal input to the QTMR pin****
Captured Period time=1000 us
****Output pwm dma example.****
*********Make sure to connect an oscilloscope.*********
****A 50% duty cycle PWM wave is observed on an oscilloscope.****
Please enter a value to update the Duty cycle:
Note: The range of value is 1 to 9.
For example: If enter '5', the duty cycle will be set to 50 percent.
Value:3
The duty cycle was successfully updated!
Please enter a value to update the Duty cycle:
Note: The range of value is 1 to 9.
For example: If enter '5', the duty cycle will be set to 50 percent.
Value:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~