Hardware requirements
Type-C USB cable
FRDM-MCXA156 Board
Personal Computer
Board settings
PWM output: J8-13(P0_16, FLEXIO_D0)
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J21.
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 demo.
Use oscilloscope to measure the output 100KHz PWM signal pin at J8-13 pin.
Running the demo
The following lines are printed to the serial terminal when the demo program is executed.
FLEXIO_PWM demo start.