|
PIC24 Support Libraries
|
Go to the source code of this file.
Demonstrates pulse width modulation using the OC1 output to control a hobby servo. The ADC input value on AN0 is used to vary the pulse width between its min and maximum values. For additional 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.
Definition in file outputcompare_oneservo.c.
1.8.4