## Overview
-----------
The PWM_Phase_Adjust_by_PLU debug Example project is to demonstrate how to use PLU to adjust PWM waveform phase . 

## Functional Description
-------------------------
In this example, PWM1 used as PLU IN4 (P0_12), PWM2 used as PLU IN5 (P0_13), PLU OUT0 (P0_14) used to output PWM3. 
The logic relationship between PLU OUT0 and PLU IN4 and IN5 is XOR. 
By runing this example, PWM3 waveform phase is adjust 144 degree compare with a 20% duty cycle PWM waveform(this PWM0 is not displayed).
 
## Toolchain Supported
---------------------
- Keil MDK 5.37

## Hardware Requirements
------------------------
- Micro USB cable
- LPCXpresso804 board
- Personal Computer

## Board Settings
------------------------
No special settings are required. 
When config the PWM output and PLU input on same pin by Switch Matrix, the two function connected internally, so don't need do board setup for the connection.

## Run the Project
------------------------
Run the example by performing the following steps:

1. Connect a micro USB cable between the PC host and the CMSIS DAP port(CN2 on the 
   LPCXpresso804 board).

2. Compile and download the program to the target board.
   More information about how to compile and program the project can refer to 

   [Getting Started with MCUXpresso SDK](../../../../../docs/Getting Started with MCUXpresso SDK.pdf).

4. Launch the debugger in your IDE to begin running the project.

5. Monitor waveform of PWM1,PWM2 and PWM3 by oscilloscope or logic analyzer.

## Expected Result
------------------------

Connect Pin P0_12(PWM1 - PLU IN4), P0_13(PWM2 - PLU IN5) and  P0_14(PWM3 - PLU OUT0) to an oscilloscope or logic analyzer, Users can observe the relative PWM waveform.
PWM3 waveform phase is adjust 144 degree compare with a 20% duty cycle PWM waveform(this PWM is not displayed).
