PWM4 - Setup
Step 1 - The next step is to setup the PWM4 module. Click on PWM4 under Project Resources.

The PWM4 setup will appear in the center of the MPLAB X screen. This requires a few setup selections.
- Check the Enable PWM box
- Select Timer2 from the Select a Timer drop-down menu.
- Set the Duty Cycle to 50%.
The result should look like this:

