|
PIC24 Support Libraries
|
#include "pic24_all.h"Go to the source code of this file.
Generate a squarewave using output compare (OC1). Define the following clock configuration if you wish higher accuracy. Define CLOCK_CONFIG=PRIPLL_8MHzCrystal_40MHzFCY in the MPLAB project. Remove this macro if you wish to use the internal oscillator.
This example is implemented fundamentally different on the PIC24E/dsPIC24E
Definition in file outcompare_squarewave.c.
1.8.4