PIC24 Support Libraries
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
outputcompare_multiservo.c File Reference
#include "pic24_all.h"
#include <stdio.h>

Go to the source code of this file.

Detailed Description

Demonstrates pulse width modulation using four digital outputs and the OC1 module to create four PWM outputs for hobby servos. A table is used to control the pulse widths of the four servos. For more accuracy, use an external crystal and define the following CLOCK_CONFIG=PRIPLL_8MHzCrystal_40MHzFCY in the MPLAB project. Remove this macro if you wish to use the internal oscillator.

The PIC24E/dsPIC33E code is differs from other families.

Definition in file outputcompare_multiservo.c.