Overview
========
The project is the example code of AN: FlexPWM usage on MCX series.

The project uses FlexPWM to implement Center aligned PWM, Edge aligned PWM, Phase shifted PWM, Double switching PWM,
ADC triggering and E-Capture through submodule 0.

In this project, you can use serial terminal and follow the relevant message to choose the pwm mode you want to test.

Toolchain supported
===================
- IAR embedded Workbench  9.30.1
- Keil MDK  5.37
- GCC ARM Embedded  10.3.1
- MCUXpresso  11.9.0

Hardware requirements
=====================
- USB-C cable
- FRDM-MCXN236 board
- Personal Computer
- Oscilloscope or logic analyzer

Board settings
==============

* Probe the pwm signal using an oscilloscope
 - At J3-15(PWM1_A0, P3_12)
 - At J3-13(PWM1_B0, P2_7)
 - At J3-11(P3_14)
 - At J8-12(ADC0_A2, P4_23)

Prepare the Demo
================
1. Connect a USB cable between the PC host and the MCU-Link USB port on the board.
2. Open a serial terminal with these settings:
    - 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 example.

Running the demo
================
When the example runs successfully, the following message is displayed in the terminal:
~~~~~~~~~~~~~~~~~~~~~~~~
***FlexPWM driver example***

Please Select PWM mode by input 1/2/3/...
0 - Center aligned PWM
1 - Edge aligned PWM
2 - Phase shifted PWM
3 - Double switching PWM
4 - ADC triggering
5 - E-Capture
~~~~~~~~~~~~~~~~~~~~~~~
