Hardware requirements
Type-C USB cable
FRDM-MCXA166 board
Personal Computer
Oscilloscope
Board settings
Probe the pwm signal using an oscilloscope
PWM0_A0 output signal J3-15(PIO3_0).
PWM0_B0 output signal J3-13(PIO3_1).
PWM0_A1 output signal J3-11(PIO3_8).
PWM0_A2 output signal J3-7(PIO3_10).
Connet J3-8(LDO_3V3) to following pins to set PWM output in fault state
TRIG_IN2 input signal J4-3(PIO3_7).
TRIG_IN3 input signal J3-3(PIO1_13).
TRIG_IN4 input signal J4-5(PIO4_6).
TRIG_IN10 input signal J3-1(PIO3_31).
Prepare the Demo
Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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.
Running the demo
When the example runs successfully, the following message is displayed in the terminal:
FlexPWM driver example
~~~~~~~~~~~~~~~~~~~~~~~