This is the documentation for the latest (main) development branch of mcuxpresso sdk. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

Hardware requirements

  • Type-C USB cable

  • FRDM-MCXA156 board

  • Personal Computer

  • Oscilloscope

Board settings

  • Probe the pwm signal using an oscilloscope

  • PWM0_A0 output signal J3-15(PIO3_6).

  • PWM0_B0 output signal J3-13(PIO3_7).

  • 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_IN5 input signal J3-1(PIO2_7).

  • TRIG_IN8 input signal J3-3(PIO2_20).

  • TRIG_IN9 input signal J4-3(PIO2_17).

  • TRIG_IN10 input signal J4-5(PIO3_31).

Prepare the Demo

  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. 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

  3. Download the program to the target board.

  4. 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
~~~~~~~~~~~~~~~~~~~~~~~